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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, edx
mov dword [ebp - 8], ecx
push esi
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
push edi
mov edx, dword [ebx]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x14], ebx
cmp edx, 1
jne 0x41f337
test eax, eax
jne 0x41f354
jmp 0x41f340
cmp edx, 3
jne 0x41f340
test eax, eax
je 0x41f354
push 0x31f0
push str.C:UsersXDesktop_freeimguiimgui.cpp
push str._req__Type__ImGuiDockRequestType_Dock__req__DockPayload___0____req__Type__ImGuiDockRequestType_Split__req__DockPayload__0_
call esi
add esp, 0xc
cmp dword [ebx + 4], 0
jne 0x41f374
cmp dword [ebx + 8], 0
jne 0x41f374
push 0x31f1
push str.C:UsersXDesktop_freeimguiimgui.cpp
push str.req__DockTargetWindow___0__req__DockTargetNode___0
call esi
add esp, 0xc
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov edi, dword [ebx + 8]
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
test eax, eax
je 0x41f3c2
mov ebx, dword [eax + 0x3c0]
mov dword [eax + 0x3c0], 0
test ebx, ebx
je 0x41f3bc
cmp dword [ebx + 0x14], 0
jne 0x41f3c2
mov eax, dword [ebx + 0x28]
mov edx, dword [eax + 0x18]
mov dword [ebp - 0xc], edx
test edx, edx
jne 0x41f3c2
mov eax, dword [eax + 0x14]
jmp 0x41f3bf
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
test edi, edi
je 0x41f43a
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x78]
cmp eax, dword [edx + 0x1be0]
jle 0x41f3eb
push 0x320e
push str.C:UsersXDesktop_freeimguiimgui.cpp
push str.node__LastFrameAlive___g.FrameCount
call esi
mov ecx, dword [ebp - 0x10]
add esp, 0xc
test ecx, ecx
je 0x41f50c
cmp edi, dword [ecx + 0x3c0]
jne 0x41f50c
cmp dword [edi + 0x1c], 0
jg 0x41f50c
cmp dword [edi + 0x14], 0
jne 0x41f50c
mov eax, dword [edi + 8]
shr eax, 0xb
test al, 1
jne 0x41f50c
push 0x3210
push str.C:UsersXDesktop_freeimguiimgui.cpp
push str.node__Windows.Size___0__node__IsSplitNode____node__IsCentralNode__
call esi
add esp, 0xc
jmp 0x41f50c
mov edi, dword [ebp - 8]
mov esi, 1
push esi
lea ecx, [edi + 0x2fb8]
call fcn.00406120
test eax, eax
je 0x41f463
inc esi
lea ecx, [edi + 0x2fb8]
push esi
call fcn.00406120
test eax, eax
jne 0x41f452
mov eax, dword [0x45e820]
test eax, eax
je 0x41f472
inc dword [eax + 0x374]
push 0x98
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
test eax, eax
je 0x41f490
push esi
mov ecx, eax
call fcn.0041fc60
mov edi, eax
jmp 0x41f492
xor edi, edi
mov ecx, dword [ebp - 8]
push edi
push dword [edi]
lea ecx, [ecx + 0x2fb8]
call fcn.004061f0
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x48]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], ecx
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x50]
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], ecx
cmp dword [esi + 0x3c0], 0
jne 0x41f50c
push 1
mov edx, esi
mov ecx, edi
call fcn.0041fe40
mov eax, dword [edi + 0x28]
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [eax], 0
jg 0x41f4fb
push 0x6ca
push str.C:UsersXDesktop_freeimguiimgui.h
push str.i___0__i___Size
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov eax, dword [eax + 8]
and dword [eax + 4], 0xffbfffff
or byte [esi + 0x3a1], 1
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x10]
cmp eax, 0xffffffff
je 0x41f565
test eax, eax
je 0x41f527
cmp eax, 1
je 0x41f527
mov edx, 1
jmp 0x41f52d
xor edx, edx
test eax, eax
je 0x41f536
cmp eax, 2
je 0x41f536
xor esi, esi
jmp 0x41f53b
mov esi, 1
movss xmm0, dword [ecx + 0x14]
push ebx
push ecx
mov ecx, dword [ebp - 8]
movss dword [esp], xmm0
push esi
push edx
mov edx, edi
call fcn.004242e0
mov eax, dword [edi + 0x68]
add esp, 0x10
xor esi, 1
mov ecx, dword [edi + esi*4 + 0x14]
mov edi, ecx
mov dword [ecx + 0x68], eax
and dword [edi + 8], 0xffffdfff
cmp edi, ebx
je 0x41f7c1
mov eax, dword [edi + 0x1c]
test eax, eax
jle 0x41f5cc
cmp dword [edi + 0x28], 0
jne 0x41f5cc
mov ecx, edi
call fcn.00422c80
mov eax, dword [edi + 0x1c]
xor esi, esi
test eax, eax
jle 0x41f5cc
test esi, esi
js 0x41f599
cmp esi, eax
jl 0x41f5b1
push 0x6ca
push str.C:UsersXDesktop_freeimguiimgui.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 + 0x24]
xor edx, edx
mov ecx, dword [edi + 0x28]
push dword [eax + esi*4]
call fcn.00448c40
mov eax, dword [edi + 0x1c]
inc esi
add esp, 4
cmp esi, eax
jl 0x41f591
test ebx, ebx
je 0x41f796
cmp dword [ebx + 0x14], 0
je 0x41f771
test eax, eax
jle 0x41f649
cmp dword [ebx + 0x74], 0
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
jne 0x41f602
push 0x3242
push str.C:UsersXDesktop_freeimguiimgui.cpp
push str.payload_node__OnlyNodeWithWindows___0
call esi
add esp, 0xc
mov eax, dword [ebx + 0x74]
mov dword [ebp - 0x10], eax
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x41f62b
cmp dword [ecx], 0
jg 0x41f62b
push 0x3245
push str.C:UsersXDesktop_freeimguiimgui.cpp
push str.visible_node__TabBar__Tabs.Size___0
call esi
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov edx, eax
mov ecx, edi
call fcn.004203f0
mov esi, dword [ebp - 0x10]
mov edx, edi
mov ecx, esi
call fcn.004203f0
mov edx, dword [esi]
mov ecx, dword [edi]
call fcn.00427450
mov eax, dword [edi + 8]
shr eax, 0xb
test al, 1
je 0x41f6e9
mov ecx, dword [ebp - 8]
push dword [ebx + 0x84]
lea ecx, [ecx + 0x2fb8]
call fcn.00406120
mov edx, eax
mov dword [ebp - 0x10], edx
test edx, edx
jne 0x41f68f
push 0x324f
push str.C:UsersXDesktop_freeimguiimgui.cpp
push str.last_focused_node___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov eax, dword [edx + 0x10]
mov esi, edx
test eax, eax
je 0x41f6a1
mov esi, eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x41f698
mov eax, dword [ebx + 0x10]
mov ecx, ebx
test eax, eax
je 0x41f6b9
nop word [eax + eax]
mov ecx, eax
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x41f6b0
cmp esi, ecx
je 0x41f6d8
push 0x3251
push str.C:UsersXDesktop_freeimguiimgui.cpp
push str.last_focused_root_node__DockNodeGetRootNode_payload_node_
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov edx, dword [ebp - 0x10]
add esp, 0xc
or dword [edx + 8], 0x800
and dword [edi + 8], 0xfffff7ff
mov dword [esi + 0x70], edx
cmp dword [edi + 0x1c], 0
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
je 0x41f723
push 0x3257
push str.C:UsersXDesktop_freeimguiimgui.cpp
push str.node__Windows.Size__0
call esi
add esp, 0xc
cmp dword [edi + 0x1c], 0
je 0x41f723
push 0x3398
push str.C:UsersXDesktop_freeimguiimgui.cpp
push str.dst_node__Windows.Size__0
call esi
add esp, 0xc
mov ecx, dword [ebx + 0x14]
mov dword [edi + 0x14], ecx
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x18], eax
test ecx, ecx
je 0x41f736
mov dword [ecx + 0x10], edi
mov eax, dword [edi + 0x18]
test eax, eax
je 0x41f740
mov dword [eax + 0x10], edi
mov eax, dword [ebx + 0x44]
mov edx, ebx
mov dword [edi + 0x44], eax
mov ecx, dword [ebx + 0x40]
mov eax, dword [ebx + 0x3c]
mov dword [edi + 0x40], ecx
mov ecx, dword [ebp - 8]
mov dword [edi + 0x3c], eax
push 1
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
call fcn.0041ead0
add esp, 4
jmp 0x41f7c8
mov esi, dword [ebx]
mov edx, ebx
mov ecx, edi
call fcn.004203f0
mov edx, dword [edi]
mov ecx, esi
call fcn.00427450
mov ecx, dword [ebp - 8]
mov edx, ebx
push 1
call fcn.0041ead0
add esp, 4
jmp 0x41f7c8
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x41f7c8
mov esi, dword [edx + 0x3c4]
mov ecx, edi
push 1
mov dword [edi + 0x6c], edx
call fcn.0041fe40
add esp, 4
test esi, esi
je 0x41f7c8
mov edx, dword [edi]
mov ecx, esi
call fcn.00427450
jmp 0x41f7c8
or byte [edi + 0x94], 0x80
mov eax, dword [edi + 0x28]
test eax, eax
je 0x41f7d5
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x18], ecx
mov ecx, dword [0x45e820]
xorps xmm0, xmm0
comiss xmm0, dword [ecx + 0x2fe4]
jb 0x41f7f0
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x2fe4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret