Function at 0x404f70
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474ead
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x88
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00401420
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00401420
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
call fcn.00402690
test eax, eax
jne 0x404fef
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0045ecd5
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0045ecd5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0045ecd5
jmp 0x40517c
mov dword [ebp - 0x20], 0
jmp 0x405001
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 8]
call fcn.00402690
cmp dword [ebp - 0x20], eax
jge 0x405116
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp + 8]
call fcn.004026b0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xa4]
push ecx
push str._sUpgradeRecentExtracted_s
lea edx, [ebp - 0x18]
push edx
call fcn.00454b0b
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.0045ecd5
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004026b0
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str._s_s
lea eax, [ebp - 0x1c]
push eax
call fcn.00454b0b
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0045ecd5
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.0045ea4a
mov dword [ebp - 0x48], eax
call fcn.00404e50
add esp, 4
push ecx
mov eax, esp
mov dword [ebp - 0x30], esp
mov ecx, dword [ebp - 0x20]
push ecx
push eax
mov ecx, dword [ebp + 8]
call fcn.004026b0
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x14]
call fcn.004049a0
lea ecx, [ebp - 0x1c]
call fcn.00402310
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x18]
call fcn.00402310
mov dword [ebp - 0x54], eax
push 0
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x40510a
mov dword [ebp - 4], 2
jmp 0x404ff8
cmp dword [ebp + 0x10], 0
je 0x405155
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xa4]
push edx
push str._sUpgradeRecentExtracted_
lea eax, [ebp - 0x1c]
push eax
call fcn.00454b0b
add esp, 0xc
push 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.0045ea4a
mov dword [ebp - 0x58], eax
call fcn.00404030
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0045ecd5
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0045ecd5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0045ecd5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc