Function at 0x403590
Capabilities:
Check if file exists
Copy file

Disassembly:
mov eax, 0x4261fc
call fcn.00409b88
sub esp, 0x44
mov eax, dword [0x42f054]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x3c], eax
xor edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x50]
mov byte [ebp - 4], 4
cmp ecx, edx
jne 0x4035d2
mov dword [ebp - 0x28], edx
jmp 0x4035dd
mov eax, dword [esi + 0x54]
sub eax, ecx
sar eax, 2
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], edx
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x1c], edx
jle 0x403939
cmp dword [esi + 0x44], 0
jne 0x403933
mov ebx, dword [esi + 0x50]
mov eax, dword [ebp - 0x1c]
push 0x2e
lea ecx, [ebx + eax*4]
call fcn.0040162e
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebx + eax*4]
call fcn.004014fd
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00401249
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00401162
cmp dword [esi + 0x74], 0
jne 0x403646
lea eax, [esi + 0x78]
lea ecx, [ebp - 0x20]
push eax
call fcn.00401249
jmp 0x403684
push dword [esi + 0x70]
lea ecx, [esi + 0x4c]
push dword [ebp - 0x1c]
call fcn.00403bf1
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
call section..text
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.00402e56
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.00401249
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.00401162
and dword [ebp - 0x24], 0
mov eax, dword [esi + 0x60]
test eax, eax
je 0x403839
mov edx, dword [esi + 0x64]
mov ecx, dword [ebp - 0x24]
sub edx, eax
sar edx, 2
cmp ecx, edx
jae 0x403839
mov ebx, ecx
shl ebx, 2
push dword [ebx + eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4036d6
push dword [ebp - 0x24]
lea ecx, [esi + 0x5c]
call fcn.00403bf1
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
call section..text
mov ecx, esi
call fcn.004033ab
mov eax, dword [esi + 0x60]
mov ecx, dword [ebx + eax]
mov edx, dword [ebx + eax]
mov ecx, dword [ecx - 8]
cmp byte [edx + ecx - 1], 0x5c
je 0x4036f3
push 0x5c
lea ecx, [ebx + eax]
call fcn.00401411
push dword [ebp - 0x2c]
mov eax, dword [esi + 0x60]
push dword [ebp - 0x20]
push dword [ebx + eax]
lea eax, [ebp - 0x14]
push str._s_s_s
push eax
call fcn.00401958
add esp, 0x14
cmp dword [esi + 0x74], 0
jne 0x40375e
cmp dword [esi + 0x7c], 0
jne 0x40375e
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40375e
and dword [ebp - 0x34], 0
push dword [ebp - 0x2c]
inc dword [ebp - 0x34]
mov eax, dword [esi + 0x60]
push dword [ebp - 0x34]
push dword [ebp - 0x20]
push dword [ebx + eax]
lea eax, [ebp - 0x14]
push str._s_s__d_s
push eax
call fcn.00401958
add esp, 0x18
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
je 0x40372d
mov eax, dword [esi + 0x50]
mov ebx, dword [ebp - 0x1c]
push 0
push dword [ebp - 0x14]
mov eax, dword [eax + ebx*4]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40382d
push 0x66
lea ecx, [ebp - 0x10]
call fcn.00401989
mov eax, dword [esi + 0x50]
lea ecx, [ebp - 0x10]
lea eax, [eax + ebx*4]
push eax
call fcn.00401426
push 0xffffffffffffffff
push dword [ebp - 0x10]
call fcn.00402b5e
mov dword [ebp - 0x40], eax
mov ebx, 0x42f25c
push 0xffffffffffffffff
push ebx
call fcn.00402b5e
add esp, 0x10
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x28]
push 3
push dword [ebp - 0x40]
mov byte [ebp - 4], 8
mov ecx, dword [eax]
push dword [ebp - 0x34]
push eax
call dword [ecx + 0x44]
push dword [ebp - 0x34]
call edi
push dword [ebp - 0x40]
mov byte [ebp - 4], 4
call edi
push 0x67
lea ecx, [ebp - 0x10]
call fcn.00401989
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call fcn.00401426
push 0xffffffffffffffff
push dword [ebp - 0x10]
call fcn.00402b5e
mov dword [ebp - 0x34], eax
push 0xffffffffffffffff
push ebx
call fcn.00402b5e
add esp, 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x28]
push 3
push dword [ebp - 0x34]
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
push dword [ebp - 0x40]
push eax
call dword [ecx + 0x44]
push dword [ebp - 0x40]
call edi
push dword [ebp - 0x34]
mov byte [ebp - 4], 4
call edi
jmp 0x403831
and dword [ebp - 0x30], 0
inc dword [ebp - 0x24]
jmp 0x403688
cmp dword [ebp - 0x30], 0
je 0x403941
and dword [ebp - 0x18], 0
mov eax, dword [0x434850]
push 0x64
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xb
push dword [eax + 8]
call fcn.00403310
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x40]
fmul qword [0x4273f0]
fidiv dword [ebp - 0x28]
call fcn.0040a8ec
push eax
lea eax, [ebp - 0x3c]
push 0x42f270
push eax
call fcn.00401958
add esp, 0xc
lea ecx, [ebp - 0x38]
push 0x42f26c
call fcn.00403eb4
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x44]
push dword [ebp - 0x18]
push eax
call fcn.00403f1b
add esp, 0xc
mov ecx, dword [eax]
mov byte [ebp - 4], 0xd
test ecx, ecx
je 0x4038bc
call fcn.0040416c
jmp 0x4038be
xor eax, eax
lea ecx, [ebp - 0x3c]
push ecx
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0040133f
mov ebx, dword [eax]
add esp, 0xc
push dword [ebp - 0x18]
call edi
push 0xffffffffffffffff
push ebx
call fcn.00402b5e
pop ecx
mov dword [ebp - 0x18], eax
pop ecx
lea ecx, [ebp - 0x50]
call fcn.00401162
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x4038fb
call fcn.0040413f
and dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 0xb
test ecx, ecx
je 0x40390f
call fcn.0040413f
and dword [ebp - 0x38], 0
mov eax, dword [esi + 0x28]
push dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
push dword [ebp - 0x18]
mov byte [ebp - 4], 4
call edi
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
jl 0x4035ef
cmp dword [ebp - 0x30], 0
je 0x403941
mov byte [ebp - 0x44], 3
push 0x68
jmp 0x403947
mov byte [ebp - 0x44], 2
push 0x69
lea ecx, [ebp - 0x10]
call fcn.00401989
push 0xffffffffffffffff
push dword [ebp - 0x10]
call fcn.00402b5e
mov dword [ebp - 0x38], eax
push 0xffffffffffffffff
push 0x42f25c
call fcn.00402b5e
add esp, 0x10
mov dword [ebp - 0x40], eax
push dword [ebp - 0x44]
mov esi, dword [esi + 0x28]
mov byte [ebp - 4], 0xf
push dword [ebp - 0x38]
mov eax, dword [esi]
push dword [ebp - 0x40]
push esi
call dword [eax + 0x44]
push dword [ebp - 0x40]
call edi
push dword [ebp - 0x38]
call edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401162
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00401162
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401162
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00401162
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00401162
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret