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

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [0x10093758]
mov dword [esp + 8], ebx
cmp byte [ebx], 0
jne 0x1001dadb
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 0x1001daee
call fcn.1000ff90
mov eax, dword [ebx + 0x3de0]
cmp dword [ebx + 0x3de8], eax
je 0x1001dee9
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 0x1001db3f
cmp dword [esi + 4], 4
jne 0x1001db38
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x1001db28
push ebp
call fcn.1001e1a0
mov edi, dword [ebx + 0x47f4]
mov eax, dword [ebx + 0x47ec]
lea eax, [edi + eax*4]
mov dword [esp + 0x10], eax
cmp edi, eax
je 0x1001dc17
mov ebp, dword [0x10093758]
mov esi, dword [edi]
test ebp, ebp
jne 0x1001db8a
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 [0x10093758]
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.10027f90
mov ecx, dword [esi + 0x74]
push 0
call fcn.10027f90
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 0x1001dc0a
push str.Background
push 0
push esi
call fcn.10013170
push eax
push dword [esi + 0x70]
lea eax, [esi + 0x38]
push eax
call fcn.10028bb0
add esp, 0x18
add edi, 4
cmp edi, dword [esp + 0x10]
jne 0x1001db60
mov eax, dword [ebx + 0x49a8]
test eax, eax
je 0x1001dc3c
test dword [eax + 0xc], 0x2000
jne 0x1001dc3c
mov edi, dword [eax + 0x300]
mov ebp, dword [ebx + 0x49b0]
mov dword [esp + 0x18], edi
jmp 0x1001dc50
xor edi, edi
mov dword [esp + 0x18], edi
test eax, eax
je 0x1001dc4e
mov ebp, dword [ebx + 0x49b0]
jmp 0x1001dc50
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 0x1001dcb2
mov ebx, eax
nop dword [eax]
mov eax, dword [esi]
cmp byte [eax + 0xaa], 0
je 0x1001dca7
cmp byte [eax + 0xb1], 0
jne 0x1001dca7
mov ecx, dword [eax + 0xc]
test ecx, 0x1000000
jne 0x1001dca7
cmp eax, edi
je 0x1001dca7
cmp eax, ebp
je 0x1001dca7
shr ecx, 0x19
and ecx, 1
push ecx
push eax
call fcn.10008c30
add esp, 8
add esi, 4
cmp esi, ebx
jne 0x1001dc70
mov ebx, dword [esp + 0x14]
xor esi, esi
mov ecx, dword [esp + esi*4 + 0x18]
test ecx, ecx
je 0x1001dce1
cmp byte [ecx + 0xaa], 0
je 0x1001dce1
cmp byte [ecx + 0xb1], 0
jne 0x1001dce1
mov eax, dword [ecx + 0xc]
shr eax, 0x19
and eax, 1
push eax
push ecx
call fcn.10008c30
add esp, 8
inc esi
cmp esi, 2
jl 0x1001dcb4
cmp byte [ebx + 0x44], 0
je 0x1001dd27
mov eax, dword [ebx + 0x4b14]
cmp eax, 0xffffffff
je 0x1001dd27
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.1001e780
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 0x1001deb5
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.10027f90
mov esi, dword [edi + 0x74]
mov eax, dword [esi]
test eax, eax
je 0x1001de30
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 0x1001de2a
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 0x1001de2a
mov eax, dword [0x10093758]
test eax, eax
je 0x1001ddc8
inc dword [eax + 0xb0]
push dword [0x10093760]
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 0x1001de24
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 0x1001de10
mov eax, dword [0x10093758]
test eax, eax
je 0x1001de10
dec dword [eax + 0xb0]
push dword [0x10093760]
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 0x1001de53
push str.Foreground
push 1
push edi
call fcn.10013170
push eax
push dword [edi + 0x70]
lea eax, [edi + 0x38]
push eax
call fcn.10028bb0
add esp, 0x18
mov eax, dword [edi + 0x48]
cmp eax, dword [edi + 0x3c]
je 0x1001de73
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 0x1001de8e
mov ecx, dword [esi]
call fcn.10032190
add esi, 4
cmp esi, ebp
jne 0x1001de80
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 0x1001dd60
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 0x1001dee7
nop dword [eax]
cmp dword [esi + 4], 5
jne 0x1001dee0
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x1001ded0
pop edi
pop esi
pop ebx
add esp, 0x10
ret