Function at 0x10058510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x98
push ebx
mov ebx, dword [0x10093708]
push ebp
push esi
mov esi, dword [esp + 0xa8]
push edi
cmp byte [esi + 0x67], 0
je 0x10058566
movups xmm0, xmmword [ebx + 0x46c0]
push esi
movups xmmword [esp + 0x70], xmm0
movups xmm0, xmmword [ebx + 0x46d0]
movups xmmword [esp + 0x60], xmm0
call fcn.10056b10
movups xmm0, xmmword [esp + 0x70]
add esp, 4
movups xmmword [ebx + 0x46c0], xmm0
movups xmm0, xmmword [esp + 0x5c]
movups xmmword [ebx + 0x46d0], xmm0
mov eax, dword [ebx + 0x3e60]
mov dword [esp + 0x20], eax
cmp byte [eax + 0xaf], 0
jne 0x10058610
cmp dword [esp + 0xbc], 0
je 0x1005859f
push 0x1f98
push str.D:Projectm2extLibrariesimguiimgui_widgets.cpp
push str.docked_window__0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
test dword [esi + 0xc], 0x100000
push 0
je 0x100585c9
push 0
push dword [esp + 0xb8]
call fcn.100150e0
mov ebp, eax
push ebp
mov dword [esp + 0x48], ebp
call fcn.100179a0
add esp, 0x10
jmp 0x100585e6
mov eax, dword [0x10093708]
push dword [esp + 0xb4]
mov ecx, dword [eax + 0x3e60]
call fcn.10012e90
mov ebp, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x10058646
cmp byte [eax], 0
jne 0x1005861d
push 8
push 0
lea eax, [esp + 0x74]
xorps xmm0, xmm0
push ebp
push eax
movups xmmword [esp + 0x7c], xmm0
call fcn.100173c0
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x98
ret
mov edi, dword [esp + 0xb8]
test edi, 0x200000
je 0x1005864d
push 0x212d
push str.D:Projectm2extLibrariesimguiimgui_widgets.cpp
push str._p_open____flags__ImGuiTabItemFlags_Button_
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
jmp 0x1005864d
mov edi, dword [esp + 0xb8]
mov eax, edi
and eax, 0xc0
cmp al, 0xc0
jne 0x10058670
push 0x212e
push str.D:Projectm2extLibrariesimguiimgui_widgets.cpp
push str._flags___ImGuiTabItemFlags_Leading__ImGuiTabItemFlags_Trailing______ImGuiTabItemFlags_Leading__ImGuiTabItemFlags_Trailing_
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov eax, dword [esp + 0xb8]
test eax, 0x100000
je 0x1005868b
mov dword [esp + 0xb4], 0
jmp 0x100586a1
cmp dword [esp + 0xb4], 0
jne 0x100586a1
or eax, 0x100000
mov dword [esp + 0xb8], eax
push ebp
push esi
call fcn.10056a30
mov edi, eax
mov byte [esp + 0x18], 0
add esp, 8
test edi, edi
jne 0x100587d4
mov edi, dword [esi]
xorps xmm0, xmm0
mov ecx, dword [esi + 4]
mov dword [esp + 0x94], eax
or eax, 0xffffffff
movlpd qword [esp + 0x7c], xmm0
movlpd qword [esp + 0x8c], xmm0
mov dword [esp + 0x88], 0xffffffff
mov dword [esp + 0x84], 0xffffffff
mov dword [esp + 0x98], 0xbf800000
mov dword [esp + 0x9c], 0xffffffff
mov word [esp + 0xa2], ax
mov word [esp + 0xa0], ax
cmp edi, ecx
jne 0x10058770
inc edi
test ecx, ecx
je 0x1005872b
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x10058730
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x10058770
imul eax, edi, 0x2c
push eax
call fcn.10018210
mov edx, dword [esi + 8]
add esp, 4
mov dword [esp + 0x30], eax
test edx, edx
je 0x1005876a
imul ecx, dword [esi], 0x2c
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
push dword [esi + 8]
call fcn.10018240
mov eax, dword [esp + 0x40]
add esp, 0x10
mov dword [esi + 8], eax
mov dword [esi + 4], edi
imul eax, dword [esi], 0x2c
movups xmm0, xmmword [esp + 0x7c]
add eax, dword [esi + 8]
movups xmmword [eax], xmm0
movups xmm0, xmmword [esp + 0x8c]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [esp + 0x9c]
movq qword [eax + 0x20], xmm0
mov dword [eax + 0x28], 0
inc dword [esi]
cmp dword [esi], 0
jg 0x100587be
push 0x737
push str.D:Projectm2extLibrariesimguiimgui.h
push str.Size___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
imul ecx, dword [esi], 0x2c
mov edi, dword [esi + 8]
add edi, 0xffffffd4
mov byte [esp + 0x10], 1
add edi, ecx
mov dword [edi], ebp
mov byte [esi + 0x69], 1
mov ecx, dword [esi + 8]
cmp edi, ecx
jb 0x100587e4
imul eax, dword [esi], 0x2c
add eax, ecx
cmp edi, eax
jb 0x100587fc
push 0x750
push str.D:Projectm2extLibrariesimguiimgui.h
push 0x10079204
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov ecx, edi
mov eax, 0x2e8ba2e9
sub ecx, dword [esi + 8]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov word [esi + 0x6c], ax
mov eax, dword [esp + 0xb8]
and eax, 1
cmp dword [esp + 0xb4], 0
mov dword [esp + 0x18], eax
jne 0x1005883e
test eax, eax
jne 0x1005883e
xor al, al
mov dword [esp + 0x18], 0
jmp 0x10058840
mov al, 1
push eax
push dword [esp + 0xb4]
lea eax, [esp + 0x64]
push eax
call fcn.10058400
add esp, 0xc
mov dword [edi + 0x1c], 0xbf800000
test byte [ebx + 0x46c0], 1
je 0x10058874
movss xmm1, dword [ebx + 0x46c8]
movss dword [edi + 0x1c], xmm1
jmp 0x1005887a
movss xmm1, dword [esp + 0x5c]
cmp byte [esp + 0x10], 0
je 0x10058892
movss xmm0, dword [0x10079280]
maxss xmm0, xmm1
movss dword [edi + 0x14], xmm0
movss dword [edi + 0x18], xmm1
mov ax, word [esi + 0x6a]
mov word [edi + 0x24], ax
mov eax, dword [esi + 0x24]
inc word [esi + 0x6a]
inc eax
mov edx, dword [ebx + 0x3de0]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0xc]
shr eax, 0x15
and eax, 0xffffff01
mov dword [esp + 0x3c], edx
mov dword [esp + 0x50], eax
mov eax, dword [edi + 8]
inc eax
cmp dword [esp + 0x18], 0
mov dword [esp + 0x2c], eax
lea eax, [edi + 4]
je 0x100588e6
test byte [eax], 1
mov dword [esp + 0x34], eax
jne 0x100588e6
mov byte [esp + 0x11], 1
jmp 0x100588ef
mov byte [esp + 0x11], 0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xb8]
mov ecx, eax
shr ecx, 0x15
and ecx, 0xffffff01
mov dword [edi + 8], edx
cmp dword [esp + 0xbc], 0
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
je 0x10058932
push 0x2157
push str.D:Projectm2extLibrariesimguiimgui_widgets.cpp
push str.docked_window__0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
jmp 0x10058971
mov ecx, dword [esi + 0x84]
lea eax, [ecx - 1]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [edi + 0x20], ecx
mov ecx, dword [esp + 0xb0]
mov edx, ecx
lea eax, [edx + 1]
mov dword [esp + 0x30], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x10058954
sub edx, dword [esp + 0x30]
lea eax, [ecx + 1]
add eax, edx
push eax
push ecx
lea ecx, [esi + 0x84]
call fcn.10027f10
cmp byte [esp + 0x24], 0
mov edx, dword [esp + 0x3c]
jne 0x100589b3
cmp dword [esp + 0x2c], edx
jge 0x1005899f
test byte [esi + 0xc], 2
je 0x1005899f
cmp dword [esi + 0x18], 0
jne 0x1005899f
cmp dword [esp + 0x28], edx
jge 0x1005899a
cmp dword [esi + 0x14], 0
jne 0x1005899f
mov eax, dword [edi]
mov dword [esi + 0x18], eax
test byte [esp + 0xb8], 2
je 0x100589b3
cmp dword [esi + 0x14], ebp
je 0x100589b3
mov eax, dword [edi]
mov dword [esi + 0x18], eax
cmp dword [esi + 0x1c], ebp
sete byte [esp + 0x18]
jne 0x100589ca
lea ecx, [esi + 0x14]
mov byte [esi + 0x68], 1
mov dword [esp + 0x14], ecx
jmp 0x100589ff
cmp dword [esi + 0x14], 0
lea eax, [esi + 0x14]
mov ecx, eax
mov dword [esp + 0x14], ecx
jne 0x100589ff
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x28], edx
jge 0x100589ff
cmp dword [esi], 1
mov dword [esp + 0x14], ecx
jne 0x100589ff
test byte [esi + 0xc], 2
mov dword [esp + 0x14], ecx
jne 0x100589ff
mov byte [esp + 0x18], 1
mov dword [esp + 0x14], eax
cmp dword [esp + 0x2c], edx
jge 0x10058a44
cmp dword [esp + 0x28], edx
jge 0x10058a12
cmp byte [esp + 0x10], 0
je 0x10058a44
push 8
push 0
lea eax, [esp + 0x74]
xorps xmm0, xmm0
push ebp
push eax
movups xmmword [esp + 0x7c], xmm0
call fcn.100173c0
add esp, 0x10
cmp byte [esp + 0x24], 0
je 0x10058c10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x98
ret
cmp dword [ecx], ebp
jne 0x10058a51
mov eax, dword [ebx + 0x3de0]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x20]
lea ecx, [esi + 0x28]
movss xmm1, dword [edi + 0x10]
movss xmm0, dword [eax + 0xf0]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [eax + 0xf4]
mov eax, dword [esp + 0x34]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [edi + 0x14]
mov edx, dword [eax]
and edx, 0xc0
jne 0x10058a9c
subss xmm1, dword [esi + 0x48]
cvttss2si eax, xmm1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mov eax, 4
addss xmm1, dword [ecx]
movss xmm3, dword [eax + ecx]
mov eax, dword [esp + 0x20]
movaps xmm2, xmm1
addss xmm2, xmm0
addss xmm3, dword [0x100803f8]
movss dword [eax + 0xf0], xmm1
movss dword [eax + 0xf4], xmm3
movaps xmm4, xmm3
movss dword [esp + 0x40], xmm1
movss dword [esp + 0x44], xmm3
movss dword [esp + 0x48], xmm2
addss xmm4, dword [esp + 0x60]
movss dword [esp + 0x4c], xmm4
test edx, edx
jne 0x10058b62
movss xmm5, dword [esi + 0x58]
comiss xmm5, xmm1
ja 0x10058b02
comiss xmm2, dword [esi + 0x5c]
jbe 0x10058b62
subss xmm3, dword [0x10079280]
movss xmm0, dword [esi + 0x5c]
maxss xmm1, xmm5
push 1
lea eax, [esp + 0x60]
mov byte [esp + 0x14], 1
push eax
lea eax, [esp + 0x5c]
movss dword [esp + 0x64], xmm0
push eax
movss dword [esp + 0x6c], xmm4
movss dword [esp + 0x60], xmm1
movss dword [esp + 0x64], xmm3
call fcn.1001df10
movss xmm4, dword [esp + 0x58]
add esp, 0xc
movss xmm2, dword [esp + 0x48]
movss xmm3, dword [esp + 0x44]
movss xmm1, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
jmp 0x10058b67
mov byte [esp + 0x10], 0
movss xmm0, dword [eax + 0x108]
subss xmm2, xmm1
movss dword [esp + 0x54], xmm0
subss xmm4, xmm3
movss xmm0, dword [eax + 0x10c]
lea eax, [esp + 0x6c]
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [ebx + 0x37c8]
push ecx
movss dword [esp], xmm0
push eax
movss dword [esp + 0x74], xmm2
movss dword [esp + 0x78], xmm4
call fcn.10017830
mov eax, dword [esp + 0x28]
movss xmm0, dword [esp + 0x5c]
push 0
push 0
movss dword [eax + 0x108], xmm0
movss xmm0, dword [esp + 0x6c]
movss dword [eax + 0x10c], xmm0
lea eax, [esp + 0x50]
push ebp
push eax
call fcn.100173c0
add esp, 0x18
test al, al
jne 0x10058c1f
cmp byte [esp + 0x10], al
je 0x10058bf0
call fcn.1001d940
mov eax, dword [esp + 0x20]
movss xmm0, dword [esp + 0x28]
movss dword [eax + 0xf0], xmm0
movss xmm0, dword [esp + 0x30]
movss dword [eax + 0xf4], xmm0
mov al, byte [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov eax, dword [esp + 0x24]
mov edx, 0x1000
movzx ecx, al
mov eax, 0x1200
inc ecx
shl ecx, 4
cmp byte [ebx + 0x49d4], 0
cmove eax, edx
or ecx, eax
lea eax, [esp + 0x12]
push ecx
push eax
lea eax, [esp + 0x1b]
push eax
lea eax, [esp + 0x4c]
push ebp
push eax
call fcn.100483f0
add esp, 0x14
mov byte [esp + 0x1f], al
test al, al
je 0x10058c6d
cmp byte [esp + 0x24], 0
jne 0x10058c6d
mov ecx, dword [edi]
mov dword [esi + 0x18], ecx
cmp byte [esp + 0x12], 0
je 0x10058cec
mov edx, dword [esp + 0x3c]
cmp dword [esp + 0x2c], edx
jl 0x10058cec
push ecx
mov dword [esp], 0xbf800000
push 0
call fcn.10016d50
add esp, 8
test al, al
je 0x10058cec
cmp byte [ebx + 0x49d4], 0
jne 0x10058cec
test byte [esi + 0xc], 1
je 0x10058cec
movss xmm1, dword [ebx + 0xb4]
xorps xmm2, xmm2
comiss xmm2, xmm1
jbe 0x10058cc2
movss xmm0, dword [esp + 0x40]
comiss xmm0, dword [ebx + 0xdbc]
ja 0x10058cd6
comiss xmm1, xmm2
jbe 0x10058cec
movss xmm0, dword [ebx + 0xdbc]
comiss xmm0, dword [esp + 0x48]
jbe 0x10058cec
push dword [ebx + 0xdc0]
push dword [ebx + 0xdbc]
push edi
push esi
call fcn.10057b20
add esp, 0x10
cmp byte [esp + 0x12], 0
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x264]
mov dword [esp + 0x2c], eax
jne 0x10058d33
cmp byte [esp + 0x13], 0
jne 0x10058d33
cmp byte [esp + 0x18], 0
mov ecx, dword [esp + 0x50]
je 0x10058d22
movzx eax, cl
xor eax, 1
lea eax, [eax*2 + 0x23]
jmp 0x10058d38
test cl, cl
mov eax, 0x24
mov edx, 0x21
cmovne eax, edx
jmp 0x10058d38
mov eax, 0x22
push ecx
mov dword [esp], 0x3f800000
push eax
call fcn.10012b50
push eax
push dword [esp + 0xc4]
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x40]
call fcn.10058140
push 1
lea eax, [esp + 0x5c]
push ebp
push eax
call fcn.1001f800
push 0x20
call fcn.10016630
add esp, 0x28
test al, al
je 0x10058da1
push 0
push 1
call fcn.10016b00
add esp, 8
test al, al
jne 0x10058d95
push 1
call fcn.10016f10
add esp, 4
test al, al
je 0x10058da1
cmp byte [esp + 0x24], 0
jne 0x10058da1
mov eax, dword [edi]
mov dword [esi + 0x18], eax
mov ebp, dword [esp + 0xb8]
mov eax, dword [esi + 0xc]
or ebp, 4
test al, 8
cmove ebp, dword [esp + 0xb8]
cmp dword [esp + 0xb4], 0
je 0x10058dd9
push dword [esp + 0x38]
push 0
push str.CLOSE
call fcn.10013050
add esp, 0xc
mov ecx, eax
jmp 0x10058ddb
xor ecx, ecx
mov eax, ebp
and eax, 0xfffffffe
cmp byte [esp + 0x11], 0
cmovne ebp, eax
lea eax, [esp + 0x11]
push eax
lea eax, [esp + 0x17]
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x4c]
push ecx
push dword [esp + 0x48]
push dword [esp + 0xc4]
push dword [esi + 0x78]
push dword [esi + 0x74]
push ebp
push eax
push dword [esp + 0x54]
call fcn.10058f30
add esp, 0x2c
cmp byte [esp + 0x13], 0
je 0x10058e72
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x10058e72
mov byte [eax], 0
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, 0x200000
jne 0x10058e72
mov ebp, dword [esp + 0x14]
test al, 1
jne 0x10058e66
mov byte [edi + 0x28], 1
mov eax, dword [esi + 0x1c]
cmp eax, dword [edi]
jne 0x10058e76
mov dword [edi + 8], 0xffffffff
mov dword [esi + 0x18], 0
mov dword [ebp], 0
jmp 0x10058e76
mov eax, dword [edi]
cmp dword [esi + 0x1c], eax
je 0x10058e76
mov dword [esi + 0x18], eax
jmp 0x10058e76
mov ebp, dword [esp + 0x14]
cmp byte [esp + 0x10], 0
je 0x10058e82
call fcn.1001d940
cmp byte [esp + 0x11], 0
mov eax, dword [esp + 0x20]
movss xmm0, dword [esp + 0x28]
movss dword [eax + 0xf0], xmm0
movss xmm0, dword [esp + 0x30]
movss dword [eax + 0xf4], xmm0
je 0x10058eee
mov eax, dword [esp + 0x38]
cmp dword [ebx + 0x3e98], eax
jne 0x10058eee
cmp byte [esp + 0x12], 0
jne 0x10058eee
test byte [esi + 0xc], 0x20
jne 0x10058eee
mov eax, dword [esp + 0x34]
test byte [eax], 0x10
jne 0x10058eee
mov ebx, dword [esp + 0xb0]
push ebx
push 0
push ebx
call fcn.10012250
add esp, 8
sub eax, ebx
push eax
push str._.s
call fcn.10022260
add esp, 0xc
cmp byte [esp + 0x24], 0
je 0x10058c10
mov eax, dword [ebp]
cmp eax, dword [edi]
jne 0x10058f18
push 0x21eb
push str.D:Projectm2extLibrariesimguiimgui_widgets.cpp
push str._is_tab_button____tab_bar__SelectedTabId__tab__ID__is_tab_button_
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov al, byte [esp + 0x1f]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret