Function at 0x100bd6d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, dword [esp + 0x30]
push esi
call fcn.100d7620
add esp, 4
test eax, eax
je 0x100bdab2
push ebp
push 0x10171b30
push esi
mov esi, dword [sym.imp.MSVCR80.dll_fopen]
call esi
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x100bd707
pop ebp
pop esi
add esp, 0x24
ret
push edi
mov edi, dword [esp + 0x3c]
push edi
call fcn.100d7620
add esp, 4
test eax, eax
je 0x100bda9f
push 0x10171b30
push edi
call esi
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x14], esi
je 0x100bda9f
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
push ebp
call fcn.100bcf80
add esp, 0x24
test eax, eax
je 0x100bda87
mov eax, dword [esp + 0xc]
test eax, eax
jle 0x100bda87
mov edi, dword [esp + 0x1c]
test edi, edi
jle 0x100bda87
mov esi, dword [esp + 0x34]
push ebx
mov ebx, edi
imul ebx, eax
add ebx, ebx
push 8
mov dword [esp + 0x24], ebx
call fcn.100b8ee0
add ebx, ebx
add ebx, ebx
push ebx
mov dword [esi + 4], eax
call fcn.100b8ee0
push 0x30
mov dword [esi + 8], eax
call fcn.100b8ee0
mov ecx, dword [esi + 4]
add esp, 0xc
test ecx, ecx
mov dword [esi + 0xc], eax
je 0x100bda47
cmp dword [esi + 8], 0
je 0x100bda47
test eax, eax
je 0x100bda47
xor eax, eax
mov dword [ecx], eax
push ebx
mov dword [ecx + 4], eax
mov edx, dword [esi + 8]
push eax
push edx
call sub.MSVCR80.dll_memset
mov eax, dword [esi + 0xc]
push 0x30
push 0
push eax
call sub.MSVCR80.dll_memset
fld dword [esp + 0x2c]
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
mov edx, dword [esi + 4]
mov dword [edx + 4], edi
mov ecx, dword [esi + 0xc]
fst qword [ecx]
mov edx, dword [esi + 0xc]
fld dword [esp + 0x3c]
lea ecx, [edi - 1]
fst qword [edx + 8]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x3c], ecx
fild dword [esp + 0x3c]
fld dword [esp + 0x40]
add eax, 0xffffffff
fld st(0)
mov dword [esp + 0x40], eax
fmulp st(2)
push 0
fxch st(1)
faddp st(3)
fxch st(2)
fstp qword [edx + 0x10]
mov eax, dword [esi + 0xc]
fild dword [esp + 0x44]
fld dword [esp + 0x48]
fld st(0)
fmulp st(2)
fxch st(1)
faddp st(2)
fxch st(1)
fstp qword [eax + 0x18]
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x38]
fxch st(1)
fstp qword [ecx + 0x20]
mov edx, dword [esi + 0xc]
push eax
fstp qword [edx + 0x28]
mov ebx, dword [esi + 8]
push ebp
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0x24
test eax, eax
je 0x100bd8c0
mov ecx, dword [esi + 4]
push ecx
call fcn.100b8f00
mov edx, dword [esi + 8]
push edx
call fcn.100b8f00
mov eax, dword [esi + 0xc]
push eax
call fcn.100b8f00
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov esi, dword [sym.imp.MSVCR80.dll_fclose]
push ebp
call esi
mov ecx, dword [esp + 0x28]
push ecx
call esi
add esp, 0x14
pop ebx
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x24
ret
cmp dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
jle 0x100bd910
nop
push 1
push 4
push ebp
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x100bd9c4
push ebp
push edi
push 4
push ebx
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
cmp eax, edi
jne 0x100bda07
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x10]
lea ebx, [ebx + edi*4]
mov dword [esp + 0x14], eax
jl 0x100bd8d0
push ebp
call dword [sym.imp.MSVCR80.dll_fclose]
mov ecx, dword [esp + 0x20]
lea eax, [edi*4]
sub ebx, eax
push 0
mov ebp, ebx
mov ebx, dword [esp + 0x20]
push ecx
push ebx
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0x10
test eax, eax
jne 0x100bda0d
cmp dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
jle 0x100bd996
lea esp, [esp]
push 1
lea eax, [edi*4]
push 4
push ebx
add ebp, eax
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x100bda0d
push ebx
push edi
push 4
push ebp
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
cmp eax, edi
jne 0x100bda0d
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
jl 0x100bd950
push ebx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
cmp dword [esp + 0x30], 0
je 0x100bd9b8
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 8]
push edx
push eax
call fcn.100d7a00
add esp, 8
mov eax, dword [esp + 0x20]
pop ebx
pop edi
pop ebp
pop esi
add esp, 0x24
ret
mov edx, dword [esi + 4]
push edx
call fcn.100b8f00
mov eax, dword [esi + 8]
push eax
call fcn.100b8f00
mov ecx, dword [esi + 0xc]
push ecx
call fcn.100b8f00
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov esi, dword [sym.imp.MSVCR80.dll_fclose]
push ebp
call esi
mov edx, dword [esp + 0x28]
push edx
call esi
add esp, 0x14
pop ebx
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x24
ret
mov eax, dword [esi + 4]
push eax
jmp 0x100bda48
mov edx, dword [esi + 4]
push edx
call fcn.100b8f00
mov eax, dword [esi + 8]
push eax
call fcn.100b8f00
mov ecx, dword [esi + 0xc]
push ecx
call fcn.100b8f00
xor eax, eax
push ebx
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 0x10
pop ebx
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x24
ret
push ecx
call fcn.100b8f00
mov ecx, dword [esi + 8]
push ecx
call fcn.100b8f00
mov edx, dword [esi + 0xc]
push edx
call fcn.100b8f00
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov esi, dword [sym.imp.MSVCR80.dll_fclose]
push ebp
call esi
mov eax, dword [esp + 0x28]
push eax
call esi
add esp, 0x14
pop ebx
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x24
ret
mov edi, dword [sym.imp.MSVCR80.dll_fclose]
push ebp
call edi
push esi
call edi
add esp, 8
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x24
ret
push ebp
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x24
ret
xor eax, eax
pop esi
add esp, 0x24
ret