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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, dword [0x4fb818]
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 + 0x24], ebx
jne 0x40a005
push 0x1236
push str.C:UsersokDesktoppasetuneimgui.cpp
push str.g.Initialized
call edi
add esp, 0xc
mov eax, dword [ebx + 0x3ddc]
cmp eax, dword [ebx + 0x3dd8]
je 0x40a018
call fcn.00409b50
mov eax, dword [ebx + 0x3de0]
mov edx, 4
mov dword [esp + 0x14], eax
mov ecx, ebx
mov eax, dword [ebx + 0x3dd8]
mov dword [esp + 0x18], eax
mov dword [ebx + 0x3de0], eax
mov dword [ebx + 0xac], 0
call fcn.004061c0
mov eax, dword [ebx + 0x47cc]
xor esi, esi
mov dword [esp + 0xc], esi
test eax, eax
je 0x40a0e8
nop dword [eax]
test esi, esi
js 0x40a068
cmp esi, eax
jl 0x40a07c
push 0x715
push str.C:UsersokDesktoppasetuneimgui.h
push str.i___0__i___Size
call edi
add esp, 0xc
mov eax, dword [ebx + 0x47d4]
mov edi, 2
mov eax, dword [eax + esi*4]
mov dword [esp + 0x10], eax
add eax, 0x64
mov dword [esp + 0x1c], eax
mov esi, eax
push 0
mov ecx, esi
call fcn.0041b900
add esi, 0xc
sub edi, 1
jne 0x40a097
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x30], edi
je 0x40a0cb
push str.Background
xor edx, edx
call fcn.00407280
mov ecx, dword [esp + 0x20]
add esp, 4
mov edx, eax
call fcn.00409210
mov esi, dword [esp + 0xc]
mov eax, dword [ebx + 0x47cc]
inc esi
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov dword [esp + 0xc], esi
cmp esi, eax
jne 0x40a060
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x18]
je 0x40a0f7
call fcn.00409760
mov eax, dword [ebx + 0x492c]
test eax, eax
je 0x40a120
test dword [eax + 0xc], 0x2000
jne 0x40a120
mov ecx, dword [eax + 0x300]
mov eax, dword [ebx + 0x4934]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], ecx
jmp 0x40a138
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x40a136
mov eax, dword [ebx + 0x4934]
jmp 0x40a138
xor eax, eax
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x3e10]
test eax, eax
je 0x40a1b4
nop dword [eax]
test esi, esi
js 0x40a158
cmp esi, eax
jl 0x40a16c
push 0x715
push str.C:UsersokDesktoppasetuneimgui.h
push str.i___0__i___Size
call edi
add esp, 0xc
mov eax, dword [ebx + 0x3e18]
mov ecx, dword [eax + esi*4]
cmp byte [ecx + 0xaa], 0
je 0x40a1a9
cmp byte [ecx + 0xb1], 0
jne 0x40a1a9
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x40a1a9
cmp ecx, dword [esp + 0xc]
je 0x40a1a9
cmp ecx, dword [esp + 0x10]
je 0x40a1a9
shr edx, 0x19
and edx, 1
call fcn.00409310
mov eax, dword [ebx + 0x3e10]
inc esi
cmp esi, eax
jne 0x40a150
xor esi, esi
mov ecx, dword [esp + esi*4 + 0x1c]
test ecx, ecx
je 0x40a1de
cmp byte [ecx + 0xaa], 0
je 0x40a1de
cmp byte [ecx + 0xb1], 0
jne 0x40a1de
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.00409310
inc esi
cmp esi, 2
jl 0x40a1b6
cmp byte [ebx + 0x60], 0
je 0x40a21e
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x18]
je 0x40a21e
mov ecx, dword [ebx + 0x4958]
cmp ecx, 0xffffffff
je 0x40a21e
push dword [ebx + 0xdc4]
movss xmm0, dword [ebx + 0x3854]
push dword [ebx + 0xdc0]
sub esp, 8
call fcn.00405020
add esp, 0x10
mov eax, dword [ebx + 0x47cc]
xor esi, esi
mov dword [ebx + 0xa8], 0
mov dword [ebx + 0xa4], 0
mov dword [esp + 0x14], esi
test eax, eax
jle 0x40a3fa
test esi, esi
js 0x40a24e
cmp esi, eax
jl 0x40a262
push 0x715
push str.C:UsersokDesktoppasetuneimgui.h
push str.i___0__i___Size
call edi
add esp, 0xc
mov eax, dword [ebx + 0x47d4]
mov edi, dword [eax + esi*4]
mov ecx, dword [edi + 0x64]
mov eax, dword [edi + 0x70]
add eax, ecx
mov dword [esp + 0x18], ecx
push eax
lea ecx, [edi + 0x64]
call fcn.0041b900
mov eax, dword [edi + 0x70]
test eax, eax
je 0x40a2f5
jg 0x40a2a1
push 0x715
push str.C:UsersokDesktoppasetuneimgui.h
push str.i___0__i___Size
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov eax, dword [edi + 0x78]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
test eax, eax
js 0x40a2b5
cmp eax, dword [edi + 0x64]
jl 0x40a2cd
push 0x715
push str.C:UsersokDesktoppasetuneimgui.h
push str.i___0__i___Size
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov eax, dword [edi + 0x70]
mov ecx, dword [esp + 0x18]
shl eax, 2
push eax
mov eax, dword [edi + 0x6c]
push dword [esp + 0x20]
lea eax, [eax + ecx*4]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [edi + 0x70]
push 0
call fcn.0041b900
cmp dword [edi + 0x34], 0
je 0x40a319
push str.Foreground
mov edx, 1
mov ecx, edi
call fcn.00407280
add esp, 4
lea ecx, [edi + 0x64]
mov edx, eax
call fcn.00409210
mov edx, dword [0x4fb818]
test edx, edx
jne 0x40a341
push 0xf19
push str.C:UsersokDesktoppasetuneimgui.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 edx, dword [0x4fb818]
add esp, 0xc
mov byte [edi + 0x38], 1
cmp dword [edi + 0x64], 0
jle 0x40a350
mov eax, dword [edi + 0x6c]
jmp 0x40a352
xor eax, eax
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x64]
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov dword [edi + 0x50], ecx
mov dword [edi + 0x4c], eax
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x58], ecx
mov dword [edi + 0x54], eax
mov ecx, dword [edx + 0x5c]
mov eax, dword [edx + 0x58]
xor edx, edx
mov dword [edi + 0x60], ecx
xor ecx, ecx
mov dword [edi + 0x5c], eax
mov dword [esp + 0x18], ecx
cmp dword [edi + 0x64], ecx
jle 0x40a3ce
nop word [eax + eax]
mov eax, dword [edi + 0x6c]
mov esi, dword [eax + ecx*4]
mov ecx, esi
call fcn.0041db50
mov edx, dword [esi + 0x18]
add edx, dword [edi + 0x44]
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x44], edx
inc ecx
mov eax, dword [esi + 0xc]
add dword [edi + 0x40], eax
mov dword [esp + 0x18], ecx
cmp ecx, dword [edi + 0x64]
jl 0x40a3a0
mov ebx, dword [esp + 0x24]
add dword [ebx + 0xa4], edx
mov eax, dword [edi + 0x40]
mov esi, dword [esp + 0x14]
add dword [ebx + 0xa8], eax
inc esi
mov eax, dword [ebx + 0x47cc]
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov dword [esp + 0x14], esi
cmp esi, eax
jl 0x40a246
mov edx, 5
mov ecx, ebx
call fcn.004061c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret