Function at 0x100a4826
Capabilities:
Check if file exists
Delete file
Move file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bcb9d
mov eax, dword fs:[0]
push eax
sub esp, 0xa94
mov eax, dword [0x100ee3e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa94], ecx
push dword [ebp + 8]
mov ecx, dword [ebp - 0xa94]
add ecx, 0x74
call fcn.10003bdd
mov ecx, dword [ebp - 0xa94]
add ecx, 0x44
call fcn.100348a0
mov dword [ebp - 0xa98], eax
push 0
push 0x100d208c
push dword [ebp - 0xa98]
mov eax, dword [ebp - 0xa98]
mov eax, dword [eax]
call dword [eax + 0x18]
mov dword [ebp - 0x640], eax
and word [ebp - 0x21c], 0
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.10074c40
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x640]
call fcn.10023fc2
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x100a48e0
xor eax, eax
jmp 0x100a4d00
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
and dword [ebp - 0x644], 0
and dword [ebp - 0x860], 0
jmp 0x100a490a
mov eax, dword [ebp - 0x860]
inc eax
mov dword [ebp - 0x860], eax
cmp dword [ebp - 0x860], 3
jae 0x100a4948
mov eax, dword [ebp - 0x860]
imul eax, eax, 0x84
mov ecx, dword [ebp - 0x640]
cmp ecx, dword [eax + 0x100d2098]
jne 0x100a4946
mov eax, dword [ebp - 0x860]
imul eax, eax, 0x84
add eax, 0x100d2098
mov dword [ebp - 0x644], eax
jmp 0x100a4948
jmp 0x100a48fd
cmp dword [ebp - 0x644], 0
jne 0x100a4958
xor eax, eax
jmp 0x100a4d00
and word [ebp - 0x854], 0
push 0x208
push 0
lea eax, [ebp - 0x852]
push eax
call fcn.10074c40
add esp, 0xc
push 0x100d2224
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x854]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
and word [ebp - 0x63c], 0
push 0x208
push 0
lea eax, [ebp - 0x63a]
push eax
call fcn.10074c40
add esp, 0xc
mov eax, dword [ebp - 0x644]
add eax, 4
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x63c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x854]
push eax
lea eax, [ebp - 0x85c]
push eax
call fcn.100b034d
pop ecx
pop ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x85c]
call fcn.100301a6
movzx eax, al
test eax, eax
je 0x100a4a41
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0xa78]
push eax
call fcn.100b034d
pop ecx
pop ecx
mov dword [ebp - 0xa9c], eax
mov eax, dword [ebp - 0xa9c]
mov dword [ebp - 0xaa0], eax
mov byte [ebp - 4], 1
push dword [ebp - 0xaa0]
lea ecx, [ebp - 0x85c]
call fcn.10003bc4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa78]
call fcn.100106a5
and dword [ebp - 0x858], 0
push str.1.2.1.0
lea eax, [ebp - 0x85c]
push eax
call fcn.10010964
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x100a4a6e
mov dword [ebp - 0x858], 0xe0
jmp 0x100a4adb
push str.1.2.5.0
lea eax, [ebp - 0x85c]
push eax
call fcn.10010964
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x100a4a94
mov dword [ebp - 0x858], 0xe1
jmp 0x100a4adb
push str.1.2.8.0
lea eax, [ebp - 0x85c]
push eax
call fcn.10010964
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x100a4aba
mov dword [ebp - 0x858], 0xe2
jmp 0x100a4adb
and dword [ebp - 0xa7c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x85c]
call fcn.100106a5
mov eax, dword [ebp - 0xa7c]
jmp 0x100a4d00
lea eax, [ebp - 0x854]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100a4b34
lea eax, [ebp - 0x854]
push eax
lea eax, [ebp - 0x63c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x854]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100a4b32
and dword [ebp - 0xa80], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x85c]
call fcn.100106a5
mov eax, dword [ebp - 0xa80]
jmp 0x100a4d00
jmp 0x100a4b90
and word [ebp - 0xa74], 0
push 0x208
push 0
lea eax, [ebp - 0xa72]
push eax
call fcn.10074c40
add esp, 0xc
push str.zlibtemp2.dll
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0xa74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0xa74]
push eax
lea eax, [ebp - 0x63c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 4
push 0
lea eax, [ebp - 0xa74]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
push 0x100d2284
lea eax, [ebp - 0x63c]
push eax
movzx eax, word [ebp - 0x858]
push eax
push dword [0x1010a390]
call fcn.100a432e
add esp, 0x14
test eax, eax
jne 0x100a4c15
call fcn.1005c404
movzx eax, al
test eax, eax
je 0x100a4be9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x63c]
push eax
push str.ReleaseResource_failed:_path_s__error_u
push 0xd2
push 0x100d2300
call fcn.1005c293
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x100a4c15
and dword [ebp - 0xa84], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x85c]
call fcn.100106a5
mov eax, dword [ebp - 0xa84]
jmp 0x100a4d00
and word [ebp - 0x42c], 0
push 0x208
push 0
lea eax, [ebp - 0x42a]
push eax
call fcn.10074c40
add esp, 0xc
push 0x105
lea eax, [ebp - 0x42c]
push eax
push 0x100d2360
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x100a4c6f
and dword [ebp - 0xa88], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x85c]
call fcn.100106a5
mov eax, dword [ebp - 0xa88]
jmp 0x100a4d00
mov eax, dword [ebp - 0x644]
add eax, 4
push eax
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [ebp - 0xa94]
call fcn.100a45f3
test eax, eax
jne 0x100a4ce1
call fcn.1005c404
movzx eax, al
test eax, eax
je 0x100a4cc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x644]
add eax, 4
push eax
push str.WriteData_failed:_path_s__error_u
push 0xd2
push 0x100d23f0
call fcn.1005c293
add esp, 0x14
and dword [ebp - 0xa8c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x85c]
call fcn.100106a5
mov eax, dword [ebp - 0xa8c]
jmp 0x100a4d00
mov dword [ebp - 0xa90], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x85c]
call fcn.100106a5
mov eax, dword [ebp - 0xa90]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10071fa1
leave
ret 4