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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x524018]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [0x52a278]
mov dword [esp + 4], ecx
mov dword [esp], eax
push ebx
push esi
push edi
test eax, eax
jne 0x408097
push 0x1108
push str.C:Users_soniaOneDriveDocumentosGitHubEngine_BonesEngine_Bones_v.1Engine_BonesSourceExternalImGuiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.004cb34c
mov eax, dword [0x52a278]
add esp, 0xc
mov dword [esp + 0xc], eax
cmp dword [eax + 0x78], 0
je 0x4080b4
push 0x140
push str.C:Users_soniaOneDriveDocumentosGitHubEngine_BonesEngine_Bones_v.1Engine_BonesSourceExternalImGui_backendsimgui_impl_sdl.cpp
push str.io.BackendPlatformUserData__0___Already_initialized_a_platform_backend__
call fcn.004cb34c
add esp, 0xc
xor bl, bl
call dword [sym.imp.SDL2.dll_SDL_GetCurrentVideoDriver]
mov dword [esp + 0x14], eax
xor esi, esi
mov dword [esp + 0x60], str.windows
mov dword [esp + 0x64], str.cocoa
mov dword [esp + 0x68], 0x4f633c
mov dword [esp + 0x6c], str.DIVE
mov dword [esp + 0x70], str.VMAN
nop word [eax + eax]
mov edx, dword [esp + esi*4 + 0x60]
mov eax, edx
lea edi, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408100
sub eax, edi
push eax
push edx
push dword [esp + 0x1c]
call fcn.004cb3d0
add esp, 0xc
movzx ebx, bl
test eax, eax
mov eax, 1
cmove ebx, eax
inc esi
cmp esi, 5
jl 0x4080f0
mov eax, dword [0x52a278]
test eax, eax
je 0x408139
inc dword [eax + 0xb8]
push 0x48
call fcn.004cce5c
mov edi, eax
add esp, 4
test edi, edi
je 0x408158
push 0x48
push 0
push edi
call fcn.004c0d10
add esp, 0xc
jmp 0x40815a
xor edi, edi
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.SDL2.dll_SDL_CreateSystemCursor]
push 0
or dword [eax + 0xc], 6
mov dword [eax + 0x78], edi
mov dword [eax + 0x70], str.imgui_impl_sdl
mov dword [edi], ecx
mov dword [edi + 4], 0
mov byte [edi + 0x40], bl
mov dword [eax + 0x88], 0x407590
mov dword [eax + 0x84], 0x407560
mov dword [eax + 0x8c], 0
call esi
push 1
mov dword [edi + 0x14], eax
call esi
push 9
mov dword [edi + 0x18], eax
call esi
push 8
mov dword [edi + 0x1c], eax
call esi
push 7
mov dword [edi + 0x20], eax
call esi
push 6
mov dword [edi + 0x24], eax
call esi
push 5
mov dword [edi + 0x28], eax
call esi
push 0xb
mov dword [edi + 0x2c], eax
call esi
push 0xa
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x38]
mov word [esp + 0x44], 0x1802
mov byte [esp + 0x46], 0
call dword [sym.imp.SDL2.dll_SDL_GetWindowWMInfo]
add esp, 0x2c
test eax, eax
je 0x408236
mov esi, dword [0x52a278]
cmp dword [esi + 0x48ec], 0
jg 0x408227
push 0x781
push str.C:Users_soniaOneDriveDocumentosGitHubEngine_BonesEngine_Bones_v.1Engine_BonesSourceExternalImGuiimgui.h
push str.i___0__i___Size
call fcn.004cb34c
add esp, 0xc
mov eax, dword [esi + 0x48f4]
mov ecx, dword [eax]
mov eax, dword [esp + 0x20]
mov dword [ecx + 0x40], eax
push 0x4f6360
push str.SDL_MOUSE_FOCUS_CLICKTHROUGH
call dword [sym.imp.SDL2.dll_SDL_SetHint]
mov ecx, dword [esp + 0x7c]
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bee44
mov esp, ebp
pop ebp
ret