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

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [0x10093708]
mov dword [esp + 8], ebx
cmp byte [ebx], 0
jne 0x1001e80b
push 0x13e1
push str.D:Projectm2extLibrariesimguiimgui.cpp
push str.g.Initialized
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov eax, dword [ebx + 0x3de4]
cmp eax, dword [ebx + 0x3de0]
je 0x1001e81e
call fcn.10010be0
mov eax, dword [ebx + 0x3de0]
cmp dword [ebx + 0x3de8], eax
je 0x1001ec19
mov dword [ebx + 0x3de8], eax
mov dword [ebx + 0xa8], 0
mov eax, dword [ebx + 0x5b58]
push esi
mov esi, dword [ebx + 0x5b60]
push edi
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x1001e86f
cmp dword [esi + 4], 4
jne 0x1001e868
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x1001e858
push ebp
call fcn.1001eed0
mov edi, dword [ebx + 0x47f4]
mov eax, dword [ebx + 0x47ec]
lea eax, [edi + eax*4]
mov dword [esp + 0x10], eax
cmp edi, eax
je 0x1001e947
mov ebp, dword [0x10093708]
mov esi, dword [edi]
test ebp, ebp
jne 0x1001e8ba
push 0x10a0
push str.D:Projectm2extLibrariesimguiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov ebp, dword [0x10093708]
add esp, 0xc
lea ecx, [esi + 0x48]
lea eax, [esi + 0x78]
mov dword [esi + 0x70], ecx
push 0
mov dword [esi + 0x74], eax
call fcn.10028cd0
mov ecx, dword [esi + 0x74]
push 0
call fcn.10028cd0
mov byte [esi + 0x38], 1
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], ecx
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x40]
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], esi
cmp dword [esi + 0x30], 0
je 0x1001e93a
push str.Background
push 0
push esi
call fcn.10013e40
push eax
push dword [esi + 0x70]
lea eax, [esi + 0x38]
push eax
call fcn.100298f0
add esp, 0x18
add edi, 4
cmp edi, dword [esp + 0x10]
jne 0x1001e890
mov eax, dword [ebx + 0x49a8]
test eax, eax
je 0x1001e96c
test dword [eax + 0xc], 0x2000
jne 0x1001e96c
mov edi, dword [eax + 0x300]
mov ebp, dword [ebx + 0x49b0]
mov dword [esp + 0x18], edi
jmp 0x1001e980
xor edi, edi
mov dword [esp + 0x18], edi
test eax, eax
je 0x1001e97e
mov ebp, dword [ebx + 0x49b0]
jmp 0x1001e980
xor ebp, ebp
mov esi, dword [ebx + 0x3e20]
mov eax, dword [ebx + 0x3e18]
mov dword [esp + 0x1c], ebp
lea eax, [esi + eax*4]
cmp esi, eax
je 0x1001e9e2
mov ebx, eax
nop dword [eax]
mov eax, dword [esi]
cmp byte [eax + 0xaa], 0
je 0x1001e9d7
cmp byte [eax + 0xb1], 0
jne 0x1001e9d7
mov ecx, dword [eax + 0xc]
test ecx, 0x1000000
jne 0x1001e9d7
cmp eax, edi
je 0x1001e9d7
cmp eax, ebp
je 0x1001e9d7
shr ecx, 0x19
and ecx, 1
push ecx
push eax
call fcn.100096f0
add esp, 8
add esi, 4
cmp esi, ebx
jne 0x1001e9a0
mov ebx, dword [esp + 0x14]
xor esi, esi
mov ecx, dword [esp + esi*4 + 0x18]
test ecx, ecx
je 0x1001ea11
cmp byte [ecx + 0xaa], 0
je 0x1001ea11
cmp byte [ecx + 0xb1], 0
jne 0x1001ea11
mov eax, dword [ecx + 0xc]
shr eax, 0x19
and eax, 1
push eax
push ecx
call fcn.100096f0
add esp, 8
inc esi
cmp esi, 2
jl 0x1001e9e4
cmp byte [ebx + 0x44], 0
je 0x1001ea57
mov eax, dword [ebx + 0x4b14]
cmp eax, 0xffffffff
je 0x1001ea57
movss xmm0, dword [ebx + 0x3854]
push 0x30000000
push 0xff000000
push 0xffffffffffffffff
push eax
push ecx
movss dword [esp], xmm0
push dword [ebx + 0xdc0]
push dword [ebx + 0xdbc]
call fcn.1001f4b0
add esp, 0x1c
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa0], 0
mov ecx, dword [ebx + 0x47f4]
mov eax, dword [ebx + 0x47ec]
mov dword [esp + 0x10], ecx
lea eax, [ecx + eax*4]
mov dword [esp + 0x18], eax
cmp ecx, eax
je 0x1001ebe5
nop word [eax + eax]
mov edi, dword [ecx]
mov eax, dword [edi + 0x74]
mov ecx, dword [edi + 0x70]
mov eax, dword [eax]
mov ebp, dword [ecx]
add eax, ebp
push eax
call fcn.10028cd0
mov esi, dword [edi + 0x74]
mov eax, dword [esi]
test eax, eax
je 0x1001eb60
shl eax, 2
push eax
mov eax, dword [edi + 0x70]
push dword [esi + 8]
mov eax, dword [eax + 8]
lea eax, [eax + ebp*4]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 4]
add esp, 0xc
test ecx, ecx
jns 0x1001eb5a
mov eax, ecx
xor ebp, ebp
cdq
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
cmovg ebp, eax
cmp ebp, ecx
jle 0x1001eb5a
mov eax, dword [0x10093708]
test eax, eax
je 0x1001eaf8
inc dword [eax + 0xb0]
push dword [0x10093710]
lea eax, [ebp*4]
push eax
call dword [0x1009100c]
mov edx, dword [esi + 8]
add esp, 8
mov dword [esp + 0x14], eax
test edx, edx
je 0x1001eb54
mov ecx, dword [esi]
shl ecx, 2
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 8]
add esp, 0xc
test ecx, ecx
je 0x1001eb40
mov eax, dword [0x10093708]
test eax, eax
je 0x1001eb40
dec dword [eax + 0xb0]
push dword [0x10093710]
push ecx
call dword [0x10091010]
mov eax, dword [esp + 0x1c]
add esp, 8
mov dword [esi + 8], eax
mov dword [esi + 4], ebp
mov dword [esi], 0
cmp dword [edi + 0x34], 0
je 0x1001eb83
push str.Foreground
push 1
push edi
call fcn.10013e40
push eax
push dword [edi + 0x70]
lea eax, [edi + 0x38]
push eax
call fcn.100298f0
add esp, 0x18
mov eax, dword [edi + 0x48]
cmp eax, dword [edi + 0x3c]
je 0x1001eba3
push 0x1415
push str.D:Projectm2extLibrariesimguiimgui.cpp
push str.draw_data__CmdLists.Size__draw_data__CmdListsCount
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov esi, dword [edi + 0x50]
mov eax, dword [edi + 0x48]
lea ebp, [esi + eax*4]
cmp esi, ebp
je 0x1001ebbe
mov ecx, dword [esi]
call fcn.10032ea0
add esi, 4
cmp esi, ebp
jne 0x1001ebb0
mov eax, dword [edi + 0x44]
mov ecx, dword [esp + 0x10]
add dword [ebx + 0xa0], eax
add ecx, 4
mov eax, dword [edi + 0x40]
add dword [ebx + 0xa4], eax
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x18]
jne 0x1001ea90
mov eax, dword [ebx + 0x5b58]
mov esi, dword [ebx + 0x5b60]
pop ebp
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x1001ec17
nop dword [eax]
cmp dword [esi + 4], 5
jne 0x1001ec10
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x1001ec00
pop edi
pop esi
pop ebx
add esp, 0x10
ret