Function at 0x475ba0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 8], 0
je 0x475bc4
mov edx, dword [ebp - 8]
movsx eax, byte [edx + 0x5c]
cmp eax, 0x72
je 0x475bce
mov eax, 0xfffffffe
jmp 0x475eaf
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x38], 0xfffffffd
je 0x475be0
mov edx, dword [ebp - 8]
cmp dword [edx + 0x38], 0xffffffff
jne 0x475be8
or eax, 0xffffffff
jmp 0x475eaf
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 1
jne 0x475bf8
xor eax, eax
jmp 0x475eaf
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
je 0x475e83
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x58], 0
je 0x475d18
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ecx + 0x10]
jbe 0x475c47
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jbe 0x475ca3
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
push eax
call fcn.00448f70
add esp, 0xc
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov dword [eax], edx
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
sub edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
sub edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x10], 0
jbe 0x475cd6
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x40]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
push edx
push 1
mov eax, dword [ebp - 4]
push eax
call fcn.0044df1b
add esp, 0x10
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
sub edx, eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
sub edx, dword [ecx + 0x10]
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
add ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
add ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], ecx
cmp dword [ebp + 0x10], 0
jne 0x475d10
mov eax, dword [ebp - 8]
mov dword [eax + 0x3c], 1
mov eax, dword [ebp + 0x10]
jmp 0x475eaf
mov ecx, dword [ebp - 8]
cmp dword [ecx + 4], 0
jne 0x475d98
mov edx, dword [ebp - 8]
cmp dword [edx + 0x3c], 0
jne 0x475d98
call fcn.0044dc00
mov dword [eax], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x40]
push ecx
push 0x4000
push 1
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x44]
push eax
call fcn.0044df1b
add esp, 0x10
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 4], 0
jne 0x475d8d
mov eax, dword [ebp - 8]
mov dword [eax + 0x3c], 1
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x40]
push edx
call fcn.0044f65a
add esp, 4
test eax, eax
je 0x475d8d
mov eax, dword [ebp - 8]
mov dword [eax + 0x38], 0xffffffff
jmp 0x475e83
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x44]
mov dword [ecx], eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00472cc0
add esp, 8
mov edx, dword [ebp - 8]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 1
jne 0x475e6a
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
sub edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
call fcn.004762a0
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x4c], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00475570
add esp, 4
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x4c]
je 0x475e05
mov eax, dword [ebp - 8]
mov dword [eax + 0x38], 0xfffffffd
jmp 0x475e6a
mov ecx, dword [ebp - 8]
push ecx
call fcn.00475570
add esp, 4
mov edx, dword [ebp - 8]
push edx
call fcn.00475920
add esp, 4
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
jne 0x475e6a
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00472c50
add esp, 4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x14], eax
push 0
push 0
push 0
call fcn.004762a0
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x4c], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x38], 0
jne 0x475e7c
mov eax, dword [ebp - 8]
cmp dword [eax + 0x3c], 0
je 0x475e7e
jmp 0x475e83
jmp 0x475c10
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
sub edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
call fcn.004762a0
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x4c], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
sub eax, dword [edx + 0x10]
mov esp, ebp
pop ebp
ret