Function at 0x46ef84
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x46ef8c
push ebx
push esi
push edi
mov eax, 0x46ed0c
call fcn.00406b0c
xor eax, eax
push ebp
push 0x46f2ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4727ec]
mov eax, dword [eax]
call fcn.004504ec
mov dl, 1
mov eax, dword [0x46557c]
call fcn.0045687c
mov dword [0x473d3c], eax
xor edx, edx
push ebp
push 0x46f282
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.00402e14
cmp eax, 2
jge 0x46f019
call fcn.00402e14
lea edx, [ebp - 0x18]
call fcn.00408cfc
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x46f304
call fcn.00404880
mov eax, dword [ebp - 0x14]
mov edx, 0x473d60
xor ecx, ecx
call fcn.0046e700
call fcn.00404014
jmp 0x46f295
push 0
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, 1
call fcn.00402e7c
mov edx, dword [ebp - 0x20]
mov eax, dword [0x473d3c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.00464fdc
mov eax, dword [ebp - 0x1c]
mov edx, 0x473d40
call fcn.004067ec
push 0
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x28]
mov eax, 2
call fcn.00402e7c
mov edx, dword [ebp - 0x28]
mov eax, dword [0x473d3c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.00464fdc
mov eax, dword [ebp - 0x24]
mov edx, 0x473d44
call fcn.004067ec
push 0x46f328
push dword [0x473d40]
push 0x46f338
push dword [0x473d44]
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.004048f4
mov eax, dword [ebp - 0x2c]
mov edx, 0x473d60
xor ecx, ecx
call fcn.0046e700
lea eax, [ebp - 0x34]
mov edx, dword [0x473d40]
call fcn.00404dd0
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00466544
mov edx, dword [ebp - 0x30]
mov eax, 0x473d50
call fcn.00406340
mov eax, dword [0x473d50]
mov edx, dword [eax]
call dword [edx + 0x90]
mov eax, dword [eax + 8]
mov esi, eax
dec esi
test esi, esi
jl 0x46f26a
inc esi
mov dword [0x473d58], 0
mov eax, dword [0x473d50]
mov edx, dword [eax]
call dword [edx + 0x90]
lea ecx, [ebp - 0x38]
mov edx, dword [0x473d58]
call fcn.0046d518
mov edx, dword [ebp - 0x38]
mov eax, 0x473d54
call fcn.00406340
lea ecx, [ebp - 0x3c]
mov edx, 0x46f348
mov eax, dword [0x473d54]
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov edx, dword [ebp - 0x3c]
mov eax, 0x473d5c
call fcn.004047fc
lea edx, [ebp - 0x44]
mov eax, dword [0x473668]
call fcn.0040e1f0
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.004092b4
mov edx, dword [ebp - 0x40]
mov eax, 0x473d48
mov ecx, dword [0x473d5c]
call fcn.00404880
mov eax, dword [0x473d48]
call fcn.00409204
test al, al
je 0x46f25d
lea edx, [ebp - 0x4c]
mov eax, dword [0x473668]
call fcn.0040e1f0
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.004092b4
push dword [ebp - 0x48]
lea eax, [ebp - 0x50]
call fcn.0046e90c
push dword [ebp - 0x50]
push 0x46f360
push dword [0x473d5c]
mov eax, 0x473d4c
mov edx, 4
call fcn.004048f4
push 0
mov eax, dword [0x473d4c]
call fcn.00404a34
push eax
mov eax, dword [0x473d48]
call fcn.00404a34
push eax
call sub.kernel32.dll_CopyFileA
mov dl, 1
mov eax, dword [0x46ea00]
call fcn.004037b0
mov ebx, eax
lea eax, [ebx + 4]
mov edx, dword [0x473d4c]
call fcn.004045c8
lea eax, [ebp - 0x54]
push eax
mov cl, 1
xor edx, edx
mov eax, dword [0x473d54]
mov edi, dword [eax]
call dword [edi + 0x9c]
mov edx, dword [ebp - 0x54]
lea eax, [ebx + 8]
call fcn.004047fc
lea eax, [ebx + 0xc]
mov edx, dword [0x473d44]
call fcn.004045c8
mov edx, 0x473d60
mov eax, ebx
call fcn.0046ea7c
test eax, eax
jge 0x46f25d
lea eax, [ebp - 0x58]
mov ecx, dword [0x473d60]
mov edx, 0x46f36c
call fcn.00404880
mov eax, dword [ebp - 0x58]
mov edx, 0x473d60
xor ecx, ecx
call fcn.0046e700
call fcn.00404014
jmp 0x46f295
inc dword [0x473d58]
dec esi
jne 0x46f0f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f289
mov eax, 0x473d3c
call fcn.0040e800
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f2f4
lea eax, [ebp - 0x58]
call fcn.00404574
lea eax, [ebp - 0x54]
call fcn.00404c54
lea eax, [ebp - 0x50]
mov edx, 5
call fcn.00404598
lea eax, [ebp - 0x3c]
call fcn.00404c54
lea eax, [ebp - 0x38]
call fcn.00406328
lea eax, [ebp - 0x34]
call fcn.00404c54
lea eax, [ebp - 0x30]
call fcn.00406328
lea eax, [ebp - 0x2c]
mov edx, 7
call fcn.00404598
ret