Function at 0x10054170
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [0x101a224c]
push esi
cmp byte [ebx + 0xaf], 0
je 0x10054194
test byte [ebx + 0xc], 2
jne 0x10054194
mov byte [ebx + 0xaf], 0
cmp byte [ebx + 0x2c3c], 0
push edi
jne 0x10054275
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x1005426e
push 0x100e6270
push eax
call fcn.1004f510
mov esi, eax
add esp, 8
test esi, esi
je 0x1005426e
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10054264
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
cmp edi, 0xffffffff
je 0x10054264
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10054264
push edi
call fcn.10051290
add esp, 4
mov edi, eax
push esi
test edi, edi
je 0x10054265
push dword [ebp - 4]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp - 4]
je 0x10054250
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, dword [0x101a224c]
test eax, eax
je 0x1005423e
dec dword [eax + 0x36c]
push dword [0x101a2254]
push edi
call dword [0x1015c17c]
add esp, 8
jmp 0x1005426e
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push dword [ebp - 4]
push edi
call fcn.10050ee0
add esp, 0xc
jmp 0x1005422f
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov byte [ebx + 0x2c3c], 1
movss xmm0, dword [ebx + 0x2c40]
xorps xmm2, xmm2
comiss xmm0, xmm2
jbe 0x100542bd
subss xmm0, dword [ebx + 0x18]
comiss xmm2, xmm0
movss dword [ebx + 0x2c40], xmm0
jb 0x100542bd
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x100542ac
push eax
call fcn.10056bf0
add esp, 4
xorps xmm2, xmm2
jmp 0x100542b3
mov byte [ebx + 0x354], 1
mov dword [ebx + 0x2c40], 0
movss xmm0, dword [ebx + 0x18]
mov eax, dword [ebx + 0x94]
inc dword [ebx + 0x1940]
cvtps2pd xmm0, xmm0
mov byte [ebx + 1], 1
mov dword [ebx + 0x2c18], 0
mov dword [ebx + 0x1988], 0
addsd xmm0, qword [ebx + 0x1938]
movsd qword [ebx + 0x1938], xmm0
mov byte [eax], 1
mov edx, dword [0x101a224c]
mov esi, dword [edx + 0xa0]
test esi, esi
jne 0x10054317
mov eax, dword [edx + 0x94]
mov eax, dword [eax + 0x3c]
mov esi, dword [eax]
movss xmm0, dword [0x100e4318]
mov eax, dword [edx + 0x198c]
mov dword [edx + 0x18a8], esi
movss xmm1, dword [esi + 0x10]
mulss xmm1, dword [edx + 0x98]
mulss xmm1, dword [esi + 0x44]
maxss xmm0, xmm1
movss dword [edx + 0x18b0], xmm0
test eax, eax
je 0x10054362
movss xmm2, dword [eax + 0x26c]
mov eax, dword [0x101a224c]
mulss xmm2, dword [eax + 0x18b0]
movss dword [edx + 0x18ac], xmm2
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x30]
mov dword [edx + 0x18b4], ecx
lea ecx, [ebx + 0x1bf0]
mov dword [edx + 0x18b8], eax
mov dword [edx + 0x18bc], esi
movss dword [edx + 0x18c0], xmm2
movss xmm0, dword [ebx + 0x10]
mov eax, dword [ebx + 0x15a4]
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [ebx + 0x14]
movss dword [ebp - 8], xmm0
movups xmm0, xmmword [ebp - 0x14]
mov dword [ebx + 0x18c4], eax
movups xmmword [ebx + 0x18c8], xmm0
call fcn.1005d060
mov eax, dword [ebx + 0x94]
lea ecx, [ebx + 0x1bf0]
push dword [eax + 8]
call fcn.1005f820
lea ecx, [ebx + 0x1bf0]
call fcn.1005f730
xor ecx, ecx
mov byte [ebx + 0x1ba8], 0
cmp byte [ebx + 0x15a1], cl
mov eax, 2
mov dword [ebx + 0x1bac], 0
cmovne ecx, eax
mov dword [ebx + 0x1bb4], 0
xor eax, eax
mov dword [ebx + 0x1bb8], 0
cmp byte [ebx + 0x15a0], al
mov dword [ebx + 0x1bb0], 0
setne al
or ecx, eax
mov dword [ebx + 0x1c14], ecx
mov dword [ebx + 0x1bcc], 0
mov eax, dword [ebx + 0x1bcc]
mov dword [ebx + 0x1bd0], 0
mov ecx, dword [ebx + 0x1bd0]
mov dword [ebx + 0x1bc4], eax
mov dword [ebx + 0x1bc8], ecx
mov dword [ebx + 0x1bbc], eax
mov dword [ebx + 0x1bc0], ecx
cmp byte [ebx + 0x1c68], 0
je 0x100544b4
mov eax, dword [ebx + 0x1c80]
cmp eax, dword [ebx + 0x19ac]
jne 0x100544b4
mov ecx, dword [0x101a224c]
cmp dword [ecx + 0x19ac], eax
jne 0x100544a5
mov dword [ecx + 0x19b4], eax
cmp dword [ecx + 0x19b0], eax
jne 0x100544b4
mov byte [ecx + 0x19c0], 1
cmp dword [ebx + 0x19a0], 0
mov eax, dword [ebx + 0x1998]
jne 0x100544cf
mov dword [ebx + 0x19a4], 0
jmp 0x100544dd
mov ecx, eax
test eax, eax
je 0x100544e9
cmp dword [ebx + 0x19ac], eax
jne 0x100544e9
mov dword [ebx + 0x19a8], 0
mov ecx, eax
movss xmm2, dword [ebx + 0x18]
mov eax, dword [ebx + 0x19ac]
test ecx, ecx
je 0x10054522
movaps xmm0, xmm2
addss xmm0, dword [ebx + 0x19a4]
movss dword [ebx + 0x19a4], xmm0
cmp eax, ecx
je 0x10054522
movaps xmm0, xmm2
addss xmm0, dword [ebx + 0x19a8]
movss dword [ebx + 0x19a8], xmm0
movaps xmm1, xmm2
mov dword [ebx + 0x19a0], ecx
mov ecx, eax
mov dword [ebx + 0x1998], 0
mov byte [ebx + 0x199c], 0
cmp dword [ebx + 0x19b4], eax
je 0x10054562
cmp dword [ebx + 0x19b0], eax
jne 0x10054562
test eax, eax
je 0x10054562
call fcn.1004bcf0
mov ecx, dword [ebx + 0x19ac]
movss xmm1, dword [ebx + 0x18]
test ecx, ecx
je 0x10054579
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x19b8]
movss dword [ebx + 0x19b8], xmm0
mov eax, dword [ebx + 0x19d4]
addss xmm1, dword [ebx + 0x19e4]
mov dword [ebx + 0x19d8], eax
mov al, byte [ebx + 0x19bf]
mov byte [ebx + 0x19c1], al
mov eax, dword [ebx + 0x2bec]
movss dword [ebx + 0x19e4], xmm1
mov dword [ebx + 0x19b0], ecx
mov dword [ebx + 0x19b4], 0
mov byte [ebx + 0x19c0], 0
mov byte [ebx + 0x19bc], 0
test eax, eax
je 0x100545d7
cmp ecx, eax
je 0x100545d7
mov dword [ebx + 0x2bec], 0
mov eax, dword [ebx + 0x1ccc]
lea edi, [ebx + 0xc48]
movss xmm2, dword [0x100e4348]
mov ecx, 0x200
mov dword [ebx + 0x1cd0], eax
lea eax, [ebx + 0x448]
mov esi, eax
mov dword [ebx + 0x1ccc], 0
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x1cc8], 0x7f7fffff
xor ecx, ecx
mov byte [ebx + 0x1c69], 0
nop dword [eax]
cmp byte [ecx + ebx + 0xfc], 0
je 0x10054642
movss xmm0, dword [eax]
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x1005463b
xorps xmm0, xmm0
jmp 0x10054645
addss xmm0, dword [ebx + 0x18]
jmp 0x10054645
movaps xmm0, xmm2
movss dword [eax], xmm0
inc ecx
add eax, 4
cmp ecx, 0x200
jl 0x10054620
call fcn.100520f0
call fcn.10058e80
mov eax, dword [ebx + 0x2e64]
mov ecx, 0x78
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [ebx + eax*4 + 0x2c84]
addss xmm0, dword [ebx + 0x2e68]
movss dword [ebx + 0x2e68], xmm0
movss dword [ebx + eax*4 + 0x2c84], xmm1
xorps xmm1, xmm1
mov eax, dword [ebx + 0x2e64]
inc eax
movss xmm0, dword [ebx + 0x2e68]
cdq
idiv ecx
comiss xmm0, xmm1
mov dword [ebx + 0x2e64], edx
jbe 0x100546ca
divss xmm0, dword [0x100e8e88]
movss xmm2, dword [0x100e4318]
divss xmm2, xmm0
jmp 0x100546d2
movss xmm2, dword [0x100e8e9c]
movss dword [ebx + 0x358], xmm2
mov edx, dword [0x101a224c]
mov ecx, dword [edx + 0x19f0]
test ecx, ecx
je 0x100548d0
mov eax, dword [edx + 0x19ac]
mov dword [edx + 0x19b4], eax
cmp dword [edx + 0x19b0], eax
jne 0x10054709
mov byte [edx + 0x19c0], 1
cmp byte [edx + 0xe8], 0
mov ecx, dword [ecx + 0x2f0]
mov esi, dword [0x101a224c]
je 0x1005486d
lea eax, [edx + 0xe0]
mov edi, eax
test eax, eax
jne 0x10054734
lea edi, [esi + 0xe0]
movss xmm0, dword [edi]
movss xmm2, dword [0x100e8eb8]
comiss xmm0, xmm2
movss xmm3, dword [edi + 4]
jb 0x1005486d
comiss xmm3, xmm2
jb 0x1005486d
movss xmm5, dword [eax]
subss xmm5, dword [edx + 0x19cc]
movss xmm0, dword [ecx + 0xc]
movss xmm4, dword [eax + 4]
subss xmm4, dword [edx + 0x19d0]
ucomiss xmm0, xmm5
lahf
test ah, 0x44
jp 0x10054790
movss xmm0, dword [ecx + 0x10]
ucomiss xmm0, xmm4
lahf
test ah, 0x44
jnp 0x1005485a
test dword [ecx + 8], 0x100
jne 0x100547ab
comiss xmm1, dword [esi + 0x2c40]
jb 0x100547ab
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x2c40], eax
mov eax, dword [ecx + 0xac]
test al, 1
je 0x1005485a
and eax, 0xfffffff1
movss xmm2, dword [ecx + 0xc]
mov dword [ecx + 0xac], eax
movss xmm3, dword [ecx + 0x10]
cvttss2si eax, xmm5
mov dword [ecx + 0xb8], 0x7f7fffff
mov dword [ecx + 0xbc], 0x7f7fffff
movd xmm0, eax
cvttss2si eax, xmm4
cvtdq2ps xmm0, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [ecx + 0xc], xmm0
subss xmm0, xmm2
movss dword [ecx + 0x10], xmm1
subss xmm1, xmm3
addss xmm0, dword [ecx + 0xc8]
addss xmm1, dword [ecx + 0xcc]
movss dword [ecx + 0xc8], xmm0
movss dword [ecx + 0xcc], xmm1
movss xmm1, dword [ecx + 0x10]
movss xmm0, dword [ecx + 0xc]
subss xmm1, xmm3
subss xmm0, xmm2
addss xmm1, dword [ecx + 0xe4]
addss xmm0, dword [ecx + 0xe0]
movss dword [ecx + 0xe4], xmm1
movss dword [ecx + 0xe0], xmm0
push dword [edx + 0x19f0]
call fcn.1004e1b0
add esp, 4
jmp 0x10054908
mov ecx, dword [esi + 0x19ac]
test ecx, ecx
setne al
mov byte [esi + 0x19bc], al
test ecx, ecx
je 0x10054895
mov dword [esi + 0x19b8], 0
mov word [esi + 0x19be], 0
mov dword [esi + 0x19ac], 0
mov dword [esi + 0x19c4], 0
mov dword [esi + 0x19c8], 0
mov byte [esi + 0x19bd], 0
mov dword [esi + 0x19d4], 0
mov dword [edx + 0x19f0], 0
jmp 0x10054908
mov ecx, dword [edx + 0x19d4]
test ecx, ecx
je 0x10054908
mov eax, dword [edx + 0x19ac]
cmp dword [ecx + 0x50], eax
jne 0x10054908
mov dword [edx + 0x19b4], eax
cmp dword [edx + 0x19b0], eax
jne 0x100548fa
mov byte [edx + 0x19c0], 1
cmp byte [edx + 0xe8], 0
jne 0x10054908
call fcn.1004bcf0
call fcn.10058320
mov eax, dword [0x101a224c]
mov edx, dword [eax + 0x1a18]
sub edx, 1
js 0x1005494b
mov eax, dword [eax + 0x1a20]
lea ecx, [edx + edx*8]
lea eax, [eax + ecx*4]
add eax, 4
nop dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x10054943
test dword [ecx + 8], 0x8000000
jne 0x10054a34
sub eax, 0x24
sub edx, 1
jns 0x10054930
cmp dword [ebx + 0x1adc], 0
xorps xmm6, xmm6
je 0x10054968
movss xmm0, dword [ebx + 0x1aec]
comiss xmm0, xmm6
ja 0x10054a37
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x100e45e8]
movss xmm1, dword [ebx + 0x1bec]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [ebx + 0x1bec], xmm1
mov dword [ebx + 0x1c64], 0
mov dword [ebx + 0x2e74], 0xffffffff
mov dword [ebx + 0x2e70], 0xffffffff
mov dword [ebx + 0x2e6c], 0xffffffff
mov dword [ebx + 0x2c2c], 0x3f800000
mov dword [ebx + 0x2c30], 0x3f800000
call fcn.100593e0
cmp dword [ebx + 0x19ac], 0
jne 0x10054aa1
mov ecx, dword [ebx + 0x1a9c]
test ecx, ecx
je 0x10054aa1
cmp byte [ecx + 0x7a], 0
je 0x10054aa1
test dword [ecx + 8], 0x40000
jne 0x10054aa1
cmp byte [ebx + 0xf8], 0
jne 0x10054aa1
mov edx, dword [0x101a224c]
mov eax, dword [edx + 0x34]
test eax, eax
js 0x10054aa1
movss xmm0, dword [edx + eax*4 + 0x448]
ucomiss xmm0, xmm6
lahf
test ah, 0x44
jp 0x10054a59
mov al, 1
jmp 0x10054a5b
xorps xmm6, xmm6
movss xmm1, dword [ebx + 0x18]
mulss xmm1, dword [0x100e45e4]
addss xmm1, dword [ebx + 0x1bec]
minss xmm1, dword [0x100e4318]
jmp 0x10054985
xor al, al
test al, al
je 0x10054aa1
cmp dword [ebx + 0x1aa0], 0
je 0x10054a90
mov eax, dword [ebx + 0x1af8]
cmp eax, 0x7fffffff
je 0x10054a90
xor esi, esi
mov edx, 2
cmp byte [ebx + 0xf9], 0
cmovne edx, esi
add edx, eax
mov dword [ecx + 0x33c], edx
jmp 0x10054aa1
movzx eax, byte [ebx + 0xf9]
neg eax
sbb eax, eax
mov dword [ecx + 0x33c], eax
xor edx, edx
mov dword [ebx + 0x1af8], 0x7fffffff
cmp dword [ebx + 0x194c], edx
je 0x10054ad5
mov eax, dword [ebx + 0x1954]
mov ecx, dword [eax + edx*4]
inc edx
mov al, byte [ecx + 0x7a]
mov byte [ecx + 0x7b], al
mov byte [ecx + 0x7a], 0
mov byte [ecx + 0x7c], 0
cmp edx, dword [ebx + 0x194c]
jne 0x10054ab5
mov eax, dword [ebx + 0x1a9c]
test eax, eax
je 0x10054b4d
cmp byte [eax + 0x7b], 0
jne 0x10054b4d
mov eax, dword [0x101a224c]
mov edi, dword [eax + 0x1958]
sub edi, 1
js 0x10054b4d
mov eax, dword [eax + 0x1960]
lea eax, [eax + edi*4]
mov dword [ebp - 4], eax
mov esi, dword [eax]
test esi, esi
je 0x10054b2c
cmp byte [esi + 0x7b], 0
je 0x10054b2c
mov eax, dword [esi + 8]
and eax, 0x40200
cmp eax, 0x40200
setne cl
bt dword [esi + 8], 0x18
setae al
test al, cl
jne 0x10054b39
mov eax, dword [ebp - 4]
sub eax, 4
sub edi, 1
mov dword [ebp - 4], eax
jns 0x10054b01
jmp 0x10054b4d
mov eax, dword [esi + 0x2fc]
test eax, eax
cmovne esi, eax
push esi
call fcn.1004e1b0
add esp, 4
mov ecx, dword [ebx + 0x1974]
pop edi
test ecx, ecx
jns 0x10054b74
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [ebx + 0x1970]
call fcn.10059be0
mov dword [ebx + 0x1970], 0
mov ecx, dword [ebx + 0x1a28]
test ecx, ecx
jns 0x10054ba4
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [ebx + 0x1a24]
call fcn.10059d00
mov dword [ebx + 0x1a24], 0
push dword [ebx + 0x1a9c]
call fcn.1004bf60
mov eax, dword [0x101a224c]
push 0
push 0
push str.DebugDefault
mov dword [eax + 0x1a5c], 0x43c80000
mov dword [eax + 0x1a60], 0x43c80000
mov dword [eax + 0x1a34], 4
call fcn.10047850
add esp, 0x10
mov byte [ebx + 2], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret