Function at 0x47e510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x148]
push ecx
call fcn.004a3a5f
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x48], 0x7fe0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov byte [ebp - 0x41], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x38], 0
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x3c], 0xffffffff
mov eax, dword [ebp - 0x48]
add eax, 0x20
push eax
call fcn.00452e85
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47e5ba
or eax, 0xffffffff
jmp 0x47e86f
mov ecx, 1
test ecx, ecx
je 0x47e860
mov eax, dword [ebp - 0x48]
cdq
mov ecx, dword [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x50]
push ecx
push edx
push eax
call fcn.004579f0
mov ecx, dword [ebp - 0x18]
sub ecx, eax
mov eax, dword [ebp - 0x14]
sbb eax, edx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jg 0x47e709
jl 0x47e600
cmp dword [ebp - 0x5c], 0
jae 0x47e709
push 0
push 0
push 0
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x148]
push edx
call fcn.004a3b45
add esp, 0x10
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x148]
push ecx
mov edx, dword [ebp - 0x48]
add edx, 0x20
push edx
push 1
mov eax, dword [ebp - 8]
push eax
call fcn.004544a3
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 0x38], 0
je 0x47e663
push 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x54]
call fcn.00480a90
mov byte [ebp - 0x41], al
jmp 0x47e686
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x54]
call fcn.00480a90
mov byte [ebp - 0x41], al
movzx eax, byte [ebp - 0x41]
test eax, eax
je 0x47e6ad
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov eax, dword [ebp - 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x40]
mov dword [ecx], edx
mov dword [ebp - 0x3c], 0
jmp 0x47e6d9
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x528]
mov dword [eax], edx
mov ecx, dword [ecx + 0x52c]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x520]
mov dword [edx], ecx
mov dword [ebp - 0x3c], 0
cmp dword [ebp + 0x14], 0
je 0x47e6ff
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x38]
mov dword [edx], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x34]
mov dword [ecx + 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x14], edx
jmp 0x47e860
push 0
mov eax, dword [ebp - 0x48]
cdq
mov ecx, dword [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x50]
push ecx
push edx
push eax
call fcn.004579f0
mov ecx, dword [ebp - 0x18]
sub ecx, eax
mov eax, dword [ebp - 0x14]
sbb eax, edx
push eax
push ecx
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x148]
push edx
call fcn.004a3b45
add esp, 0x10
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x148]
push ecx
mov edx, dword [ebp - 0x48]
add edx, 0x20
push edx
push 1
mov eax, dword [ebp - 8]
push eax
call fcn.004544a3
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 0x38], 0
je 0x47e787
push 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x54]
call fcn.00480a90
mov byte [ebp - 0x41], al
jmp 0x47e7aa
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x54]
call fcn.00480a90
mov byte [ebp - 0x41], al
movzx eax, byte [ebp - 0x41]
test eax, eax
je 0x47e831
mov eax, dword [ebp - 0x48]
cdq
push edx
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x50]
push edx
call fcn.004579f0
mov ecx, dword [ebp - 0x18]
sub ecx, eax
mov eax, dword [ebp - 0x14]
sbb eax, edx
add ecx, dword [ebp - 0x10]
adc eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov dword [edx + 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
cmp dword [ebp + 0x14], 0
je 0x47e828
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x38]
mov dword [edx], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x34]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x48]
cdq
push edx
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004579f0
mov ecx, dword [ebp - 0x18]
sub ecx, eax
mov eax, dword [ebp - 0x14]
sbb eax, edx
add ecx, dword [ebp - 0x28]
adc eax, dword [ebp - 0x24]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], eax
mov dword [ebp - 0x3c], 0
jmp 0x47e860
mov eax, dword [ebp - 0x50]
add eax, 1
mov ecx, dword [ebp - 0x4c]
adc ecx, 0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x38], 0
jne 0x47e85b
mov edx, dword [ebp - 0x20]
add edx, 1
mov eax, dword [ebp - 0x1c]
adc eax, 0
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
jmp 0x47e5ba
mov ecx, dword [ebp - 8]
push ecx
call fcn.00452f4f
add esp, 4
mov eax, dword [ebp - 0x3c]
mov esp, ebp
pop ebp
ret 0x10