Function at 0x10018c40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [0x1025b460]
push esi
push edi
mov dword [ebp - 8], ebx
cmp byte [ebx + 0xb3], 0
je 0x10018c68
test byte [ebx + 0xc], 2
jne 0x10018c68
mov byte [ebx + 0xb3], 0
cmp byte [ebx + 0x2d34], 0
jne 0x10018d77
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x10018d70
push 0x101685cc
push eax
call fcn.10013eb0
mov esi, eax
add esp, 8
test esi, esi
je 0x10018d70
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x10018d66
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 0x10018d66
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
cmp edi, 0xffffffff
je 0x10018d66
push 0
push dword [ebp - 0x10]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10018d66
mov eax, dword [0x1025b460]
test eax, eax
je 0x10018cfc
inc dword [eax + 0x374]
push dword [0x1025b480]
push edi
call dword [0x10192200]
mov edi, eax
add esp, 8
test edi, edi
je 0x10018d66
push esi
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 0x10018d52
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, dword [0x1025b460]
test eax, eax
je 0x10018d40
dec dword [eax + 0x374]
push dword [0x1025b480]
push edi
call dword [0x10192204]
add esp, 8
jmp 0x10018d70
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push dword [ebp - 4]
push edi
call fcn.10015900
add esp, 0xc
jmp 0x10018d31
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov byte [ebx + 0x2d34], 1
movss xmm1, dword [ebx + 0x2d38]
xorps xmm0, xmm0
comiss xmm1, xmm0
jbe 0x10018dbc
subss xmm1, dword [ebx + 0x18]
comiss xmm0, xmm1
movss dword [ebx + 0x2d38], xmm1
jb 0x10018dbc
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x10018dab
push eax
call fcn.1001c3d0
add esp, 4
jmp 0x10018db2
mov byte [ebx + 0x35c], 1
mov dword [ebx + 0x2d38], 0
movss xmm0, dword [ebx + 0x18]
mov eax, dword [ebx + 0x98]
inc dword [ebx + 0x1960]
cvtps2pd xmm0, xmm0
mov byte [ebx + 0x196c], 1
mov dword [ebx + 0x2d10], 0
mov dword [ebx + 0x19ac], 0
addsd xmm0, qword [ebx + 0x1958]
movsd qword [ebx + 0x1958], xmm0
mov byte [eax], 1
mov ecx, dword [0x1025b460]
mov eax, dword [ecx + 0xa4]
test eax, eax
jne 0x10018e19
mov eax, dword [ecx + 0x98]
mov eax, dword [eax + 0x44]
mov eax, dword [eax]
push eax
call fcn.1001c980
movss xmm0, dword [ebx + 0x10]
add esp, 4
mov eax, dword [ebx + 0x15bc]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [ebx + 0x14]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
movss dword [ebp - 0x14], xmm0
movups xmm0, xmmword [ebp - 0x20]
mov dword [ebx + 0x18dc], eax
xor eax, eax
mov dword [ebx + 0x18f0], 0
movups xmmword [ebx + 0x18e0], xmm0
cmp byte [ebx + 0x15b8], al
je 0x10018e7e
mov dword [ebx + 0x18f0], 1
mov eax, 1
cmp byte [ebx + 0x15b9], 0
je 0x10018e90
or eax, 2
mov dword [ebx + 0x18f0], eax
test byte [ebx + 0xc], 8
je 0x10018e9f
or eax, 4
mov dword [ebx + 0x18f0], eax
lea ecx, [ebx + 0x1c48]
call fcn.100226a0
mov eax, dword [ebx + 0x98]
lea ecx, [ebx + 0x1c48]
push dword [eax + 8]
call fcn.100252e0
lea ecx, [ebx + 0x1c48]
call fcn.100251f0
lea ecx, [ebx + 0x1cc0]
call fcn.100226a0
mov eax, dword [ebx + 0x98]
lea ecx, [ebx + 0x1cc0]
push dword [eax + 8]
call fcn.100252e0
lea ecx, [ebx + 0x1cc0]
call fcn.100251f0
mov dword [ebx + 0x1c24], 0
mov eax, dword [ebx + 0x1c24]
mov dword [ebx + 0x1c28], 0
mov ecx, dword [ebx + 0x1c28]
mov byte [ebx + 0x1c00], 0
mov dword [ebx + 0x1c04], 0
mov dword [ebx + 0x1c0c], 0
mov dword [ebx + 0x1c10], 0
mov dword [ebx + 0x1c08], 0
mov dword [ebx + 0x1c1c], eax
mov dword [ebx + 0x1c20], ecx
mov dword [ebx + 0x1c14], eax
mov dword [ebx + 0x1c18], ecx
cmp byte [ebx + 0x1d3c], 0
je 0x10018f94
mov eax, dword [ebx + 0x1d54]
cmp eax, dword [ebx + 0x19ec]
jne 0x10018f94
mov ecx, dword [0x1025b460]
cmp dword [ecx + 0x19ec], eax
jne 0x10018f85
mov dword [ecx + 0x19f0], eax
cmp dword [ecx + 0x1a20], eax
jne 0x10018f94
mov byte [ecx + 0x1a24], 1
cmp dword [ebx + 0x19e0], 0
mov eax, dword [ebx + 0x19d8]
jne 0x10018faf
mov dword [ebx + 0x19e4], 0
jmp 0x10018fbd
mov ecx, eax
test eax, eax
je 0x10018fc9
cmp dword [ebx + 0x19ec], eax
jne 0x10018fc9
mov dword [ebx + 0x19e8], 0
mov ecx, eax
movss xmm2, dword [ebx + 0x18]
mov eax, dword [ebx + 0x19ec]
test ecx, ecx
je 0x10019002
movaps xmm0, xmm2
addss xmm0, dword [ebx + 0x19e4]
movss dword [ebx + 0x19e4], xmm0
cmp eax, ecx
je 0x10019002
movaps xmm0, xmm2
addss xmm0, dword [ebx + 0x19e8]
movss dword [ebx + 0x19e8], xmm0
movaps xmm1, xmm2
mov dword [ebx + 0x19e0], ecx
mov ecx, eax
mov dword [ebx + 0x19d8], 0
mov byte [ebx + 0x19dc], 0
cmp dword [ebx + 0x19f0], eax
je 0x10019049
cmp dword [ebx + 0x1a20], eax
jne 0x10019049
test eax, eax
je 0x10019049
push 0
push 0
call fcn.1001c7e0
mov ecx, dword [ebx + 0x19ec]
add esp, 8
movss xmm1, dword [ebx + 0x18]
test ecx, ecx
je 0x10019060
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x19f4]
movss dword [ebx + 0x19f4], xmm0
mov eax, dword [ebx + 0x1a18]
addss xmm1, dword [ebx + 0x1a30]
mov dword [ebx + 0x1a28], eax
mov al, byte [ebx + 0x19fb]
mov byte [ebx + 0x1a25], al
mov eax, dword [ebx + 0x2cd8]
movss dword [ebx + 0x1a30], xmm1
mov dword [ebx + 0x1a20], ecx
mov dword [ebx + 0x19f0], 0
mov byte [ebx + 0x19fc], 0
mov byte [ebx + 0x1a24], 0
mov byte [ebx + 0x19f8], 0
test eax, eax
je 0x100190c5
cmp ecx, eax
je 0x100190c5
mov dword [ebx + 0x2cd8], 0
test ecx, ecx
jne 0x100190e1
mov dword [ebx + 0x1a04], ecx
mov dword [ebx + 0x1a00], ecx
mov dword [ebx + 0x1a08], ecx
mov dword [ebx + 0x1a0c], ecx
mov eax, dword [ebx + 0x1da0]
lea edi, [ebx + 0xc58]
movss xmm0, dword [0x101686f4]
mov ecx, 0x200
movss xmm2, dword [0x1016870c]
mov dword [ebx + 0x1da4], eax
lea eax, [ebx + 0x458]
mov esi, eax
mov dword [ebx + 0x1da0], 0
rep movsd dword es:[edi], dword [esi]
movss dword [ebp - 0x10], xmm0
xor ecx, ecx
mov dword [ebx + 0x1d9c], 0x7f7fffff
mov byte [ebx + 0x1d3d], 0
cmp byte [ebx + ecx + 0x104], 0
je 0x10019156
movss xmm0, dword [eax]
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x1001914f
xorps xmm0, xmm0
jmp 0x10019159
addss xmm0, dword [ebx + 0x18]
jmp 0x10019159
movaps xmm0, xmm2
movss dword [eax], xmm0
inc ecx
add eax, 4
cmp ecx, 0x200
jl 0x10019134
call fcn.10016b10
call fcn.1001dfa0
mov eax, dword [ebx + 0x2f74]
mov ecx, 0x78
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [ebx + eax*4 + 0x2d94]
addss xmm0, dword [ebx + 0x2f78]
movss dword [ebx + 0x2f78], xmm0
movss dword [ebx + eax*4 + 0x2d94], xmm1
mov eax, dword [ebx + 0x2f74]
inc eax
movss xmm1, dword [ebx + 0x2f78]
cdq
idiv ecx
comiss xmm1, dword [0x10168634]
mov dword [ebx + 0x2f74], edx
jbe 0x100191d7
movss xmm0, dword [0x101686e0]
divss xmm0, xmm1
jmp 0x100191df
movss xmm0, dword [0x101686f4]
movss dword [ebx + 0x360], xmm0
call fcn.1001d420
mov esi, dword [0x1025b460]
mov ecx, dword [esi + 0x19bc]
test ecx, ecx
je 0x10019373
mov eax, dword [esi + 0x19ec]
mov dword [esi + 0x19f0], eax
cmp dword [esi + 0x1a20], eax
jne 0x1001921b
mov byte [esi + 0x1a24], 1
cmp byte [esi + 0xf0], 0
mov edi, dword [ecx + 0x304]
mov edx, dword [0x1025b460]
je 0x100192f5
lea eax, [esi + 0xe8]
test eax, eax
je 0x10019243
mov dword [ebp - 4], eax
jmp 0x1001924c
lea ebx, [edx + 0xe8]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
movss xmm1, dword [0x10168718]
movss xmm0, dword [ebx]
comiss xmm0, xmm1
movss xmm2, dword [ebx + 4]
mov ebx, dword [ebp - 8]
jb 0x100192f5
comiss xmm2, xmm1
jb 0x100192f5
movss xmm1, dword [eax]
subss xmm1, dword [esi + 0x1a10]
movss xmm0, dword [edi + 0xc]
movss xmm2, dword [eax + 4]
subss xmm2, dword [esi + 0x1a14]
ucomiss xmm0, xmm1
movss dword [ebp - 0xc], xmm1
movss dword [ebp - 8], xmm2
lahf
test ah, 0x44
jp 0x100192b4
movss xmm0, dword [edi + 0x10]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x100192e7
test dword [edi + 8], 0x100
jne 0x100192d2
xorps xmm0, xmm0
comiss xmm0, dword [edx + 0x2d38]
jb 0x100192d2
mov eax, dword [edx + 0x1c]
mov dword [edx + 0x2d38], eax
push 1
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.1001d0a0
mov ecx, dword [esi + 0x19bc]
add esp, 0xc
push ecx
call fcn.10012c90
add esp, 4
jmp 0x100193b2
mov ecx, dword [edx + 0x19ec]
test ecx, ecx
setne al
mov byte [edx + 0x19f8], al
test ecx, ecx
je 0x1001931d
mov dword [edx + 0x19f4], 0
mov word [edx + 0x19fa], 0
mov dword [edx + 0x19ec], 0
mov byte [edx + 0x19f9], 0
mov dword [edx + 0x1a18], 0
mov byte [edx + 0x19fc], 0
mov dword [edx + 0x1a00], 0
mov dword [edx + 0x1a04], 0
mov dword [edx + 0x1a08], 0
mov dword [edx + 0x1a0c], 0
mov dword [esi + 0x19bc], 0
jmp 0x100193b2
mov ecx, dword [esi + 0x1a18]
test ecx, ecx
je 0x100193b2
mov eax, dword [esi + 0x19ec]
cmp dword [ecx + 0x48], eax
jne 0x100193b2
mov dword [esi + 0x19f0], eax
cmp dword [esi + 0x1a20], eax
jne 0x1001939d
mov byte [esi + 0x1a24], 1
cmp byte [esi + 0xf0], 0
jne 0x100193b2
push 0
push 0
call fcn.1001c7e0
add esp, 8
mov eax, dword [0x1025b460]
mov edx, dword [eax + 0x1ac0]
sub edx, 1
js 0x100193e8
mov eax, dword [eax + 0x1ac8]
lea ecx, [edx + edx*8]
lea eax, [eax + ecx*4]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x100193e0
test dword [ecx + 8], 0x8000000
jne 0x10019402
sub eax, 0x24
sub edx, 1
jns 0x100193d1
cmp dword [ebx + 0x1b18], 0
je 0x10019421
movss xmm0, dword [ebx + 0x1b28]
comiss xmm0, dword [0x10168634]
jbe 0x10019421
movss xmm1, dword [ebx + 0x18]
mulss xmm1, dword [0x101686c0]
addss xmm1, dword [ebx + 0x1c44]
minss xmm1, dword [0x1016869c]
jmp 0x10019442
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x101686c8]
movss xmm1, dword [ebx + 0x1c44]
subss xmm1, xmm0
maxss xmm1, dword [0x10168634]
movss dword [ebx + 0x1c44], xmm1
mov dword [ebx + 0x1d38], 0
mov dword [ebx + 0x2f84], 0xffffffff
mov dword [ebx + 0x2f80], 0xffffffff
mov dword [ebx + 0x2f7c], 0xffffffff
mov dword [ebx + 0x2d24], 0x3f800000
mov dword [ebx + 0x2d28], 0x3f800000
call fcn.1001e560
mov esi, dword [ebx + 0x1be8]
mov byte [ebx + 0x1bfc], 0
mov dword [ebx + 0x1be4], 0
mov dword [ebx + 0x1bf0], 0x7fffffff
mov dword [ebx + 0x1bec], 0x7fffffff
test esi, esi
je 0x10019526
mov eax, dword [ebx + 0x1bf4]
mov dword [ebx + 0x1be4], esi
cmp eax, 0x7fffffff
je 0x100194e4
mov ecx, dword [esi + 0x174]
cmp ecx, 0xffffffff
je 0x100194e4
inc ecx
add eax, ecx
cdq
idiv ecx
mov dword [ebx + 0x1bec], edx
mov eax, dword [ebx + 0x1bf8]
cmp eax, 0x7fffffff
je 0x10019508
mov ecx, dword [esi + 0x178]
cmp ecx, 0xffffffff
je 0x10019508
inc ecx
add eax, ecx
cdq
idiv ecx
mov dword [ebx + 0x1bf0], edx
mov dword [ebx + 0x1be8], 0
mov dword [ebx + 0x1bf8], 0x7fffffff
mov dword [ebx + 0x1bf4], 0x7fffffff
movss xmm1, dword [ebx + 0xb8]
comiss xmm1, dword [0x10168634]
mov dword [ebx + 0x1b34], 0x7fffffff
jb 0x10019558
movsd xmm0, qword [ebx + 0x1958]
cvtpd2ps xmm0, xmm0
subss xmm0, xmm1
movss dword [ebp - 0x10], xmm0
jmp 0x10019560
movss xmm0, dword [0x101686f4]
xor esi, esi
cmp dword [ebx + 0x1970], esi
je 0x100195c6
nop word [eax + eax]
mov eax, dword [ebx + 0x1978]
xor edx, edx
mov ecx, dword [eax + esi*4]
mov al, byte [ecx + 0x8a]
mov byte [ecx + 0x8b], al
mov word [ecx + 0x94], dx
mov byte [ecx + 0x8a], dl
mov byte [ecx + 0x8c], dl
test al, al
jne 0x100195b8
cmp byte [ecx + 0x33c], dl
jne 0x100195b8
comiss xmm0, dword [ecx + 0x238]
jbe 0x100195b8
push ecx
call fcn.10012ed0
add esp, 4
movss xmm0, dword [ebp - 0x10]
inc esi
cmp esi, dword [ebx + 0x1970]
jne 0x10019570
mov eax, dword [ebx + 0x1ad8]
test eax, eax
je 0x100195e5
cmp byte [eax + 0x8b], 0
jne 0x100195e5
push 0
push 0
call fcn.10012be0
add esp, 8
mov ecx, dword [ebx + 0x1998]
test ecx, ecx
jns 0x1001960b
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 + 0x1994]
call fcn.1001f480
mov dword [ebx + 0x1994], 0
mov ecx, dword [ebx + 0x1ad0]
test ecx, ecx
jns 0x1001963b
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 + 0x1acc]
call fcn.1001f510
mov dword [ebx + 0x1acc], 0
push 0
push dword [ebx + 0x1ad8]
call fcn.10010f30
mov edx, dword [0x1025b460]
add esp, 8
cmp byte [edx + 0x2d8c], 0
mov dword [edx + 0x2d90], 0
je 0x10019798
mov eax, dword [0x1025b460]
mov esi, dword [edx + 0x19e0]
mov dword [eax + 0x1d38], 7
mov ecx, dword [0x1025b460]
mov eax, dword [ecx + 0x6c]
test eax, eax
js 0x10019717
movss xmm2, dword [ecx + eax*4 + 0x458]
xorps xmm0, xmm0
ucomiss xmm2, xmm0
lahf
test ah, 0x44
jnp 0x1001970a
movss xmm3, dword [ecx + 0x8c]
comiss xmm2, xmm3
jbe 0x10019717
movss xmm4, dword [ecx + 0x90]
movaps xmm1, xmm2
subss xmm1, dword [ecx + 0x18]
comiss xmm1, xmm2
jb 0x100196d3
xor eax, eax
jmp 0x10019706
comiss xmm0, xmm4
jb 0x100196e2
xor eax, eax
comiss xmm3, xmm1
seta al
jmp 0x10019706
comiss xmm3, xmm1
jbe 0x100196ec
or edi, 0xffffffff
jmp 0x100196f8
subss xmm1, xmm3
divss xmm1, xmm4
cvttss2si edi, xmm1
subss xmm2, xmm3
divss xmm2, xmm4
cvttss2si eax, xmm2
sub eax, edi
test eax, eax
jle 0x10019717
mov byte [edx + 0x2d8c], 0
mov ecx, dword [0x1025b460]
movss xmm0, dword [ecx + 0x3f4]
ucomiss xmm0, dword [0x10168634]
lahf
test ah, 0x44
jp 0x10019743
test esi, esi
je 0x10019743
mov dword [edx + 0x2d90], esi
mov byte [edx + 0x2d8c], 0
mov ecx, dword [0x1025b460]
or dword [ecx + 0x1a34], 0x40
mov dword [ecx + 0x1a80], 0x3f19999a
call fcn.100101b0
push esi
push str.HoveredId:_0x_08X
call fcn.10040810
push str.Press_ESC_to_abort_picking.
call fcn.10040810
mov ecx, 0x15d0
test esi, esi
mov eax, 0x15c0
cmove eax, ecx
add eax, dword [0x1025b460]
push str.Click_to_break_in_debugger_
push eax
call fcn.10040830
push 0
call fcn.10011870
add esp, 0x18
mov eax, dword [0x1025b460]
push 0
push 0
push str.DebugDefault
or dword [eax + 0x1a34], 2
mov dword [eax + 0x1a54], 0x43c80000
mov dword [eax + 0x1a58], 0x43c80000
mov dword [eax + 0x1a3c], 4
call fcn.1000d330
add esp, 0xc
mov byte [ebx + 0x196d], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret