Function at 0x402360
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x597ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x5fd890]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4023a9
mov eax, dword [edi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00404440
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
lea ebx, [esp + 0x18]
mov dword [esp + 0x68], 0
call fcn.00402850
call fcn.00470afc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4023ec
push 0x80004005
call fcn.004020b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 1
call fcn.0047249a
push 0x5cd734
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x74], 2
call fcn.00404340
add esp, 0xc
mov byte [esp + 0x68], 3
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x4c]
call fcn.00472532
mov esi, eax
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402460
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40272a
jmp 0x402470
lea ecx, [esp + 0x44]
call fcn.0047217c
lea ecx, [esp + 0x44]
mov dword [esp + 0x40], eax
call fcn.0047245b
test eax, eax
jne 0x40271f
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x48]
call fcn.004727c2
mov byte [esp + 0x68], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x4024fb
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4024e6
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4024e6
push eax
call fcn.00404440
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4024dd
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x4024f8
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404930
mov ebx, dword [esp + 0x14]
mov edi, dword [ebp + 0xc]
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402520
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x48]
call eax
push 0x5cd740
push edi
test eax, eax
je 0x402627
lea ecx, [esp + 0x34]
push ecx
call fcn.00404340
lea edx, [esp + 0x20]
push edx
push eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x80], 5
call fcn.00402950
mov esi, eax
push 0x5cd740
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x8c], 6
call fcn.00404340
lea ecx, [esp + 0x38]
push ecx
push eax
lea edx, [esp + 0x4c]
push edx
mov byte [esp + 0x98], 7
call fcn.00402950
push esi
push eax
mov byte [esp + 0xa0], 8
call fcn.00402360
mov byte [esp + 0xa0], 7
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
add esp, 0x38
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402619
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x2c]
jmp 0x402703
lea ecx, [esp + 0x44]
push ecx
call fcn.00404340
lea edx, [esp + 0x20]
push edx
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x80], 9
call fcn.00402950
mov esi, eax
push 0x5cd740
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0x8c], 0xa
call fcn.00404340
lea ecx, [esp + 0x38]
push ecx
push eax
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x98], 0xb
call fcn.00402950
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0x30
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4026b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 0xa
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4026d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 9
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4026fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40271f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x40], 0
jne 0x402470
lea ecx, [esp + 0x44]
call fcn.00472096
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 1
call fcn.004724c3
lea eax, [ebx - 0x10]
mov byte [esp + 0x68], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402762
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x68], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40278a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret