Function at 0x47cf34
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x31
push 0
push 0
dec ecx
jne 0x47cf3d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 6], cl
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404414
lea eax, [ebp - 0x178]
mov edx, dword [0x407278]
call fcn.004048d0
xor eax, eax
push ebp
push 0x47d238
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x17c]
mov eax, dword [ebp - 4]
call fcn.0047f24c
mov edx, dword [ebp - 0x17c]
lea eax, [ebp - 4]
call fcn.00403ffc
lea eax, [ebp - 0x180]
mov ecx, 0x47d250
mov edx, dword [ebp - 4]
call fcn.00404270
mov eax, dword [ebp - 0x180]
lea ecx, [ebp - 0x178]
mov edx, 0x3f
call fcn.00408990
xor edx, edx
push ebp
push 0x47d1e5
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x16c]
mov edx, 0x47d25c
call fcn.00404370
je 0x47d1b9
mov eax, dword [ebp - 0x16c]
mov edx, 0x47d268
call fcn.00404370
je 0x47d1b9
test byte [ebp - 0x170], 0x10
je 0x47d062
lea edx, [ebp - 0x184]
mov eax, dword [ebp - 4]
call fcn.0047f24c
mov edx, dword [ebp - 0x184]
lea eax, [ebp - 4]
call fcn.00403ffc
cmp byte [ebp + 8], 1
jne 0x47d1b9
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0x16c]
mov edx, dword [ebp - 4]
call fcn.00404270
mov al, byte [ebp + 8]
push eax
lea edx, [ebp - 0x188]
mov eax, dword [ebp - 0xc]
call fcn.0047f24c
mov eax, dword [ebp - 0x188]
mov cl, byte [ebp - 6]
mov dl, byte [ebp - 5]
call fcn.0047cf34
jmp 0x47d1b9
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0x16c]
mov edx, dword [ebp - 4]
call fcn.00404270
lea edx, [ebp - 0x18c]
mov eax, dword [ebp - 0xc]
call fcn.00408b24
mov eax, dword [ebp - 0x18c]
lea edx, [ebp - 0x10]
call fcn.00407f4c
mov eax, dword [ebp - 0x10]
mov edx, 0x47d274
call fcn.00404370
jne 0x47d1b9
mov byte [ebp - 0x19], 1
lea eax, [ebp - 0x20]
call fcn.00403f64
xor eax, eax
push ebp
push 0x47d143
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00403ffc
mov eax, dword [ebp - 0xc]
call fcn.00404224
mov edx, eax
sub dl, 4
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00479330
cmp byte [ebp - 5], 1
jne 0x47d139
mov eax, dword [ebp - 0x14]
call fcn.004088d0
cmp al, 1
jne 0x47d139
mov edx, 0x20
mov eax, dword [ebp - 0x14]
call fcn.00408904
mov eax, dword [ebp - 0x18]
call fcn.004088d0
cmp al, 1
jne 0x47d117
mov edx, 0x20
mov eax, dword [ebp - 0x18]
call fcn.00408904
push 0
mov eax, dword [ebp - 0x18]
call fcn.00404424
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404424
push eax
call fcn.00406234
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x19], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47d166
lea edx, [ebp - 0x190]
mov eax, dword [ebp - 0x14]
call fcn.00408ab8
mov edx, dword [ebp - 0x190]
mov eax, dword [0x482428]
mov eax, dword [eax]
mov eax, dword [eax + 0x310]
call fcn.00457ec8
mov eax, dword [0x482428]
mov eax, dword [eax]
mov eax, dword [eax + 0x2fc]
mov edx, dword [eax + 0x170]
inc edx
mov ecx, dword [0x482428]
call fcn.0047aaac
mov ecx, dword [ebp - 0x20]
mov dl, byte [ebp - 0x19]
mov eax, dword [ebp - 0x14]
call fcn.0047e7c0
lea eax, [ebp - 0x178]
call fcn.004089e0
test eax, eax
je 0x47cfce
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d1ec
lea eax, [ebp - 0x178]
call fcn.00408a04
ret