Function at 0x47e880
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x148]
push ecx
call fcn.004a3a5f
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x5c], 0x7fe0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov byte [ebp - 0x55], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x54], 0xffffffff
mov edx, dword [ebp - 0x5c]
add edx, 0x20
push edx
call fcn.00452e85
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47e90b
or eax, 0xffffffff
jmp 0x47eb54
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov ecx, 1
test ecx, ecx
je 0x47eb45
push 0
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
adc eax, dword [ebp - 0x1c]
push eax
push edx
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx + 0x148]
push edx
call fcn.004a3b45
add esp, 0x10
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x148]
push ecx
mov edx, dword [ebp - 0x5c]
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 + 0x10], 0
je 0x47ea1c
push 0
push 0
push 0
lea ecx, [ebp - 0x48]
push ecx
push 0
push 2
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 4]
cdq
push edx
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0xc]
push eax
call fcn.00493a90
add esp, 0x30
mov byte [ebp - 0x55], al
movzx ecx, byte [ebp - 0x55]
test ecx, ecx
je 0x47ea1a
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x4c]
mov dword [edx + 4], eax
movzx ecx, byte [ebp - 0x40]
mov edx, dword [ebp + 0x10]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
adc ecx, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
adc ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x54], 0
jmp 0x47eb45
jmp 0x47ea84
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp - 4]
cdq
push edx
push eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx + 0xc]
push edx
call fcn.00493a90
add esp, 0x30
mov byte [ebp - 0x55], al
movzx eax, byte [ebp - 0x55]
test eax, eax
je 0x47ea84
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x50]
mov dword [ecx], edx
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
adc ecx, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
adc ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov dword [ebp - 0x54], 0
jmp 0x47eb45
movzx eax, byte [ebp - 0x55]
test eax, eax
jne 0x47eb04
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x50]
cmp edx, dword [ecx + 0x588]
je 0x47eaab
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x588]
sub ecx, 1
cmp dword [ebp - 0x50], ecx
jne 0x47eab2
mov dword [ebp - 0x54], 0xfffffffc
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x5c]
jge 0x47eb04
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x148]
push ecx
call fcn.004a3a5f
add esp, 4
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
mov ecx, dword [ebp - 0x6c]
call fcn.004856b0
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], edx
mov edx, dword [ebp - 0x64]
cmp edx, dword [ebp - 0x70]
jl 0x47eafb
jg 0x47eaf2
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x74]
jb 0x47eafb
mov dword [ebp - 0x54], 0xfffffffd
jmp 0x47eb02
mov dword [ebp - 0x54], 0xfffffffe
jmp 0x47eb45
cmp dword [ebp - 0xc], 0
jl 0x47eb2e
jg 0x47eb12
cmp dword [ebp - 0x10], 0
jbe 0x47eb2e
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
adc edx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
adc eax, edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
jmp 0x47eb40
mov eax, dword [ebp - 0x5c]
cdq
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
adc ecx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
jmp 0x47e937
mov edx, dword [ebp - 8]
push edx
call fcn.00452f4f
add esp, 4
mov eax, dword [ebp - 0x54]
mov esp, ebp
pop ebp
ret 0xc