Function at 0x4baf70
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4baf78
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4bb2be
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00405a28
lea eax, [ebp - 0x10]
call fcn.004c3d98
push dword [ebp - 0x10]
mov eax, dword [0x4d8e40]
push dword [eax]
push 0x4bb2d0
push 0x4bb2d8
mov eax, 0x4d8888
mov edx, 4
call fcn.00405cfc
mov eax, 0x4bb304
call fcn.004c28a8
lea eax, [ebp - 8]
call fcn.004c3410
lea ecx, [ebp - 0x14]
mov eax, dword [0x4d8b54]
mov eax, dword [eax]
mov edx, 0x4bb32c
call fcn.004731f0
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4d8d30]
mov eax, dword [eax]
mov eax, dword [eax + 0x378]
call fcn.00493fd0
mov eax, dword [0x4d8d30]
mov eax, dword [eax]
mov eax, dword [eax + 0x378]
mov dl, 1
call fcn.0044e328
mov eax, dword [0x4d8d30]
mov eax, dword [eax]
mov eax, dword [eax + 0x378]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [0x4d8d30]
mov eax, dword [eax]
mov edx, 0xa
call fcn.0049c404
mov edx, dword [0x4d8d30]
mov edx, dword [edx]
mov edx, dword [edx + 0x380]
mov edx, dword [edx + 0x40]
mov ecx, dword [0x4d8d30]
mov ecx, dword [ecx]
mov ebx, dword [ecx + 0x384]
sub edx, dword [ebx + 0x40]
sub edx, eax
mov eax, dword [0x4d8d30]
mov eax, ebx
call fcn.0044daf8
mov eax, dword [0x4d8d30]
mov eax, dword [eax]
mov eax, dword [eax + 0x384]
mov edx, dword [eax + 0x48]
mov eax, dword [0x4d8d30]
mov eax, dword [eax]
mov eax, dword [eax + 0x4b0]
call fcn.0044daf8
lea ecx, [ebp - 0x18]
mov eax, dword [0x4d8b54]
mov eax, dword [eax]
mov edx, 0x4bb348
call fcn.004731f0
mov edx, dword [ebp - 0x18]
mov eax, dword [0x4d8d30]
mov eax, dword [eax]
mov eax, dword [eax + 0x4b0]
call fcn.00493dc8
xor eax, eax
push ebp
push 0x4bb0eb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
mov cl, 3
mov edx, dword [ebp - 8]
mov eax, 0x4bb374
call fcn.004bd080
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 4]
call fcn.00405434
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bb11b
mov eax, dword [0x4d8d30]
mov eax, dword [eax]
mov eax, dword [eax + 0x378]
xor edx, edx
call fcn.0044e328
mov eax, dword [0x4d8d30]
mov eax, dword [eax]
mov edx, 0xa
call fcn.0049c404
mov edx, dword [0x4d8d30]
mov edx, dword [edx]
mov ebx, dword [edx + 0x36c]
mov edx, dword [ebx + 0x40]
sub edx, eax
push edx
mov eax, dword [0x4d8d30]
mov eax, dword [eax]
call fcn.0044dd7c
mov ecx, eax
sub ecx, 0xf
mov eax, dword [0x4d8d30]
movzx eax, byte [ebx + 0x57]
pop edx
call fcn.00425d98
mov edx, eax
mov eax, dword [0x4d8d30]
mov eax, dword [eax]
mov eax, dword [eax + 0x384]
sub edx, dword [eax + 0x40]
mov eax, dword [0x4d8d30]
mov eax, dword [eax]
mov eax, dword [eax + 0x384]
call fcn.0044daf8
mov eax, dword [0x4d8d30]
mov eax, dword [eax]
mov eax, dword [eax + 0x384]
mov edx, dword [eax + 0x48]
mov eax, dword [0x4d8d30]
mov eax, dword [eax]
mov eax, dword [eax + 0x4b0]
call fcn.0044daf8
lea eax, [ebp - 8]
mov edx, 0x4bb2d8
call fcn.00405c2c
cmp dword [ebp - 4], 0
jbe 0x4bb23b
mov eax, dword [ebp - 8]
call fcn.004767a8
test al, al
je 0x4bb23b
push 0x4bb40c
push dword [ebp - 8]
push 0x4bb434
push dword [0x4d8888]
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00405cfc
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
call fcn.00405434
mov eax, dword [ebp - 0x24]
call fcn.004c28a8
push 0
mov eax, dword [0x4d8888]
call fcn.00405c10
push eax
mov eax, dword [ebp - 8]
call fcn.00405c10
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
je 0x4bb279
mov eax, dword [ebp - 0xc]
mov edx, dword [0x4d8888]
call fcn.00405a64
jmp 0x4bb279
push 1
push 1
lea ecx, [ebp - 0x2c]
mov eax, dword [0x4d8b54]
mov eax, dword [eax]
mov edx, 0x4bb444
call fcn.004731f0
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x30]
mov eax, dword [0x4d8b54]
mov eax, dword [eax]
mov edx, 0x4bb474
call fcn.004731f0
mov eax, dword [ebp - 0x30]
mov ecx, 0x7d2
pop edx
call fcn.004c0100
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb2c5
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00405a40
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004051d0
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00405a40
lea eax, [ebp - 8]
call fcn.00405a28
lea eax, [ebp - 4]
call fcn.004051ac
ret