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

Disassembly:
sub esp, 0x6c
mov eax, dword [0x4ef400]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
mov esi, dword [0x4f0690]
lea eax, [esp + 0x5c]
push edi
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x4355ff
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x4355ff
mov eax, dword [0x4f0690]
test eax, eax
je 0x43529f
inc dword [eax + 0x370]
push 0x38
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x4352bf
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x4352c1
xor edi, edi
or dword [esi + 0xc], 0xc06
mov dword [esi + 0xcc], edi
mov dword [esi + 0xc4], str.imgui_impl_win32
mov dword [edi], ebx
mov word [edi + 0x25], 0x101
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [edi + 0x10], eax
mov eax, dword [0x4f0690]
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
mov eax, dword [eax + 0x1e1c]
mov eax, dword [eax]
mov dword [eax + 0x40], ebx
mov dword [eax + 0x3c], ebx
test dword [esi + 8], 0x400
je 0x4354d1
push 0
mov dword [esp + 0x34], 0x30
mov dword [esp + 0x38], 3
mov dword [esp + 0x3c], 0x436cd0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movaps xmm0, xmmword [0x4e6ad0]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x30]
push eax
movups xmmword [esp + 0x4c], xmm0
mov dword [esp + 0x5c], str.ImGui_Platform
mov dword [esp + 0x60], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov eax, dword [0x4f0690]
test eax, eax
je 0x43538f
mov ebp, dword [eax + 0xcc]
jmp 0x435391
xor ebp, ebp
mov ecx, dword [eax + 0x158c]
lea ebx, [eax + 0x1588]
test ecx, ecx
jns 0x4353b9
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, ebx
call fcn.004239b0
push 0
push 0x435c50
push 0
push 0
mov dword [ebx], 0
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
mov ecx, dword [0x4f0690]
mov byte [ebp + 0x26], 0
mov dword [ecx + 0x1528], 0x4365a0
mov dword [ecx + 0x152c], 0x436730
mov dword [ecx + 0x1530], 0x4367b0
mov dword [ecx + 0x1534], 0x4369a0
mov dword [ecx + 0x1538], 0x436930
mov dword [ecx + 0x153c], 0x436a70
mov dword [ecx + 0x1540], 0x436a10
mov dword [ecx + 0x1544], 0x436af0
mov dword [ecx + 0x1548], 0x436b20
mov dword [ecx + 0x154c], 0x436b40
mov dword [ecx + 0x1550], 0x436b60
mov dword [ecx + 0x1554], 0x436c30
mov dword [ecx + 0x1558], 0x4367e0
mov dword [ecx + 0x1564], 0x436ca0
mov dword [ecx + 0x1568], 0x401880
mov dword [ecx + 0x156c], 0x436510
mov eax, dword [ecx + 0x1e1c]
mov ebp, dword [ecx + 0xcc]
mov ebx, dword [eax]
test ecx, ecx
je 0x435492
inc dword [ecx + 0x370]
push 0x10
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4354bd
mov dword [ecx], 0
mov byte [ecx + 4], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
jmp 0x4354bf
xor ecx, ecx
mov eax, dword [ebp]
mov dword [ecx], eax
mov byte [ecx + 4], 0
mov dword [ebx + 0x38], ecx
mov eax, dword [ebp]
mov dword [ebx + 0x3c], eax
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x34], 9
mov dword [esi + 0x38], 0x25
mov dword [esi + 0x3c], 0x27
mov dword [esi + 0x40], 0x26
mov dword [esi + 0x44], 0x28
mov dword [esi + 0x48], 0x21
mov dword [esi + 0x4c], 0x22
mov dword [esi + 0x50], 0x24
mov dword [esi + 0x54], 0x23
mov dword [esi + 0x58], 0x2d
mov dword [esi + 0x5c], 0x2e
mov dword [esi + 0x60], 8
mov dword [esi + 0x64], 0x20
mov dword [esi + 0x68], 0xd
mov dword [esi + 0x6c], 0x1b
mov dword [esi + 0x70], 0xd
mov dword [esi + 0x74], 0x41
mov dword [esi + 0x78], 0x43
mov dword [esi + 0x7c], 0x56
mov dword [esi + 0x80], 0x58
mov dword [esi + 0x84], 0x59
mov dword [esi + 0x88], 0x5a
xor esi, esi
mov dword [esp + 0x1c], str.xinput1_4.dll
mov dword [esp + 0x20], str.xinput1_3.dll
mov dword [esp + 0x24], str.xinput9_1_0.dll
mov dword [esp + 0x28], str.xinput1_2.dll
mov dword [esp + 0x2c], str.xinput1_1.dll
push dword [esp + esi*4 + 0x1c]
call ebp
mov ebx, eax
test ebx, ebx
jne 0x4355cb
inc esi
cmp esi, 5
jl 0x4355a4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004ca5c5
add esp, 0x6c
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [edi + 0x28], ebx
call esi
push str.XInputGetState
push ebx
mov dword [edi + 0x2c], eax
call esi
mov dword [edi + 0x30], eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004ca5c5
add esp, 0x6c
ret
mov ecx, dword [esp + 0x74]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ca5c5
add esp, 0x6c
ret