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

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [0x1008df28]
mov dword [esp + 8], ebx
cmp byte [ebx], 0
jne 0x1001c0fb
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 0x1001c10e
call fcn.1000e5c0
mov eax, dword [ebx + 0x3de0]
cmp dword [ebx + 0x3de8], eax
je 0x1001c509
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 0x1001c15f
cmp dword [esi + 4], 4
jne 0x1001c158
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x1001c148
push ebp
call fcn.1001c7c0
mov edi, dword [ebx + 0x47f4]
mov eax, dword [ebx + 0x47ec]
lea eax, [edi + eax*4]
mov dword [esp + 0x10], eax
cmp edi, eax
je 0x1001c237
mov ebp, dword [0x1008df28]
mov esi, dword [edi]
test ebp, ebp
jne 0x1001c1aa
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 [0x1008df28]
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.100265c0
mov ecx, dword [esi + 0x74]
push 0
call fcn.100265c0
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 0x1001c22a
push str.Background
push 0
push esi
call fcn.100117a0
push eax
push dword [esi + 0x70]
lea eax, [esi + 0x38]
push eax
call fcn.100271e0
add esp, 0x18
add edi, 4
cmp edi, dword [esp + 0x10]
jne 0x1001c180
mov eax, dword [ebx + 0x49a8]
test eax, eax
je 0x1001c25c
test dword [eax + 0xc], 0x2000
jne 0x1001c25c
mov edi, dword [eax + 0x300]
mov ebp, dword [ebx + 0x49b0]
mov dword [esp + 0x18], edi
jmp 0x1001c270
xor edi, edi
mov dword [esp + 0x18], edi
test eax, eax
je 0x1001c26e
mov ebp, dword [ebx + 0x49b0]
jmp 0x1001c270
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 0x1001c2d2
mov ebx, eax
nop dword [eax]
mov eax, dword [esi]
cmp byte [eax + 0xaa], 0
je 0x1001c2c7
cmp byte [eax + 0xb1], 0
jne 0x1001c2c7
mov ecx, dword [eax + 0xc]
test ecx, 0x1000000
jne 0x1001c2c7
cmp eax, edi
je 0x1001c2c7
cmp eax, ebp
je 0x1001c2c7
shr ecx, 0x19
and ecx, 1
push ecx
push eax
call fcn.10007260
add esp, 8
add esi, 4
cmp esi, ebx
jne 0x1001c290
mov ebx, dword [esp + 0x14]
xor esi, esi
mov ecx, dword [esp + esi*4 + 0x18]
test ecx, ecx
je 0x1001c301
cmp byte [ecx + 0xaa], 0
je 0x1001c301
cmp byte [ecx + 0xb1], 0
jne 0x1001c301
mov eax, dword [ecx + 0xc]
shr eax, 0x19
and eax, 1
push eax
push ecx
call fcn.10007260
add esp, 8
inc esi
cmp esi, 2
jl 0x1001c2d4
cmp byte [ebx + 0x44], 0
je 0x1001c347
mov eax, dword [ebx + 0x4b14]
cmp eax, 0xffffffff
je 0x1001c347
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.1001cda0
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 0x1001c4d5
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.100265c0
mov esi, dword [edi + 0x74]
mov eax, dword [esi]
test eax, eax
je 0x1001c450
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 0x1001c44a
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 0x1001c44a
mov eax, dword [0x1008df28]
test eax, eax
je 0x1001c3e8
inc dword [eax + 0xb0]
push dword [0x1008df30]
lea eax, [ebp*4]
push eax
call dword [0x1008d00c]
mov edx, dword [esi + 8]
add esp, 8
mov dword [esp + 0x14], eax
test edx, edx
je 0x1001c444
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 0x1001c430
mov eax, dword [0x1008df28]
test eax, eax
je 0x1001c430
dec dword [eax + 0xb0]
push dword [0x1008df30]
push ecx
call dword [0x1008d010]
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 0x1001c473
push str.Foreground
push 1
push edi
call fcn.100117a0
push eax
push dword [edi + 0x70]
lea eax, [edi + 0x38]
push eax
call fcn.100271e0
add esp, 0x18
mov eax, dword [edi + 0x48]
cmp eax, dword [edi + 0x3c]
je 0x1001c493
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 0x1001c4ae
mov ecx, dword [esi]
call fcn.10030790
add esi, 4
cmp esi, ebp
jne 0x1001c4a0
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 0x1001c380
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 0x1001c507
nop dword [eax]
cmp dword [esi + 4], 5
jne 0x1001c500
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x1001c4f0
pop edi
pop esi
pop ebx
add esp, 0x10
ret