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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a6a1
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x1026500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [0x10265568]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x100393c1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x100393c1
mov eax, dword [0x10265568]
test eax, eax
je 0x10039116
inc dword [eax + 0xb8]
push 0x38
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x51]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x10039149
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x1003914b
xor edi, edi
mov dword [ebp - 4], 0xffffffff
or dword [esi + 0xc], 0xc06
mov dword [esi + 0x78], edi
mov dword [esi + 0x70], str.imgui_impl_win32
mov dword [edi], ebx
mov byte [edi + 0x24], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 0x10], eax
mov eax, dword [0x10265568]
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
mov eax, dword [eax + 0x48e8]
mov eax, dword [eax]
mov dword [eax + 0x40], ebx
mov dword [eax + 0x3c], ebx
test dword [esi + 8], 0x400
je 0x1003935b
push 0
mov dword [ebp - 0x50], 0x30
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x48], 0x1003bf80
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movaps xmm0, xmmword [0x1025cf00]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], str.ImGui_Platform
mov dword [ebp - 0x24], 0
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov eax, dword [0x10265568]
test eax, eax
je 0x10039207
mov ebx, dword [eax + 0x78]
jmp 0x10039209
xor ebx, ebx
mov ecx, dword [eax + 0x3818]
lea esi, [eax + 0x3814]
test ecx, ecx
jns 0x10039231
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.10027e00
push 0
push 0x10039ff0
push 0
push 0
mov dword [esi], 0
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
mov ecx, dword [0x10265568]
mov byte [ebx + 0x24], 0
mov eax, dword [ecx + 0x48e8]
mov dword [ecx + 0x37b8], 0x1003b7c0
mov dword [ecx + 0x37bc], 0x1003b990
mov dword [ecx + 0x37c0], 0x1003ba20
mov dword [ecx + 0x37c4], 0x1003bc50
mov dword [ecx + 0x37c8], 0x1003bbf0
mov dword [ecx + 0x37cc], 0x1003bd20
mov dword [ecx + 0x37d0], 0x1003bcc0
mov dword [ecx + 0x37d4], 0x1003bda0
mov dword [ecx + 0x37d8], 0x1003bdd0
mov dword [ecx + 0x37dc], 0x1003bdf0
mov dword [ecx + 0x37e0], 0x1003be10
mov dword [ecx + 0x37e4], 0x1003bee0
mov dword [ecx + 0x37e8], 0x1003ba50
mov dword [ecx + 0x37f4], 0x1003bf50
mov dword [ecx + 0x37f8], 0x10001610
mov esi, dword [eax]
mov ebx, dword [ecx + 0x78]
test ecx, ecx
je 0x100392fd
inc dword [ecx + 0xb8]
push 0x14
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, eax
add esp, 4
mov dword [ebp - 0x60], ecx
lea eax, [ebp - 0x51]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 4], 1
test ecx, ecx
je 0x10039342
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov byte [ecx + 8], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], 0
jmp 0x10039344
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebx]
mov dword [ecx], eax
mov byte [ecx + 8], 0
mov dword [esi + 0x38], ecx
mov eax, dword [ebx]
mov dword [esi + 0x3c], eax
mov byte [edi + 0x26], 1
xor esi, esi
mov dword [ebp - 0x74], str.xinput1_4.dll
mov dword [ebp - 0x70], str.xinput1_3.dll
mov dword [ebp - 0x6c], str.xinput9_1_0.dll
mov dword [ebp - 0x68], str.xinput1_2.dll
mov dword [ebp - 0x64], str.xinput1_1.dll
push dword [ebp + esi*4 - 0x74]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x1003939e
inc esi
cmp esi, 5
jl 0x10039384
mov al, 1
jmp 0x100393c3
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
jmp 0x100393c3
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10077e95
mov esp, ebp
pop ebp
ret