Function at 0x407320
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597bed
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x6031c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x20]
call fcn.00402220
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402220
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
add ecx, 0x5c
call fcn.00405f30
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x407607
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
add edx, 0x5c
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x38]
call fcn.00405ff0
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
cmp eax, dword [ebp + 8]
je 0x4073b1
jmp 0x40737e
lea ecx, [ebp - 0x10]
call fcn.00402220
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
push ecx
push 0x5aa1cc
lea edx, [ebp - 0x10]
push edx
call fcn.004056d0
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00402220
mov byte [ebp - 4], 4
mov eax, dword [ebp + 8]
push eax
push 0x5aa1d4
lea ecx, [ebp - 0x14]
push ecx
call fcn.004056d0
add esp, 0xc
push str.PkgDir_
lea ecx, [ebp - 0x1c]
call fcn.004020c0
mov byte [ebp - 4], 5
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.004027a0
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x14]
call fcn.004025b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.004023e0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.004027a0
add esp, 0xc
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x10]
call fcn.004025b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x50]
call fcn.004023e0
mov ecx, 0x607bb4
call fcn.00402790
push eax
push 0x5aa1ec
lea ecx, [ebp - 0x14]
call fcn.004097e0
lea ecx, [ebp + 0xc]
call fcn.00402790
push eax
push 0x5aa1fc
lea ecx, [ebp - 0x10]
call fcn.004097e0
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xc], 0
je 0x4074e6
push 0
lea ecx, [ebp - 0x10]
call fcn.00402790
push eax
call fcn.0056bd68
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.004023e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.004023e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.004023e0
jmp 0x40737e
push 0
lea ecx, [ebp - 0x10]
call fcn.00402790
push eax
call fcn.0056bd68
test eax, eax
je 0x407503
mov dword [ebp - 0x34], 1
jmp 0x40750a
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
je 0x407556
push 0x135
push 0x5aa20c
lea ecx, [ebp - 0x5c]
call fcn.00402040
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x58]
call fcn.00402790
push eax
mov eax, dword [ebp - 0x24]
push eax
call fcn.00433d50
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.004023e0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x5aa23c
lea ecx, [ebp - 0x20]
push ecx
call fcn.004056d0
add esp, 0x10
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0x5aa248
lea edx, [ebp - 0x28]
push edx
call fcn.004056d0
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.00402790
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x20]
call fcn.00402790
mov dword [ebp - 0x64], eax
push 0
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4075de
lea ecx, [ebp - 0x20]
call fcn.00402790
mov dword [ebp - 0x68], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
push 0
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00433d50
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.004023e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.004023e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.004023e0
jmp 0x40737e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004023e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004023e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004023e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8