Function at 0x4f216c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x19
push 0
push 0
dec ecx
jne 0x4f2175
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.00405738
mov eax, dword [ebp - 8]
call fcn.00405738
xor eax, eax
push ebp
push 0x4f2949
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.0040d300
fstp qword [ebp - 0x28]
wait
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax], edx
mov eax, 0x4f2964
call fcn.0049d570
test al, al
je 0x4f21ec
cmp byte [0x7cd5bc], 0
jne 0x4f2916
cmp byte [ebp + 8], 0
je 0x4f2228
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.004f1ef4
test al, al
je 0x4f2228
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 0x4f2916
mov eax, dword [ebp - 4]
call fcn.004f1de4
test al, al
je 0x4f228f
mov eax, dword [ebp - 4]
call fcn.0040adec
test al, al
jne 0x4f228f
xor eax, eax
push ebp
push 0x4f2277
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0040d300
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.004a603c
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f28fc
mov byte [ebp - 0x1e], 0
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.0040a348
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x18]
call fcn.0040a0f8
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00405548
mov edx, eax
sub edx, 3
mov ecx, 4
mov eax, dword [ebp - 0x18]
call fcn.004057a8
mov eax, dword [ebp - 0x4c]
mov edx, 0x4f2978
call fcn.00405694
jne 0x4f22da
mov byte [ebp - 0x1e], 1
mov byte [ebp - 0x1f], 0
mov eax, 0x4f2988
call fcn.0049d570
test al, al
je 0x4f22f6
push 0x3e8
call sub.kernel32.dll_Sleep_1
mov byte [ebp - 0x1d], 0
xor eax, eax
push ebp
push 0x4f2321
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41c338]
call fcn.00404418
mov dword [ebp - 0x1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f2398
xor eax, eax
push ebp
push 0x4f257c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004f1de4
test al, al
je 0x4f24d5
push 0
push 0xa0000000
push 3
push 0
push 7
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00405748
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x4f23ea
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x4f244c
lea edx, [ebp - 0x60]
xor eax, eax
call fcn.004a29b8
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x5c]
mov edx, 0x4f299c
call fcn.0049d0c8
mov eax, dword [ebp - 0x5c]
push eax
push 0x4f29d8
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x68]
call fcn.0040a928
push dword [ebp - 0x68]
push 0x4f29cc
push dword [ebp - 4]
push 0x4f29cc
push dword [ebp - 8]
lea eax, [ebp - 0x64]
mov edx, 6
call fcn.00405608
mov eax, dword [ebp - 0x64]
mov ecx, 0x3e8
pop edx
call fcn.004c647c
push 0x20
push 0
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4f1700]
call fcn.004f17bc
mov dword [ebp - 0x14], eax
jmp 0x4f24b9
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.004f1a20
cmp byte [ebp - 0x1e], 0
je 0x4f24ae
lea eax, [ebp - 0x6c]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 0x18]
call fcn.004057a8
mov eax, dword [ebp - 0x6c]
mov edx, 0x4f29f0
call fcn.00405694
jne 0x4f24ae
push 0
lea eax, [ebp - 0x18]
mov ecx, 0x4f2a00
mov edx, 0x4f2a0c
call fcn.0049e218
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.004f18dc
test al, al
je 0x4f2464
cmp dword [ebp - 0x14], 0
je 0x4f24ef
lea eax, [ebp - 0x14]
call fcn.00411344
jmp 0x4f24ef
mov dword [ebp - 0x3c], 1
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004f1368
test al, al
jne 0x4f24ef
mov byte [ebp - 0x1f], 1
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 8]
call fcn.0040a0f8
mov edx, dword [ebp - 0x70]
mov eax, 0x4f2a18
call fcn.0040588c
test eax, eax
jg 0x4f2511
cmp byte [ebp - 0x1e], 0
je 0x4f2533
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x74]
mov eax, 0x4f2a28
call fcn.0040588c
test eax, eax
jle 0x4f2553
mov byte [ebp - 0x1d], 1
jmp 0x4f2553
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x78]
mov eax, 0x4f2a38
call fcn.0040588c
test eax, eax
jle 0x4f2553
mov byte [ebp - 0x1d], 1
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4f256a
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 0x4f2622
xor eax, eax
push ebp
push 0x4f2648
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x1c], 0
je 0x4f263e
mov eax, dword [ebp - 0x1c]
call fcn.00404448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f2652
cmp byte [ebp - 0x1f], 0
jne 0x4f2662
cmp byte [ebp - 0x1d], 0
jne 0x4f2750
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x3c]
jge 0x4f2749
push 0x9c4
call sub.kernel32.dll_Sleep_1
lea edx, [ebp - 0x90]
xor eax, eax
call fcn.004a29b8
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x8c]
mov edx, 0x4f299c
call fcn.0049d0c8
mov eax, dword [ebp - 0x8c]
push eax
push 0x4f2a9c
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.0040a83c
push dword [ebp - 0x98]
push 0x4f2abc
mov al, byte [ebp - 0x1d]
call fcn.004a11e8
mov edx, eax
lea eax, [ebp - 0x9c]
call fcn.00405460
push dword [ebp - 0x9c]
push 0x4f29cc
push dword [ebp - 4]
push 0x4f29cc
push dword [ebp - 8]
lea eax, [ebp - 0x94]
mov edx, 8
call fcn.00405608
mov eax, dword [ebp - 0x94]
mov ecx, 0x3e8
pop edx
call fcn.004c647c
mov eax, dword [ebp - 0xc]
inc dword [eax]
push 0
lea eax, [ebp - 0xa0]
mov ecx, 0x4f2acc
mov edx, dword [ebp - 8]
call fcn.00405594
mov eax, dword [ebp - 0xa0]
call fcn.00405748
push eax
mov eax, dword [ebp - 8]
call fcn.00405748
push eax
call sub.kernel32.dll_CopyFileA
jmp 0x4f22de
mov dword [ebp - 0x10], 0xfffffffe
lea edx, [ebp - 0xa8]
xor eax, eax
call fcn.004a29b8
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
mov edx, 0x4f2ae0
call fcn.0049d0c8
mov eax, dword [ebp - 0xa4]
push eax
push 0x4f2af8
lea edx, [ebp - 0xb0]
mov eax, dword [ebp - 0x10]
call fcn.0040a83c
push dword [ebp - 0xb0]
push 0x4f2b10
lea edx, [ebp - 0xb4]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.0040a83c
push dword [ebp - 0xb4]
push 0x4f2b24
call fcn.0040d300
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.004a603c
push edx
push eax
lea eax, [ebp - 0xb8]
call fcn.0040a928
push dword [ebp - 0xb8]
push 0x4f29cc
push dword [ebp - 4]
lea eax, [ebp - 0xac]
mov edx, 8
call fcn.00405608
mov eax, dword [ebp - 0xac]
mov ecx, 0x7d0
pop edx
call fcn.004c647c
cmp dword [ebp - 0x10], 0
jne 0x4f2818
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x4f28b5
lea edx, [ebp - 0xc0]
xor eax, eax
call fcn.004a29b8
mov eax, dword [ebp - 0xc0]
lea ecx, [ebp - 0xbc]
mov edx, 0x4f2ae0
call fcn.0049d0c8
mov edx, dword [ebp - 0xbc]
mov ecx, 0x7d0
mov eax, 0x4f2b34
call fcn.004c647c
push 0
lea edx, [ebp - 0xc8]
xor eax, eax
call fcn.004a29b8
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
mov edx, 0x4f2b4c
call fcn.0049d0c8
mov eax, dword [ebp - 0xc4]
call fcn.00405748
push eax
lea edx, [ebp - 0xd0]
xor eax, eax
call fcn.004a29b8
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0xcc]
mov edx, 0x4f2ae0
call fcn.0049d0c8
mov eax, dword [ebp - 0xcc]
call fcn.00405748
push eax
call sub.kernel32.dll_CopyFileA
xor eax, eax
push ebp
push 0x4f28e9
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0040d300
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.004a603c
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f28fc
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.004f2028
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2950
lea eax, [ebp - 0xd0]
mov edx, 0x23
call fcn.0040529c
lea eax, [ebp - 0x18]
call fcn.00405278
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040529c
ret