Function at 0x47c860
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x35
push 0
push 0
dec ecx
jne 0x47c869
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404b74
mov eax, dword [ebp - 0xc]
call fcn.00404b74
lea eax, [ebp - 0x164]
mov edx, dword [0x407a70]
call fcn.0040507c
xor eax, eax
push ebp
push 0x47cbec
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x168]
mov eax, dword [ebp - 8]
call fcn.0040d574
mov edx, dword [ebp - 0x168]
lea eax, [ebp - 8]
call fcn.00404740
lea edx, [ebp - 0x16c]
mov eax, dword [ebp - 0xc]
call fcn.0040d574
mov edx, dword [ebp - 0x16c]
lea eax, [ebp - 0xc]
call fcn.00404740
lea edx, [ebp - 0x170]
mov eax, dword [ebp - 8]
call fcn.0040d574
lea eax, [ebp - 0x170]
mov edx, 0x47cc04
call fcn.0040498c
mov eax, dword [ebp - 0x170]
lea ecx, [ebp - 0x164]
mov edx, 0x3f
call fcn.0040916c
test eax, eax
jne 0x47cba5
mov eax, dword [ebp - 0xc]
call fcn.00408f3c
mov eax, dword [ebp - 0x158]
mov edx, 0x47cc10
call fcn.00404ad0
je 0x47cadb
mov eax, dword [ebp - 0x158]
mov edx, 0x47cc1c
call fcn.00404ad0
je 0x47cadb
test byte [ebp - 0x15c], 0x10
jne 0x47cadb
lea eax, [ebp - 0x174]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 0xc]
call fcn.004049d0
mov eax, dword [ebp - 0x174]
push eax
lea eax, [ebp - 0x178]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 8]
call fcn.004049d0
mov edx, dword [ebp - 0x178]
mov eax, dword [ebp - 4]
pop ecx
call fcn.0047c5f0
test al, al
jne 0x47ca69
lea eax, [ebp - 0x17c]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 0xc]
call fcn.004049d0
mov ecx, dword [ebp - 0x17c]
mov edx, 0x47cc28
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0042c2c0
lea ecx, [ebp - 0x184]
mov edx, 0x47cc44
mov eax, dword [ebp - 0x158]
call fcn.004092b8
mov ecx, dword [ebp - 0x184]
lea eax, [ebp - 0x180]
mov edx, dword [ebp - 0xc]
call fcn.004049d0
mov eax, dword [ebp - 0x180]
push eax
lea eax, [ebp - 0x188]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 0xc]
call fcn.004049d0
mov eax, dword [ebp - 0x188]
pop edx
call fcn.00409214
push 0
lea eax, [ebp - 0x18c]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 0xc]
call fcn.004049d0
mov eax, dword [ebp - 0x18c]
call fcn.00404b84
push eax
lea eax, [ebp - 0x190]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 8]
call fcn.004049d0
mov eax, dword [ebp - 0x190]
call fcn.00404b84
push eax
call sub.kernel32.dll_CopyFileA
cmp word [ebp + 0xa], 0
setne al
cmp al, 1
jne 0x47ca95
lea eax, [ebp - 0x194]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 8]
call fcn.004049d0
mov edx, dword [ebp - 0x194]
mov eax, dword [ebp + 0xc]
call dword [ebp + 8]
lea eax, [ebp - 0x19c]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 0xc]
call fcn.004049d0
mov eax, dword [ebp - 0x19c]
call fcn.00404b84
mov edx, eax
lea eax, [ebp - 0x198]
call fcn.004048a0
mov eax, dword [ebp - 0x198]
mov edx, 0x20
call fcn.004090e0
call fcn.004029b8
jmp 0x47cb92
mov eax, dword [ebp - 0x158]
mov edx, 0x47cc10
call fcn.00404ad0
je 0x47cb92
mov eax, dword [ebp - 0x158]
mov edx, 0x47cc1c
call fcn.00404ad0
je 0x47cb92
mov eax, dword [ebp - 0x15c]
and eax, 0x10
cmp eax, 0x10
jne 0x47cb92
push 0
push 0
lea edx, [ebp - 0x1a4]
mov eax, dword [ebp - 0xc]
call fcn.0040d574
push dword [ebp - 0x1a4]
push dword [ebp - 0x158]
push 0x47cc54
lea eax, [ebp - 0x1a0]
mov edx, 3
call fcn.00404a44
mov eax, dword [ebp - 0x1a0]
push eax
lea edx, [ebp - 0x1ac]
mov eax, dword [ebp - 8]
call fcn.0040d574
push dword [ebp - 0x1ac]
push dword [ebp - 0x158]
push 0x47cc54
lea eax, [ebp - 0x1a8]
mov edx, 3
call fcn.00404a44
mov edx, dword [ebp - 0x1a8]
mov eax, dword [ebp - 4]
pop ecx
call fcn.0047c860
call fcn.004029b8
lea eax, [ebp - 0x164]
call fcn.004091bc
test eax, eax
je 0x47c920
lea eax, [ebp - 0x164]
call fcn.004091e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47cbf3
lea eax, [ebp - 0x1ac]
mov edx, 0x12
call fcn.004046cc
lea eax, [ebp - 0x164]
mov edx, dword [0x407a70]
call fcn.0040514c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004046cc
ret