Function at 0x46afb0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x46
push 0
push 0
dec ecx
jne 0x46afb9
xchg dword [ebp - 4], ecx
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a04
mov eax, dword [ebp - 8]
call fcn.00404a04
xor eax, eax
push ebp
push 0x46b2be
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x214]
mov edx, dword [ebp - 4]
mov ecx, 0xff
call fcn.004047f0
lea eax, [ebp - 0x214]
lea edx, [ebp - 0x114]
call fcn.00466ad4
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x14]
call fcn.004047b8
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 8]
call fcn.00404860
mov eax, dword [ebp + 8]
cmp byte [eax - 1], 0
je 0x46b1b8
lea edx, [ebp - 0x218]
mov eax, dword [0x46eff4]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
call fcn.00408fc0
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
call fcn.004045ec
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x46b0a4
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov eax, 0x46b2d4
call fcn.00404b58
test eax, eax
jle 0x46b0a4
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov eax, 0x46b2d4
call fcn.00404b58
mov ecx, eax
dec ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 1
call fcn.00404a74
lea edx, [ebp - 0x220]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x32c]
call fcn.0044351c
mov edx, dword [ebp - 0x220]
lea eax, [ebp - 0x214]
mov ecx, 0xff
call fcn.004047f0
lea eax, [ebp - 0x214]
lea edx, [ebp - 0x114]
call fcn.00466ad4
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x21c]
call fcn.004047b8
mov edx, dword [ebp - 0x21c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
lea eax, [ebp - 0x10]
call fcn.00404860
mov eax, dword [ebp - 0x10]
call fcn.00408d20
lea eax, [ebp - 0x214]
mov edx, dword [ebp - 0x10]
mov ecx, 0xff
call fcn.004047f0
lea eax, [ebp - 0x214]
lea edx, [ebp - 0x114]
call fcn.00466ad4
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x224]
call fcn.004047b8
lea eax, [ebp - 0x224]
push eax
lea edx, [ebp - 0x228]
mov eax, dword [ebp - 0xc]
call fcn.00408f8c
mov edx, dword [ebp - 0x228]
pop eax
call fcn.0040481c
mov eax, dword [ebp - 0x224]
call fcn.00408d20
lea eax, [ebp - 0x214]
mov edx, dword [ebp - 0x10]
mov ecx, 0xff
call fcn.004047f0
lea eax, [ebp - 0x214]
lea edx, [ebp - 0x114]
call fcn.00466ad4
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x22c]
call fcn.004047b8
mov edx, dword [ebp - 0x22c]
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
call fcn.00404860
jmp 0x46b218
lea edx, [ebp - 0x234]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x32c]
call fcn.0044351c
mov edx, dword [ebp - 0x234]
lea eax, [ebp - 0x214]
mov ecx, 0xff
call fcn.004047f0
lea eax, [ebp - 0x214]
lea edx, [ebp - 0x114]
call fcn.00466ad4
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x230]
call fcn.004047b8
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
call fcn.00404860
push dword [0x470c4c]
push dword [0x470c48]
push dword [ebp - 0xc]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004048d4
test bl, bl
jne 0x46b248
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.0046aee0
push 0
mov eax, dword [ebp - 0x10]
call fcn.00404a14
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404a14
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
inc dword [0x470c54]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b2c5
lea eax, [ebp - 0x234]
call fcn.00404554
lea eax, [ebp - 0x230]
mov edx, 4
call fcn.00404578
lea eax, [ebp - 0x220]
call fcn.00404554
lea eax, [ebp - 0x21c]
mov edx, 2
call fcn.00404578
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404578
ret