Function at 0x407600
Capabilities:
Check if file exists
Create directory
Delete file
Move file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x437528
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x44]
test eax, eax
mov dword [esp + 0x64], 2
je 0x40764b
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40764b
mov eax, dword [esi + 0x44]
push 0
push 6
push 0x8001
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
call fcn.0042df63
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x64], 3
call fcn.0042df63
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x6c]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push ebx
mov byte [esp + 0x78], 4
call fcn.00432ec1
test eax, eax
jne 0x407782
mov edi, dword [esi + 0x40]
add esi, 0x40
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.CPUT:_AfxParseURL__s__Error__d_
push esi
call dword [edi]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x64], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4076dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x64], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407700
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov byte [esp + 0x64], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40771f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
mov byte [esp + 0x64], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407742
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
mov dword [esp + 0x64], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407768
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 2
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x10
mov ecx, dword [esp + 0x28]
mov eax, ecx
dec eax
je 0x407876
sub eax, 2
je 0x40786e
push ecx
push 0x43a4ec
call fcn.00405ad0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x64], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4077c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x64], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4077ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov byte [esp + 0x64], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40780b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
mov byte [esp + 0x64], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40782e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
mov dword [esp + 0x64], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407854
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 3
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x10
lea eax, [esi + 0x50]
mov dword [esi + 0x4c], eax
jmp 0x40787c
lea ecx, [esi + 0x5c]
mov dword [esi + 0x4c], ecx
mov eax, dword [esp + 0x74]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov edi, esp
push eax
mov dword [esp + 0x2c], eax
call fcn.00401260
add eax, 0x10
mov dword [edi], eax
mov ebp, dword [esp + 0x78]
lea eax, [ebp - 0x10]
mov dword [esp + 0x28], esp
mov edi, esp
push eax
mov byte [esp + 0x70], 5
mov dword [esp + 0x2c], eax
call fcn.00401260
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [esi + 0x4c]
mov edx, dword [ecx]
add esp, 4
mov byte [esp + 0x6c], 4
call dword [edx]
cmp eax, 2
je 0x407f14
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov edi, esp
push eax
call fcn.00401260
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov edi, esp
push eax
mov byte [esp + 0x74], 6
call fcn.00401260
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [esi + 0x4c]
mov edx, dword [ecx]
add esp, 4
mov byte [esp + 0x70], 4
call dword [edx + 4]
mov edi, eax
test edi, edi
je 0x4079be
push edi
lea eax, [esp + 0x7c]
push eax
mov ecx, esi
call fcn.004123d0
mov ecx, dword [eax]
mov edx, dword [esi + 0x40]
lea eax, [esi + 0x40]
push ecx
push eax
mov byte [esp + 0x6c], 7
call dword [edx]
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x64], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40796e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00401240
lea ecx, [esp + 0x14]
call fcn.00401240
lea ecx, [esp + 0x6c]
call fcn.00401240
lea ecx, [esp + 0x70]
call fcn.00401240
lea ecx, [esp + 0x74]
call fcn.00401240
cmp edi, 2
je 0x407fc4
mov eax, 4
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x10
call fcn.0042df63
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
push ebp
lea eax, [esp + 0x1c]
push str._s.dl
push eax
mov byte [esp + 0x70], 8
call fcn.00407220
add esp, 0xc
call fcn.0042df63
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x18]
mov eax, dword [eax - 0xc]
xor edi, edi
test eax, eax
mov byte [esp + 0x64], 9
jle 0x407a67
mov edi, edi
test edi, edi
jl 0x407bfd
cmp edi, eax
jg 0x407bfd
mov ecx, dword [esp + 0x18]
mov al, byte [edi + ecx]
cmp al, 0x5c
mov byte [esp + 0x30], al
jne 0x407a49
mov eax, dword [ebx - 0xc]
test eax, eax
jle 0x407a49
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x407a49
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [esp + 0x30]
push edx
lea ecx, [esp + 0x20]
call fcn.00406d90
mov eax, dword [esp + 0x18]
mov eax, dword [eax - 0xc]
mov ebx, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x407a10
lea ecx, [esp + 0x38]
call fcn.0042f0b3
push 0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x54]
mov byte [esp + 0x70], 0xa
call fcn.00407570
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x48]
push ecx
push 0x1001
push edi
lea ecx, [esp + 0x44]
mov byte [esp + 0x70], 0xb
call fcn.0042f34b
test eax, eax
jne 0x407c07
mov ecx, dword [esp + 0x50]
mov edx, dword [esi + 0x40]
push ecx
push edi
lea eax, [esi + 0x40]
push 0x43a4c4
push eax
call dword [edx]
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x64], 0xa
mov dword [esp + 0x48], vtable.CFileException.0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407aeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x38]
mov byte [esp + 0x64], 9
call fcn.0042f0f2
add ebx, 0xfffffff0
mov byte [esp + 0x64], 8
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407b18
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x64], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x64], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x64], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
mov byte [esp + 0x64], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ba0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
mov byte [esp + 0x64], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407bc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x64], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407be3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 7
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x10
push 0x80070057
call fcn.004011b0
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
lea edx, [esp + 0x38]
push edx
call dword [eax + 8]
lea ecx, [esp + 0x38]
mov edi, eax
call fcn.0042f051
test edi, edi
je 0x407cec
push edi
lea eax, [esp + 0x7c]
push eax
mov ecx, esi
call fcn.00412530
mov ecx, dword [eax]
mov edx, dword [esi + 0x40]
lea eax, [esi + 0x40]
push ecx
push eax
mov byte [esp + 0x6c], 0xc
call dword [edx]
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x64], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407c6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x48]
mov byte [esp + 0x64], 0xa
call fcn.00406d60
lea ecx, [esp + 0x38]
mov byte [esp + 0x64], 9
call fcn.0042f0f2
lea ecx, [esp + 0x1c]
call fcn.00401240
lea ecx, [esp + 0x18]
call fcn.00401240
lea ecx, [esp + 0x10]
call fcn.00401240
lea ecx, [esp + 0x14]
call fcn.00401240
lea ecx, [esp + 0x6c]
call fcn.00401240
lea ecx, [esp + 0x70]
call fcn.00401240
lea ecx, [esp + 0x74]
call fcn.00401240
cmp edi, 2
je 0x407fc4
mov eax, 5
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x407d15
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x407d15
mov edx, dword [esi + 0x40]
push eax
push ebp
lea ecx, [esi + 0x40]
push 0x43a4a4
push ecx
call dword [edx]
add esp, 0x10
xor ebx, ebx
mov eax, dword [esp + 0x20]
push ecx
mov dword [esp + 0x34], esp
mov edi, esp
push eax
call fcn.00401260
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00403420
add esp, 4
test al, al
je 0x407d6c
cmp ebx, 0x3c
jge 0x407d6c
test ebx, ebx
jne 0x407d4c
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esi + 0x40]
push ebp
lea eax, [esi + 0x40]
push str.CPUT:___s_
push eax
call dword [ecx]
add esp, 0xc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
jmp 0x407d17
mov edx, dword [esp + 0x18]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x407e0e
mov edi, dword [esi + 0x40]
add esi, 0x40
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push 0x43a468
push esi
call dword [edi]
add esp, 0x10
lea ecx, [esp + 0x48]
mov byte [esp + 0x64], 0xa
call fcn.00406d60
lea ecx, [esp + 0x38]
mov byte [esp + 0x64], 9
call fcn.0042f0f2
lea ecx, [esp + 0x1c]
call fcn.00401240
lea ecx, [esp + 0x18]
call fcn.00401240
lea ecx, [esp + 0x10]
call fcn.00401240
lea ecx, [esp + 0x14]
call fcn.00401240
lea ecx, [esp + 0x6c]
call fcn.00401240
lea ecx, [esp + 0x70]
call fcn.00401240
lea ecx, [esp + 0x74]
call fcn.00401240
mov eax, 8
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x10
push ecx
lea eax, [esp + 0x78]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.004012c0
push ecx
lea edx, [esp + 0x78]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov byte [esp + 0x70], 0xd
call fcn.004012c0
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
mov byte [esp + 0x6c], 0xb
call dword [eax]
cmp eax, 2
je 0x407edf
cmp eax, 4
je 0x407edf
mov edx, dword [esp + 0x74]
mov ecx, dword [esi + 0x40]
push edx
push ebp
lea eax, [esi + 0x40]
push 0x43a444
push eax
call dword [ecx]
add esp, 0x10
lea ecx, [esp + 0x48]
mov byte [esp + 0x64], 0xa
call fcn.00406d60
lea ecx, [esp + 0x38]
mov byte [esp + 0x64], 9
call fcn.0042f0f2
lea ecx, [esp + 0x1c]
call fcn.00401240
lea ecx, [esp + 0x18]
call fcn.00401240
lea ecx, [esp + 0x10]
call fcn.00401240
lea ecx, [esp + 0x14]
call fcn.00401240
lea ecx, [esp + 0x6c]
call fcn.00401240
lea ecx, [esp + 0x70]
call fcn.00401240
lea ecx, [esp + 0x74]
call fcn.00401240
mov eax, 9
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x10
lea ecx, [esp + 0x48]
mov byte [esp + 0x64], 0xa
call fcn.00406d60
lea ecx, [esp + 0x38]
mov byte [esp + 0x64], 9
call fcn.0042f0f2
lea ecx, [esp + 0x1c]
call fcn.00401240
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 4
call fcn.00401240
jmp 0x407f26
mov ecx, dword [esi + 0x40]
push ebp
lea eax, [esi + 0x40]
push 0x43a42c
push eax
call dword [ecx]
add esp, 0xc
mov al, byte [esp + 0x78]
test al, al
je 0x407ff8
push 0
push 7
mov ecx, esi
call fcn.00406690
mov ebx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x7c], esp
mov edi, esp
push ebx
call fcn.00401260
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [esi + 0x4c]
mov edx, dword [ecx]
add esp, 4
call dword [edx + 0xc]
mov edi, eax
test edi, edi
je 0x407ffc
push edi
lea eax, [esp + 0x7c]
push eax
mov ecx, esi
call fcn.004125f0
mov edx, dword [eax]
mov ecx, dword [esi + 0x40]
add esi, 0x40
push edx
push esi
mov byte [esp + 0x6c], 0xe
call dword [ecx]
add esp, 8
lea ecx, [esp + 0x78]
call fcn.00401240
lea ecx, [esp + 0x10]
call fcn.00401240
lea ecx, [esp + 0x14]
call fcn.00401240
lea ecx, [esp + 0x6c]
call fcn.00401240
lea ecx, [esp + 0x70]
call fcn.00401240
lea ecx, [esp + 0x74]
call fcn.00401240
cmp edi, 2
jne 0x407fde
mov eax, 1
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x10
mov eax, 6
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x10
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x64], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40801f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x64], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408042
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
mov byte [esp + 0x64], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408065
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x64], 0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408081
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x64], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4080a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret 0x10