Function at 0x5b52b0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x698c9c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
mov ebp, dword [sym.imp.kernel32.dll_ReadFile]
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x5c]
mov esi, ecx
lea eax, [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x4c]
push 2
push ecx
push edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x58], ebx
call ebp
lea edx, [esp + 0x14]
push ebx
push edx
lea eax, [esp + 0x24]
push 4
push eax
push edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call ebp
lea ecx, [esp + 0x14]
push ebx
push ecx
lea edx, [esp + 0x28]
push 4
push edx
push edi
call ebp
fld dword [esp + 0x1c]
fcomp dword [esi + 0x5c]
fnstsw ax
test ah, 0x40
je 0x5b565e
fld dword [esp + 0x20]
fcomp dword [esi + 0x60]
fnstsw ax
test ah, 0x40
je 0x5b565e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x14]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], ecx
push ebx
add esi, 0x68
push edx
push 4
push esi
push edi
call ebp
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x30]
push eax
call fcn.006713a0
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
add esp, 4
cmp eax, ebx
mov dword [ecx + 0x30], ebx
jle 0x5b53cc
lea ebx, [eax + eax*2]
lea ecx, [ebx + ebx*2]
shl ecx, 2
push ecx
call fcn.00673b05
add esp, 4
mov dword [esp + 0x5c], eax
test eax, eax
mov dword [esp + 0x54], 0
je 0x5b53a1
dec ebx
mov dword [esp + 0x48], ebx
jmp 0x5b53a3
xor eax, eax
mov edx, dword [esp + 0x10]
mov esi, dword [esi]
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x14]
mov dword [edx + 0x30], eax
lea edx, [esi + esi*8]
push 0
push ecx
shl edx, 2
push edx
push eax
push edi
call ebp
mov ecx, dword [esp + 0x10]
xor ebx, ebx
fld dword [0x6a37dc]
fcomp dword [ecx + 0x60]
mov dword [esp + 0x2c], 0
fnstsw ax
test ah, 1
je 0x5b565a
lea eax, [ecx + 0x70]
mov dword [esp + 0x28], eax
fld dword [0x6a37dc]
fcomp dword [ecx + 0x5c]
mov dword [esp + 0x40], 0
fnstsw ax
test ah, 1
je 0x5b5635
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x5c], ecx
lea edx, [esp + 0x14]
push ebx
push edx
lea eax, [esp + 0x20]
push 4
push eax
push edi
mov dword [esp + 0x2c], ebx
call ebp
cmp dword [esp + 0x18], ebx
je 0x5b5604
mov ecx, dword [esp + 0x5c]
mov esi, dword [ecx]
cmp esi, ebx
je 0x5b54f1
lea edx, [esp + 0x48]
push ebx
push edx
lea eax, [esp + 0x38]
push 2
push eax
push edi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x44], ebx
call ebp
cmp word [esp + 0x30], bx
jl 0x5b55f8
add esi, 0x14
mov dword [esp + 0x3c], 4
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x38], 4
lea ecx, [esp + 0x34]
push ebx
push ecx
push 4
push esi
push edi
mov dword [esp + 0x48], ebx
call ebp
cmp dword [esi], ebx
jle 0x5b54c8
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x5b54a1
push eax
call fcn.006713a0
add esp, 4
mov eax, dword [esi]
lea edx, [eax + eax*2]
shl edx, 2
push edx
call fcn.00673b05
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esi + 4], eax
push ebx
push ecx
mov ecx, dword [esi]
lea edx, [ecx + ecx*2]
shl edx, 2
push edx
push eax
push edi
call ebp
mov eax, dword [esp + 0x38]
add esi, 0x40
dec eax
mov dword [esp + 0x38], eax
jne 0x5b547d
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
add ecx, 0x10
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x3c], eax
jne 0x5b5471
jmp 0x5b55f8
push 0x10c
call fcn.00673b05
mov esi, eax
add esp, 4
mov dword [esp + 0x48], esi
cmp esi, ebx
mov dword [esp + 0x54], 1
je 0x5b553b
push 0x5b9a40
push 0x5b9a20
push 0x10
lea eax, [esi + 0xc]
push 0x10
push eax
call fcn.00674499
mov byte [esp + 0x54], 2
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi], ebx
mov byte [esp + 0x54], 1
jmp 0x5b553d
xor esi, esi
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x48]
push ebx
push edx
lea eax, [esp + 0x44]
push 2
push eax
mov dword [esp + 0x64], 0xffffffff
push edi
mov dword [ecx], esi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x50], ebx
call ebp
cmp word [esp + 0x3c], bx
jl 0x5b55f8
add esi, 0x14
mov dword [esp + 0x30], 4
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x34], 4
lea ecx, [esp + 0x38]
push ebx
push ecx
push 4
push esi
push edi
mov dword [esp + 0x4c], ebx
call ebp
cmp dword [esi], ebx
jle 0x5b55d4
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x5b55ad
push eax
call fcn.006713a0
add esp, 4
mov eax, dword [esi]
lea edx, [eax + eax*2]
shl edx, 2
push edx
call fcn.00673b05
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esi + 4], eax
push ebx
push ecx
mov ecx, dword [esi]
lea edx, [ecx + ecx*2]
shl edx, 2
push edx
push eax
push edi
call ebp
mov eax, dword [esp + 0x34]
add esi, 0x40
dec eax
mov dword [esp + 0x34], eax
jne 0x5b5589
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
add ecx, 0x10
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], eax
jne 0x5b557d
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [ecx], edx
fld dword [esp + 0x40]
mov eax, dword [esp + 0x5c]
fadd dword [0x6a4338]
add eax, 0x400
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
fst dword [esp + 0x40]
fcomp dword [eax + 0x5c]
fnstsw ax
test ah, 1
jne 0x5b5413
mov ecx, dword [esp + 0x10]
fld dword [esp + 0x2c]
fadd dword [0x6a4338]
add dword [esp + 0x28], 4
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fcomp dword [ecx + 0x60]
fnstsw ax
test ah, 1
jne 0x5b53ef
mov al, 1
jmp 0x5b5660
xor al, al
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 4