Function at 0x406d70
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595e65
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6001c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x1c]
call fcn.00402220
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00402220
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
add ecx, 0x5c
call fcn.00405b80
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x406fa0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
add edx, 0x5c
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.00405c40
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
cmp eax, dword [ebp + 8]
je 0x406e01
jmp 0x406dce
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401fd0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x10]
add edx, 0x10
push edx
lea ecx, [ebp - 0x18]
call fcn.00401fd0
mov byte [ebp - 4], 4
mov ecx, 0x604bb4
call fcn.00402790
push eax
push 0x5a8194
lea ecx, [ebp - 0x18]
call fcn.004091c0
lea ecx, [ebp + 0xc]
call fcn.00402790
push eax
push 0x5a81a4
lea ecx, [ebp - 0x14]
call fcn.004091c0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
je 0x406e8b
push 0
lea ecx, [ebp - 0x14]
call fcn.00402790
push eax
call fcn.0056b798
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.004023e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.004023e0
jmp 0x406dce
push 0
lea ecx, [ebp - 0x14]
call fcn.00402790
push eax
call fcn.0056b798
test eax, eax
je 0x406ea8
mov dword [ebp - 0x30], 1
jmp 0x406eaf
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
je 0x406efb
push 0x12a
push 0x5a81b4
lea ecx, [ebp - 0x40]
call fcn.00402040
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x3c]
call fcn.00402790
push eax
mov eax, dword [ebp - 0x20]
push eax
call fcn.004335f0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004023e0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x18]
push eax
push 0x5a81e4
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00405320
add esp, 0x10
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0x5a81f0
lea edx, [ebp - 0x24]
push edx
call fcn.00405320
add esp, 0x10
lea ecx, [ebp - 0x24]
call fcn.00402790
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x1c]
call fcn.00402790
mov dword [ebp - 0x48], eax
push 0
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x406f83
lea ecx, [ebp - 0x1c]
call fcn.00402790
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
push 0
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x50]
push eax
call fcn.004335f0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.004023e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.004023e0
jmp 0x406dce
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004023e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
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