Function at 0x47a470
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x47a479
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00403f20
mov eax, dword [ebp - 8]
call fcn.00403f20
mov eax, dword [ebp + 0x20]
call fcn.00403f20
mov eax, dword [ebp + 0x1c]
call fcn.00403f20
mov eax, dword [ebp + 0x18]
call fcn.00403f20
xor eax, eax
push ebp
push 0x47a83a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 9], 0
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00479514
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 0x1c]
call fcn.00403db8
mov edx, 0x40
mov eax, dword [ebp - 0x20]
call fcn.00408af4
mov edi, eax
push 0
push edi
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
mov eax, edi
call fcn.00408bbc
lea ecx, [ebp - 0x34]
mov dl, 0x22
mov eax, dword [ebp + 0x1c]
call fcn.00408678
mov edx, dword [ebp - 0x34]
lea eax, [ebp + 0x1c]
call fcn.00403b84
lea ecx, [ebp - 0x38]
mov dl, 0x22
mov eax, dword [ebp + 0x18]
call fcn.00408678
mov edx, dword [ebp - 0x38]
lea eax, [ebp + 0x18]
call fcn.00403b84
cmp dword [ebp - 4], 0
jne 0x47a552
lea eax, [ebp - 4]
mov edx, 0x47a858
call fcn.00403b84
jmp 0x47a56a
lea ecx, [ebp - 0x3c]
mov dl, 0x2f
mov eax, dword [ebp - 4]
call fcn.00470acc
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 4]
call fcn.00403b84
cmp dword [ebp - 8], 0
jne 0x47a57f
lea eax, [ebp - 8]
mov edx, 0x47a864
call fcn.00403b84
jmp 0x47a595
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 8]
call fcn.0040c918
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 8]
call fcn.00403b84
cmp byte [ebp + 0x14], 0
je 0x47a5a8
lea eax, [ebp - 0x1c]
mov edx, 0x47a878
call fcn.00403b84
cmp byte [ebp + 0x10], 0
je 0x47a5bb
lea eax, [ebp - 0x1c]
mov edx, 0x47a888
call fcn.00470500
cmp byte [ebp + 0xc], 0
je 0x47a5ce
lea eax, [ebp - 0x1c]
mov edx, 0x47a898
call fcn.00470500
cmp byte [ebp + 8], 0
je 0x47a5e1
lea eax, [ebp - 0x1c]
mov edx, 0x47a8ac
call fcn.00470500
cmp ebx, 0xffffffff
je 0x47a60f
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x48]
call fcn.004089fc
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
mov edx, 0x47a8c0
call fcn.00403db8
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x1c]
call fcn.00470500
mov eax, dword [esi + 4]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x47a7f8
mov byte [ebp - 9], 1
mov eax, dword [esi + 8]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x47a72b
inc eax
mov dword [ebp - 0x24], eax
xor edi, edi
mov edx, edi
mov eax, dword [esi + 8]
call fcn.00421a60
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x47a721
inc eax
mov dword [ebp - 0x28], eax
xor ebx, ebx
mov edx, edi
mov eax, dword [esi + 8]
call fcn.00421a60
mov eax, dword [eax + 0xc]
mov edx, ebx
call fcn.00421a60
mov eax, dword [eax + 4]
mov edx, dword [ebp - 4]
call fcn.004085ac
test al, al
je 0x47a717
mov edx, edi
mov eax, dword [esi + 8]
call fcn.00421a60
mov eax, dword [eax + 0xc]
mov edx, ebx
call fcn.00421a60
mov dword [ebp - 0x10], eax
mov edx, edi
mov eax, dword [esi + 8]
call fcn.00421a60
mov eax, dword [eax + 0xc]
mov edx, ebx
call fcn.00421a60
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x47a717
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov edx, edi
mov eax, dword [esi + 8]
call fcn.00421a60
mov eax, dword [eax + 0xc]
mov edx, ebx
call fcn.00421a60
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00421a60
mov eax, dword [eax + 8]
mov edx, dword [ebp - 8]
call fcn.004085ac
test al, al
je 0x47a70f
mov edx, edi
mov eax, dword [esi + 8]
call fcn.00421a60
mov eax, dword [eax + 0xc]
mov edx, ebx
call fcn.00421a60
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00421a60
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x18]
dec dword [ebp - 0x2c]
jne 0x47a6bf
inc ebx
dec dword [ebp - 0x28]
jne 0x47a657
inc edi
dec dword [ebp - 0x24]
jne 0x47a638
cmp dword [ebp - 0x10], 0
jne 0x47a768
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 4]
mov edx, 0x47a8d0
call fcn.00403db8
mov ecx, dword [ebp - 0x4c]
mov dl, 1
mov eax, dword [0x47843c]
call fcn.00479058
mov dword [ebp - 0x10], eax
xor edx, edx
mov eax, dword [esi + 8]
call fcn.00421a60
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
call fcn.004219d8
cmp dword [ebp - 0x14], 0
jne 0x47a79e
lea eax, [ebp - 0x50]
mov ecx, dword [ebp - 8]
mov edx, 0x47a8e0
call fcn.00403db8
mov ecx, dword [ebp - 0x50]
mov dl, 1
mov eax, dword [0x4782e8]
call fcn.00478a9c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x14]
call fcn.004219d8
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0047a250
push 0x47a8f0
push dword [ebp + 0x20]
push 0x47a900
push dword [ebp + 0x1c]
push 0x47a900
push dword [ebp + 0x18]
push 0x47a900
push dword [ebp - 0x1c]
lea eax, [ebp - 0x54]
mov edx, 8
call fcn.00403e2c
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x47825c]
call fcn.00478574
mov edx, eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
call fcn.004219d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a841
lea eax, [ebp - 0x54]
mov edx, 0xa
call fcn.00403b10
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00403b10
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403b10
lea eax, [ebp + 0x18]
mov edx, 3
call fcn.00403b10
ret