Function at 0x5b41b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6395c4
mov eax, dword fs:[0]
push eax
sub esp, 0x1dc
mov eax, dword [0x6d5db8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x178]
call fcn.00404310
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x194]
call fcn.004072b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004072b0
mov byte [ebp - 4], 2
mov dword [ebp - 0x198], 0xffffffff
push 0x683bc8
lea ecx, [ebp - 0x178]
call fcn.004e1ff0
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0x178]
call fcn.00404ae0
push eax
call fcn.005b4520
add esp, 8
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0
jl 0x5b44bb
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x30]
call fcn.0042f000
push 0x683bcc
lea ecx, [ebp - 0x30]
call fcn.004e1ff0
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x30]
call fcn.004e1ff0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x194]
call fcn.0042f000
push 0x683bcb
lea edx, [ebp - 0x194]
push edx
call fcn.004ed840
add esp, 8
movzx eax, al
test eax, eax
je 0x5b42cb
lea ecx, [ebp - 0x138]
push ecx
lea ecx, [ebp - 0x194]
call fcn.0042f000
jmp 0x5b435f
lea edx, [ebp - 0x138]
push edx
push 0x683bd0
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0x1b4]
push ecx
call fcn.004ed350
add esp, 0xc
mov dword [ebp - 0x1dc], eax
mov edx, dword [ebp - 0x1dc]
mov dword [ebp - 0x1e0], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1e0]
push eax
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.004ed350
add esp, 0xc
mov dword [ebp - 0x1e4], eax
mov edx, dword [ebp - 0x1e4]
mov dword [ebp - 0x1e8], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1e8]
push eax
lea ecx, [ebp - 0x194]
call fcn.004072e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1d0]
call fcn.00404ac0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1b4]
call fcn.00404ac0
mov ecx, dword [ebp - 0x15c]
and ecx, 0x10
jne 0x5b4444
push 0x683bd4
lea ecx, [ebp - 0x30]
call fcn.00404ae0
push eax
call fcn.005e918f
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5b4442
mov edx, dword [ebp + 0x18]
cmp edx, dword [ebp - 0x13c]
jge 0x5b43de
mov dword [ebp - 0x1d4], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00404ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x194]
call fcn.00404ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00404ac0
mov eax, dword [ebp - 0x1d4]
jmp 0x5b44f8
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x13c]
push ecx
push 1
mov edx, dword [ebp + 0x14]
push edx
call fcn.005e954a
add esp, 0x10
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.005b6fd0
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x5b4436
mov edx, dword [ebp - 0x13c]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.005b7070
add esp, 0xc
mov edx, dword [ebp - 0x34]
push edx
call fcn.005b70c0
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
call fcn.005e904f
add esp, 4
jmp 0x5b449d
push 0x683bd8
lea ecx, [ebp - 0x138]
push ecx
call fcn.005e59f0
add esp, 8
test eax, eax
je 0x5b449d
push 0x683bdc
lea edx, [ebp - 0x138]
push edx
call fcn.005e59f0
add esp, 8
test eax, eax
je 0x5b449d
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x194]
call fcn.00404ae0
push eax
lea ecx, [ebp - 0x30]
call fcn.00404ae0
push eax
call fcn.005b41b0
add esp, 0x14
lea eax, [ebp - 0x15c]
push eax
mov ecx, dword [ebp - 0x198]
push ecx
call fcn.005b4550
add esp, 8
test eax, eax
jge 0x5b4262
mov dword [ebp - 0x1d8], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00404ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x194]
call fcn.00404ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00404ac0
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005e5163
mov esp, ebp
pop ebp
ret