Function at 0x5b4bb0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x698c22
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
mov ebp, dword [sym.imp.kernel32.dll_ReadFile]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x4c]
lea eax, [esp + 0x4c]
push 0
lea ebx, [esi + 0x5c]
push eax
push 4
push ebx
push edi
mov dword [esp + 0x48], ebx
call ebp
lea ecx, [esp + 0x4c]
push 0
lea eax, [esi + 0x60]
push ecx
push 4
push eax
push edi
mov dword [esp + 0x34], eax
call ebp
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx]
push 0
lea ebx, [esi + 0x64]
mov eax, dword [edx]
lea edx, [esp + 0x50]
push edx
push 4
push ebx
mov dword [esp + 0x48], eax
push edi
mov dword [esp + 0x4c], ecx
call ebp
mov eax, dword [esi + 0x2c]
push eax
call fcn.006713a0
mov eax, dword [ebx]
add esp, 4
test eax, eax
mov dword [esi + 0x2c], 0
jle 0x5b4c8b
lea eax, [eax + eax*2]
mov dword [esp + 0x38], eax
lea eax, [eax + eax*2]
shl eax, 2
push eax
call fcn.00673b05
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x44], 0
je 0x5b4c6a
mov ecx, dword [esp + 0x38]
dec ecx
mov dword [esp + 0x38], ecx
jmp 0x5b4c6c
xor eax, eax
mov ebx, dword [ebx]
lea edx, [esp + 0x4c]
push 0
push edx
lea ecx, [ebx + ebx*8]
mov dword [esp + 0x4c], 0xffffffff
shl ecx, 2
push ecx
push eax
push edi
mov dword [esi + 0x2c], eax
call ebp
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], 0
fld dword [0x6a37dc]
fcomp dword [edx]
fnstsw ax
test ah, 1
je 0x5b4ed0
lea ebx, [esi + 0x70]
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], 0
fld dword [0x6a37dc]
fcomp dword [eax]
fnstsw ax
test ah, 1
je 0x5b4ea2
mov dword [esp + 0x18], ebx
mov esi, dword [ebx]
test esi, esi
mov dword [esp + 0x2c], esi
je 0x5b4d15
mov eax, dword [esi + 8]
mov dword [esp + 0x44], 1
push eax
call fcn.006713a0
add esp, 4
lea ecx, [esi + 0xc]
mov dword [esp + 0x44], 0xffffffff
push 0x5b9a40
push 0x10
push 0x10
push ecx
call fcn.006743a5
push esi
call fcn.006713a0
add esp, 4
lea edx, [esp + 0x4c]
push 0
push edx
lea eax, [esp + 0x1c]
push 4
push eax
push edi
mov dword [ebx], 0
mov dword [esp + 0x28], 0
call ebp
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5b4e79
push 0x10c
call fcn.00673b05
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
test esi, esi
mov dword [esp + 0x44], 2
je 0x5b4d8c
push 0x5b9a40
push 0x5b9a20
push 0x10
lea ecx, [esi + 0xc]
push 0x10
push ecx
call fcn.00674499
xor eax, eax
mov byte [esp + 0x44], 3
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi], eax
mov byte [esp + 0x44], 2
jmp 0x5b4d8e
xor esi, esi
mov dword [esp + 0x44], 0xffffffff
lea edx, [esp + 0x24]
mov dword [ebx], esi
push 0
lea ebx, [esi + 4]
push edx
push 4
push ebx
push edi
mov dword [esp + 0x38], 0
call ebp
cmp dword [ebx], 0
jle 0x5b4de5
mov eax, dword [esi + 8]
test eax, eax
je 0x5b4dc5
push eax
call fcn.006713a0
add esp, 4
mov eax, dword [ebx]
shl eax, 1
push eax
call fcn.00673b05
mov edx, dword [ebx]
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esi + 8], eax
push 0
push ecx
shl edx, 1
push edx
push eax
push edi
call ebp
add esi, 0xc
mov dword [esp + 0x2c], 4
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x10]
mov ebx, 4
lea eax, [esp + 0x28]
push 0
push eax
push 4
push esi
push edi
mov dword [esp + 0x3c], 0
call ebp
cmp dword [esi], 0
jle 0x5b4e4f
mov eax, dword [esi + 4]
test eax, eax
je 0x5b4e27
push eax
call fcn.006713a0
add esp, 4
mov eax, dword [esi]
lea ecx, [eax + eax*2]
shl ecx, 2
push ecx
call fcn.00673b05
mov ecx, dword [esi]
add esp, 4
lea edx, [esp + 0x28]
mov dword [esi + 4], eax
lea ecx, [ecx + ecx*2]
push 0
shl ecx, 2
push edx
push ecx
push eax
push edi
call ebp
add esi, 0x40
dec ebx
jne 0x5b4dfd
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
add ecx, 0x10
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], eax
jne 0x5b4df4
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov ebx, edx
mov eax, dword [edx]
mov dword [eax], ecx
fld dword [esp + 0x30]
fadd dword [0x6a4338]
mov edx, dword [esp + 0x34]
add ebx, 0x400
mov dword [esp + 0x18], ebx
fst dword [esp + 0x30]
fcomp dword [edx]
fnstsw ax
test ah, 1
jne 0x5b4cd4
fld dword [esp + 0x1c]
fadd dword [0x6a4338]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x38]
add ebx, 4
mov dword [esp + 0x38], ebx
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fcomp dword [eax]
fnstsw ax
test ah, 1
jne 0x5b4cb1
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4