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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, dword [0x1008dcc0]
push esi
push edi
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
cmp byte [ebx], 0
mov dword [esp + 0x10], ebx
jne 0x1000cb85
push 0x1490
push str.C:UsersPCDesktopVisual_StudioVisual_StudioImguiimgui.cpp
push str.g.Initialized
call edi
add esp, 0xc
mov eax, dword [ebx + 0x4f1c]
cmp eax, dword [ebx + 0x4f18]
je 0x1000cb98
call fcn.1000c680
mov eax, dword [ebx + 0x4f18]
cmp dword [ebx + 0x4f20], eax
je 0x1000cfea
mov dword [ebx + 0x4f20], eax
mov dword [ebx + 0x10b4], 0
mov eax, dword [ebx + 0x6d90]
mov esi, dword [ebx + 0x6d98]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*4]
cmp esi, ebx
je 0x1000cbf1
mov edi, dword [esp + 0x10]
cmp dword [esi + 4], 4
jne 0x1000cbe4
mov eax, dword [esi + 0xc]
push esi
push edi
call eax
add esp, 8
add esi, 0x14
cmp esi, ebx
jne 0x1000cbd4
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
call fcn.1000c280
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 0x5a10]
mov eax, dword [ecx + 0x5a08]
lea eax, [ebx + eax*4]
mov dword [esp + 0x24], eax
cmp ebx, eax
je 0x1000cd29
cmp dword [0x1008dcc0], 0
mov esi, dword [ebx]
jne 0x1000cc34
push 0x10d1
push str.C:UsersPCDesktopVisual_StudioVisual_StudioImguiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call edi
add esp, 0xc
mov eax, dword [0x1008dcc0]
lea ecx, [esi + 0x48]
mov dword [esp + 0x1c], eax
lea eax, [esi + 0x78]
mov dword [esi + 0x70], ecx
mov dword [esi + 0x74], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x18], eax
test eax, eax
jns 0x1000cc70
cdq
xor ecx, ecx
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x18]
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [esi + 0x48]
call fcn.10020aa0
lea ecx, [esi + 0x48]
mov dword [ecx], 0
mov eax, dword [esi + 0x74]
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x1000cca2
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.10020aa0
mov eax, dword [esp + 0x14]
mov dword [eax], 0
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 + 0x58], ecx
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x60], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x5c], eax
mov eax, dword [ecx + 0x3c]
mov ecx, dword [ecx + 0x40]
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], esi
cmp dword [esi + 0x30], 0
je 0x1000cd12
push str.Background
xor edx, edx
mov ecx, esi
call fcn.1000a2c0
mov edx, dword [esi + 0x70]
lea ecx, [esi + 0x38]
add esp, 4
push eax
call fcn.1002d420
add esp, 4
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add ebx, 4
cmp ebx, dword [esp + 0x24]
jne 0x1000cc15
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x5bc8]
test eax, eax
je 0x1000cd4e
test dword [eax + 0xc], 0x2000
jne 0x1000cd4e
mov edi, dword [eax + 0x310]
mov ebx, dword [ecx + 0x5bd0]
mov dword [esp + 0x1c], edi
jmp 0x1000cd62
xor edi, edi
mov dword [esp + 0x1c], edi
test eax, eax
je 0x1000cd60
mov ebx, dword [ecx + 0x5bd0]
jmp 0x1000cd62
xor ebx, ebx
mov esi, dword [ecx + 0x4f58]
mov eax, dword [ecx + 0x4f50]
mov dword [esp + 0x20], ebx
lea eax, [esi + eax*4]
mov dword [esp + 0x24], eax
cmp esi, eax
je 0x1000cdbd
nop dword [eax]
mov ecx, dword [esi]
cmp byte [ecx + 0xb6], 0
je 0x1000cdb6
cmp byte [ecx + 0xbd], 0
jne 0x1000cdb6
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x1000cdb6
cmp ecx, edi
je 0x1000cdb6
cmp ecx, ebx
je 0x1000cdb6
shr edx, 0x19
and edx, 1
call fcn.1000be40
mov eax, dword [esp + 0x24]
add esi, 4
cmp esi, eax
jne 0x1000cd80
xor esi, esi
nop
mov ecx, dword [esp + esi*4 + 0x1c]
test ecx, ecx
je 0x1000cde8
cmp byte [ecx + 0xb6], 0
je 0x1000cde8
cmp byte [ecx + 0xbd], 0
jne 0x1000cde8
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.1000be40
inc esi
cmp esi, 2
jl 0x1000cdc0
mov ebx, dword [esp + 0x10]
cmp byte [ebx + 0x54], 0
je 0x1000ce22
mov ecx, dword [ebx + 0x5d34]
cmp ecx, 0xffffffff
je 0x1000ce22
push dword [ebx + 0x1e14]
movss xmm0, dword [ebx + 0x498c]
push dword [ebx + 0x1e10]
sub esp, 8
call fcn.100088d0
add esp, 0x10
mov dword [ebx + 0x10b0], 0
mov dword [ebx + 0x10ac], 0
mov ecx, dword [ebx + 0x5a10]
mov eax, dword [ebx + 0x5a08]
mov dword [esp + 0x18], ecx
lea eax, [ecx + eax*4]
mov dword [esp + 0x1c], eax
cmp ecx, eax
je 0x1000cfbd
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
mov ebx, dword [edx + 0x70]
mov eax, dword [edx + 0x74]
mov ecx, dword [ebx]
mov esi, dword [eax]
mov edi, dword [ebx + 4]
add esi, ecx
mov dword [esp + 0x24], ecx
cmp esi, edi
jle 0x1000ce9f
test edi, edi
je 0x1000ce83
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, edi
jmp 0x1000ce88
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, ebx
push eax
call fcn.10020aa0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov dword [ebx], esi
mov esi, dword [edx + 0x74]
mov eax, dword [esi]
test eax, eax
je 0x1000cee8
shl eax, 2
push eax
mov eax, dword [edx + 0x70]
push dword [esi + 8]
mov eax, dword [eax + 8]
lea eax, [eax + ecx*4]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 4]
add esp, 0xc
test ecx, ecx
jns 0x1000cee2
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.10020aa0
mov dword [esi], 0
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x34], 0
je 0x1000cf15
push str.Foreground
mov edx, 1
mov ecx, esi
call fcn.1000a2c0
mov edx, dword [esi + 0x70]
lea ecx, [esi + 0x38]
add esp, 4
push eax
call fcn.1002d420
add esp, 4
mov eax, dword [esi + 0x48]
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
cmp eax, dword [esi + 0x3c]
je 0x1000cf37
push 0x14c4
push str.C:UsersPCDesktopVisual_StudioVisual_StudioImguiimgui.cpp
push str.draw_data__CmdLists.Size__draw_data__CmdListsCount
call ebx
add esp, 0xc
mov edi, dword [esi + 0x50]
mov eax, dword [esi + 0x48]
lea eax, [edi + eax*4]
mov dword [esp + 0x24], eax
cmp edi, eax
je 0x1000cf92
mov esi, dword [edi]
mov eax, dword [esi]
test eax, eax
jle 0x1000cf85
mov edx, dword [esi + 8]
lea ecx, [eax + eax*4]
cmp dword [edx + ecx*8 - 0xc], 0
jne 0x1000cf85
cmp dword [edx + ecx*8 - 8], 0
jne 0x1000cf85
test eax, eax
jne 0x1000cf7c
push 0x77e
push str.C:UsersPCDesktopVisual_StudioVisual_StudioImguiimgui.h
push str.Size___0
call ebx
add esp, 0xc
mov eax, dword [esi]
dec eax
mov dword [esi], eax
test eax, eax
jg 0x1000cf50
add edi, 4
cmp edi, dword [esp + 0x24]
jne 0x1000cf48
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 0x44]
mov ecx, dword [esp + 0x18]
add ecx, 4
add dword [ebx + 0x10ac], eax
mov eax, dword [esi + 0x40]
add dword [ebx + 0x10b0], eax
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x1c]
jne 0x1000ce55
mov eax, dword [ebx + 0x6d90]
mov esi, dword [ebx + 0x6d98]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x1000cfea
cmp dword [esi + 4], 5
jne 0x1000cfe3
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x1000cfd3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret