Function at 0x47d7c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
mov eax, 2
mov word [ebp - 0x20], ax
push 0x5ead80
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.005cd6b5
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x47d807
xor eax, eax
jmp 0x47da7b
mov eax, dword [ebp - 0x1c]
push eax
call fcn.005cef1a
add esp, 4
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.005cebc3
add esp, 8
test eax, eax
jge 0x47d83d
mov eax, dword [ebp - 0x1c]
push eax
call fcn.005cd459
add esp, 4
xor eax, eax
jmp 0x47da7b
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005cd459
add esp, 4
mov dword [ebp - 0x10], 0
push 0x5ead84
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.005cd6b5
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x47d8aa
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005cef1a
add esp, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005cebc3
add esp, 8
test eax, eax
jge 0x47d898
jmp 0x47d89e
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.005cd459
add esp, 4
mov dword [ebp - 0x24], 0
push 0x5ead88
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
push edx
call fcn.005cd6b5
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x47d905
mov eax, dword [ebp - 0x1c]
push eax
call fcn.005cef1a
add esp, 4
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.005cebc3
add esp, 8
test eax, eax
jge 0x47d8f3
jmp 0x47d8f9
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005cd459
add esp, 4
push 0x5ead8c
mov edx, dword [ebp + 8]
push edx
call fcn.005cd6b5
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x47d926
xor eax, eax
jmp 0x47da7b
mov eax, dword [ebp - 0x1c]
push eax
push 1
push 2
lea ecx, [ebp - 0x28]
push ecx
call fcn.005cdfc1
add esp, 0x10
cmp eax, 1
je 0x47d952
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005cd459
add esp, 4
xor eax, eax
jmp 0x47da7b
movzx eax, word [ebp - 0x20]
movzx ecx, word [ebp - 0x28]
cmp eax, ecx
je 0x47d971
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005cd459
add esp, 4
xor eax, eax
jmp 0x47da7b
mov eax, dword [ebp - 0x1c]
push eax
push 1
push 4
lea ecx, [ebp - 0x14]
push ecx
call fcn.005cdfc1
add esp, 0x10
cmp eax, 1
je 0x47d99d
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005cd459
add esp, 4
xor eax, eax
jmp 0x47da7b
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
je 0x47d9b8
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005cd459
add esp, 4
xor eax, eax
jmp 0x47da7b
mov edx, dword [ebp - 0x1c]
push edx
push 1
push 4
lea eax, [ebp - 4]
push eax
call fcn.005cdfc1
add esp, 0x10
cmp eax, 1
je 0x47d9e4
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005cd459
add esp, 4
xor eax, eax
jmp 0x47da7b
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 4]
je 0x47d9fc
mov eax, dword [ebp - 0x1c]
push eax
call fcn.005cd459
add esp, 4
xor eax, eax
jmp 0x47da7b
mov ecx, dword [ebp - 0x1c]
push ecx
push 1
push 4
lea edx, [ebp - 8]
push edx
call fcn.005cdfc1
add esp, 0x10
cmp eax, 1
je 0x47da25
mov eax, dword [ebp - 0x1c]
push eax
call fcn.005cd459
add esp, 4
xor eax, eax
jmp 0x47da7b
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 8]
je 0x47da3d
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005cd459
add esp, 4
xor eax, eax
jmp 0x47da7b
mov eax, dword [ebp - 0x1c]
push eax
push 1
push 0x10000
push 0x7d3768
call fcn.005cdfc1
add esp, 0x10
cmp eax, 1
je 0x47da6a
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005cd459
add esp, 4
xor eax, eax
jmp 0x47da7b
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005cd459
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret