Function at 0x489b70
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x489b78
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x489f25
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x489eea
mov dl, 1
mov eax, dword [0x4166d8]
call fcn.00403c80
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x5c], 1
mov eax, dword [ebp - 4]
push eax
push 0x488b40
mov eax, dword [ebp - 4]
call fcn.0041e4d8
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x489e96
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.0040530c
mov eax, dword [ebp - 0x18]
mov edx, 0x489f3c
call fcn.0047e7e4
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x20]
mov edx, 2
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x68]
lea eax, [ebp - 0x10]
call fcn.00404d90
lea ecx, [ebp - 0x24]
mov edx, 2
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
add eax, 0x44
mov edx, 0x489f48
call fcn.00404d90
mov eax, dword [ebp - 4]
push eax
push 0x488b28
mov eax, dword [ebp - 4]
call fcn.0041e4d8
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x5c], edx
lea ecx, [ebp - 0x28]
xor edx, edx
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x28]
call fcn.004090a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 4]
push eax
push 0x488b40
mov eax, dword [ebp - 4]
call fcn.0041e4d8
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
call fcn.0040965c
mov eax, dword [ebp - 0x2c]
call fcn.004094b8
test al, al
jne 0x489cce
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x10]
call fcn.0040965c
mov eax, dword [ebp - 0x30]
call fcn.004094dc
push 1
mov eax, dword [ebp - 4]
push dword [eax + 0x60]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x3c]
mov edx, 2
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x3c]
mov ecx, 0x489f60
mov edx, 0x489f6c
call fcn.0047e578
push dword [ebp - 0x38]
push 0x489f78
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404e04
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
mov ecx, 0x489f78
mov edx, dword [ebp - 0x10]
call fcn.00404d90
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 4]
pop edx
call fcn.00488cb8
test al, al
je 0x489e5b
xor eax, eax
push ebp
push 0x489e3d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x50], 1
jne 0x489dbe
mov eax, dword [ebp - 4]
push dword [eax + 0x68]
push 0x489f88
lea ecx, [ebp - 0x44]
mov edx, 2
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
push dword [ebp - 0x44]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404e04
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x14]
call fcn.0040965c
mov eax, dword [ebp - 0x48]
call fcn.004094b8
test al, al
jne 0x489da5
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x14]
call fcn.0040965c
mov eax, dword [ebp - 0x4c]
call fcn.004094dc
push 0
mov eax, dword [ebp - 0x14]
call fcn.00404f44
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404f44
push eax
call sub.kernel32.dll_CopyFileA
lea ecx, [ebp - 0x50]
mov edx, 2
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 4]
add eax, 0x44
mov edx, 0x489f98
call fcn.00404d90
mov eax, dword [ebp - 4]
push eax
push 0x488b28
mov eax, dword [ebp - 4]
call fcn.0041e4d8
lea ecx, [ebp - 0x58]
mov edx, 2
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x68]
lea eax, [ebp - 0x54]
call fcn.00404d90
mov eax, dword [ebp - 0x54]
push eax
lea eax, [ebp - 0x5c]
mov ecx, 0x489f78
mov edx, dword [ebp - 0x10]
call fcn.00404d90
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 4]
pop ecx
call fcn.00488e84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x489e6f
mov eax, dword [ebp - 4]
add eax, 0x44
mov edx, 0x489fac
call fcn.00404ad8
mov bl, 1
jmp 0x489eb3
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x40], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x5c], 1
mov eax, dword [ebp - 4]
push eax
push 0x488b94
mov eax, dword [ebp - 4]
call fcn.0041e4d8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0xc]
jle 0x489eb3
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
je 0x489bef
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x40], edx
mov eax, dword [ebp - 4]
push eax
push 0x488b94
mov eax, dword [ebp - 4]
call fcn.0041e4d8
mov eax, dword [ebp - 8]
call fcn.00403cb0
test bl, bl
jne 0x489ef5
mov eax, dword [ebp - 4]
add eax, 0x44
mov edx, 0x489fc4
call fcn.00404ad8
jmp 0x489ef5
mov eax, dword [ebp - 4]
add eax, 0x44
call fcn.00404a84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489f2c
lea eax, [ebp - 0x5c]
mov edx, 0x11
call fcn.00404aa8
lea eax, [ebp - 0x18]
call fcn.004051b8
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404aa8
ret