Function at 0x405c60
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443eeb
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4576e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], 0
mov ecx, dword [ebp + 0xc]
call fcn.00406ec0
movzx eax, al
test eax, eax
je 0x405cbf
push 0x447617
mov ecx, dword [ebp + 8]
call fcn.00401cc0
mov ecx, dword [ebp - 0x68]
or ecx, 1
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp + 8]
jmp 0x406087
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebp - 0x6c]
call fcn.004060a0
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x74]
push ecx
mov ecx, dword [ebp - 0x6c]
add ecx, 0x2c
call fcn.00401d60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401d40
mov ecx, dword [ebp - 0x6c]
add ecx, 0x2c
call fcn.00401a90
movzx edx, al
test edx, edx
je 0x405d29
push 0x447625
mov ecx, dword [ebp + 8]
call fcn.00401cc0
mov eax, dword [ebp - 0x68]
or eax, 1
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 8]
jmp 0x406087
lea ecx, [ebp - 0x1c]
call fcn.00401c80
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00401c80
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00406e60
jmp 0x405d67
push 0
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x14]
call fcn.00406f40
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00406e90
push eax
lea ecx, [ebp - 0x14]
call fcn.00406f80
movzx ecx, al
test ecx, ecx
je 0x406042
lea ecx, [ebp - 0x14]
call fcn.00406f20
push eax
lea ecx, [ebp - 0x38]
call fcn.00401ca0
mov byte [ebp - 4], 3
push 0x447688
lea ecx, [ebp - 0x38]
call fcn.00401da0
push eax
call fcn.0042fa7f
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x405dc9
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.00401d40
jmp 0x405d59
mov edx, dword [ebp - 0x34]
push edx
call fcn.0042f93f
add esp, 4
push 0x5c
lea ecx, [ebp - 0x38]
call fcn.00404460
mov dword [ebp - 0x28], eax
push 0x2f
lea ecx, [ebp - 0x38]
call fcn.00404460
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jle 0x405dfd
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x38]
call fcn.00401db0
sub eax, dword [ebp - 0x28]
sub eax, 1
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x38]
call fcn.00401950
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.00401a90
movzx eax, al
test eax, eax
je 0x405f5f
lea ecx, [ebp - 0x3c]
call fcn.00401c80
mov byte [ebp - 4], 5
push 0x2e
lea ecx, [ebp - 0x30]
call fcn.00404460
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jle 0x405e85
mov ecx, dword [ebp - 0x28]
push ecx
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x30]
call fcn.004019d0
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00401d60
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x54]
call fcn.00401d40
jmp 0x405e91
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x3c]
call fcn.00401d60
push 0x44768c
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.00406cd0
add esp, 0xc
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x84], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x84]
push eax
lea ecx, [ebp - 0x20]
call fcn.00401d60
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
call fcn.00401d40
lea ecx, [ebp - 0x20]
push ecx
push 0x447694
mov edx, dword [ebp - 0x6c]
add edx, 0x2c
push edx
lea eax, [ebp - 0x5c]
push eax
call fcn.00406cd0
add esp, 0xc
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x8c]
push edx
lea eax, [ebp - 0x60]
push eax
call fcn.00406c20
add esp, 0xc
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x94], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x94]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00401d60
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x60]
call fcn.00401d40
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.00401d40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3c]
call fcn.00401d40
lea eax, [ebp - 0x30]
push eax
push 0x447698
mov ecx, dword [ebp - 0x6c]
add ecx, 0x2c
push ecx
lea edx, [ebp - 0x64]
push edx
call fcn.00406cd0
add esp, 0xc
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x9c]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.00406c20
add esp, 0xc
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x64]
call fcn.00401d40
push 0
lea ecx, [ebp - 0x2c]
call fcn.00401da0
push eax
lea ecx, [ebp - 0x38]
call fcn.00401da0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp dword [ebp - 0x18], 0
jne 0x405ff5
lea ecx, [ebp - 0x1c]
call fcn.00401a90
movzx eax, al
test eax, eax
jne 0x405ff5
push 0
lea ecx, [ebp - 0x1c]
call fcn.00401da0
push eax
call fcn.00411400
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x406019
lea ecx, [ebp - 0x2c]
call fcn.00401da0
push eax
lea ecx, [ebp - 0x30]
call fcn.00401da0
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004114b0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00401d40
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.00401d40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.00401d40
jmp 0x405d59
cmp dword [ebp - 0x18], 0
je 0x406054
mov edx, dword [ebp - 0x18]
push edx
call fcn.004115e0
add esp, 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401ca0
mov ecx, dword [ebp - 0x68]
or ecx, 1
mov dword [ebp - 0x68], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00401d40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00401d40
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8