Function at 0x4ff970
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x19
push 0
push 0
dec ecx
jne 0x4ff979
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040573c
mov eax, dword [ebp - 8]
call fcn.0040573c
xor eax, eax
push ebp
push 0x50014d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x3c], 3
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffff
call fcn.0040d398
fstp qword [ebp - 0x28]
wait
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax], edx
mov eax, 0x500168
call fcn.004be23c
test al, al
je 0x4ff9f0
cmp byte [0x8855a8], 0
jne 0x50011a
cmp byte [ebp + 8], 0
je 0x4ffa2c
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004ff6f8
test al, al
je 0x4ffa2c
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x34]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
jmp 0x50011a
mov eax, dword [ebp - 4]
call fcn.004ff5e8
test al, al
je 0x4ffa93
mov eax, dword [ebp - 4]
call fcn.0040ad3c
test al, al
jne 0x4ffa93
xor eax, eax
push ebp
push 0x4ffa7b
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0040d398
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.0049b738
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x500100
mov byte [ebp - 0x1e], 0
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.0040a298
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x18]
call fcn.0040a048
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x18]
call fcn.0040554c
mov edx, eax
sub edx, 3
mov ecx, 4
mov eax, dword [ebp - 0x18]
call fcn.004057ac
mov eax, dword [ebp - 0x4c]
mov edx, 0x50017c
call fcn.00405698
jne 0x4ffade
mov byte [ebp - 0x1e], 1
mov byte [ebp - 0x1f], 0
mov eax, 0x50018c
call fcn.004be23c
test al, al
je 0x4ffafa
push 0x3e8
call sub.kernel32.dll_Sleep_1
mov byte [ebp - 0x1d], 0
xor eax, eax
push ebp
push 0x4ffb25
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41c3d0]
call fcn.0040442c
mov dword [ebp - 0x1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ffb9c
xor eax, eax
push ebp
push 0x4ffd80
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004ff5e8
test al, al
je 0x4ffcd9
push 0
push 0xa0000000
push 3
push 0
push 7
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.0040574c
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x4ffbee
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x4ffc50
lea edx, [ebp - 0x60]
xor eax, eax
call fcn.004c3988
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x5c]
mov edx, 0x5001a0
call fcn.004bdd94
mov eax, dword [ebp - 0x5c]
push eax
push 0x5001dc
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x68]
call fcn.0040a878
push dword [ebp - 0x68]
push 0x5001d0
push dword [ebp - 4]
push 0x5001d0
push dword [ebp - 8]
lea eax, [ebp - 0x64]
mov edx, 6
call fcn.0040560c
mov eax, dword [ebp - 0x64]
mov ecx, 0x3e8
pop edx
call fcn.004c9098
push 0x20
push 0
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4fef00]
call fcn.004fefbc
mov dword [ebp - 0x14], eax
jmp 0x4ffcbd
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.004ff220
cmp byte [ebp - 0x1e], 0
je 0x4ffcb2
lea eax, [ebp - 0x6c]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 0x18]
call fcn.004057ac
mov eax, dword [ebp - 0x6c]
mov edx, 0x5001f4
call fcn.00405698
jne 0x4ffcb2
push 0
lea eax, [ebp - 0x18]
mov ecx, 0x500204
mov edx, 0x500210
call fcn.004beee4
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x14]
call fcn.004ff0dc
test al, al
je 0x4ffc68
cmp dword [ebp - 0x14], 0
je 0x4ffcf3
lea eax, [ebp - 0x14]
call fcn.004113dc
jmp 0x4ffcf3
mov dword [ebp - 0x3c], 1
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004feb68
test al, al
jne 0x4ffcf3
mov byte [ebp - 0x1f], 1
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 8]
call fcn.0040a048
mov edx, dword [ebp - 0x70]
mov eax, 0x50021c
call fcn.00405890
test eax, eax
jg 0x4ffd15
cmp byte [ebp - 0x1e], 0
je 0x4ffd37
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x74]
mov eax, 0x50022c
call fcn.00405890
test eax, eax
jle 0x4ffd57
mov byte [ebp - 0x1d], 1
jmp 0x4ffd57
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x78]
mov eax, 0x50023c
call fcn.00405890
test eax, eax
jle 0x4ffd57
mov byte [ebp - 0x1d], 1
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4ffd6e
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x74]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ffe26
xor eax, eax
push ebp
push 0x4ffe4c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x1c], 0
je 0x4ffe42
mov eax, dword [ebp - 0x1c]
call fcn.0040445c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ffe56
cmp byte [ebp - 0x1f], 0
jne 0x4ffe66
cmp byte [ebp - 0x1d], 0
jne 0x4fff54
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x3c]
jge 0x4fff4d
push 0x9c4
call sub.kernel32.dll_Sleep_1
lea edx, [ebp - 0x90]
xor eax, eax
call fcn.004c3988
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x8c]
mov edx, 0x5001a0
call fcn.004bdd94
mov eax, dword [ebp - 0x8c]
push eax
push 0x5002a0
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.0040a78c
push dword [ebp - 0x98]
push 0x5002c0
mov al, byte [ebp - 0x1d]
call fcn.004c1f1c
mov edx, eax
lea eax, [ebp - 0x9c]
call fcn.00405474
push dword [ebp - 0x9c]
push 0x5001d0
push dword [ebp - 4]
push 0x5001d0
push dword [ebp - 8]
lea eax, [ebp - 0x94]
mov edx, 8
call fcn.0040560c
mov eax, dword [ebp - 0x94]
mov ecx, 0x3e8
pop edx
call fcn.004c9098
mov eax, dword [ebp - 0xc]
inc dword [eax]
push 0
lea eax, [ebp - 0xa0]
mov ecx, 0x5002d0
mov edx, dword [ebp - 8]
call fcn.00405598
mov eax, dword [ebp - 0xa0]
call fcn.0040574c
push eax
mov eax, dword [ebp - 8]
call fcn.0040574c
push eax
call sub.kernel32.dll_CopyFileA
jmp 0x4ffae2
mov dword [ebp - 0x10], 0xfffffffe
lea edx, [ebp - 0xa8]
xor eax, eax
call fcn.004c3988
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
mov edx, 0x5002e4
call fcn.004bdd94
mov eax, dword [ebp - 0xa4]
push eax
push 0x5002fc
lea edx, [ebp - 0xb0]
mov eax, dword [ebp - 0x10]
call fcn.0040a78c
push dword [ebp - 0xb0]
push 0x500314
lea edx, [ebp - 0xb4]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.0040a78c
push dword [ebp - 0xb4]
push 0x500328
call fcn.0040d398
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.0049b738
push edx
push eax
lea eax, [ebp - 0xb8]
call fcn.0040a878
push dword [ebp - 0xb8]
push 0x5001d0
push dword [ebp - 4]
lea eax, [ebp - 0xac]
mov edx, 8
call fcn.0040560c
mov eax, dword [ebp - 0xac]
mov ecx, 0x7d0
pop edx
call fcn.004c9098
cmp dword [ebp - 0x10], 0
jne 0x50001c
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x5000b9
lea edx, [ebp - 0xc0]
xor eax, eax
call fcn.004c3988
mov eax, dword [ebp - 0xc0]
lea ecx, [ebp - 0xbc]
mov edx, 0x5002e4
call fcn.004bdd94
mov edx, dword [ebp - 0xbc]
mov ecx, 0x7d0
mov eax, 0x500338
call fcn.004c9098
push 0
lea edx, [ebp - 0xc8]
xor eax, eax
call fcn.004c3988
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
mov edx, 0x500350
call fcn.004bdd94
mov eax, dword [ebp - 0xc4]
call fcn.0040574c
push eax
lea edx, [ebp - 0xd0]
xor eax, eax
call fcn.004c3988
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0xcc]
mov edx, 0x5002e4
call fcn.004bdd94
mov eax, dword [ebp - 0xcc]
call fcn.0040574c
push eax
call sub.kernel32.dll_CopyFileA
xor eax, eax
push ebp
push 0x5000ed
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0040d398
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.0049b738
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x500100
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004ff82c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500154
lea eax, [ebp - 0xd0]
mov edx, 0x23
call fcn.004052b0
lea eax, [ebp - 0x18]
call fcn.0040528c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004052b0
ret