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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10036843
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x10041008]
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 dword [ebp - 0x30], ecx
mov eax, dword [0x1004b7cc]
test eax, eax
je 0x100016e0
inc dword [eax + 0x36c]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x3e00
call edi
lea ecx, [ebp - 0x21]
mov dword [ebp - 0x2c], eax
add esp, 4
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x10001714
push 0
mov ecx, eax
call fcn.10004d90
mov ecx, eax
jmp 0x10001716
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x1004b7cc]
test eax, eax
cmove eax, ecx
mov dword [0x1004b7cc], eax
call fcn.1000ac60
mov ebx, dword [0x1004b7cc]
lea eax, [ebp - 0x18]
mov esi, dword [0x1004b7fc]
push eax
mov dword [ebx + 8], 0x20
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x100018e0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x100018e0
mov eax, dword [0x1004b7cc]
test eax, eax
je 0x10001777
inc dword [eax + 0x36c]
push 0x38
call edi
mov edi, eax
add esp, 4
test edi, edi
je 0x10001793
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x10001795
xor edi, edi
or dword [ebx + 0xc], 6
mov dword [ebx + 0xc4], edi
mov dword [ebx + 0xbc], str.imgui_impl_win32
mov dword [edi], esi
mov byte [edi + 0x25], 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 dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
mov dword [ebx + 0xe0], esi
xor esi, esi
mov dword [ebx + 0x34], 9
mov dword [ebx + 0x38], 0x25
mov dword [ebx + 0x3c], 0x27
mov dword [ebx + 0x40], 0x26
mov dword [ebx + 0x44], 0x28
mov dword [ebx + 0x48], 0x21
mov dword [ebx + 0x4c], 0x22
mov dword [ebx + 0x50], 0x24
mov dword [ebx + 0x54], 0x23
mov dword [ebx + 0x58], 0x2d
mov dword [ebx + 0x5c], 0x2e
mov dword [ebx + 0x60], 8
mov dword [ebx + 0x64], 0x20
mov dword [ebx + 0x68], 0xd
mov dword [ebx + 0x6c], 0x1b
mov dword [ebx + 0x70], 0xd
mov dword [ebx + 0x74], 0x41
mov dword [ebx + 0x78], 0x43
mov dword [ebx + 0x7c], 0x56
mov dword [ebx + 0x80], 0x58
mov dword [ebx + 0x84], 0x59
mov dword [ebx + 0x88], 0x5a
mov dword [ebp - 0x44], str.xinput1_4.dll
mov dword [ebp - 0x40], str.xinput1_3.dll
mov dword [ebp - 0x3c], str.xinput9_1_0.dll
mov dword [ebp - 0x38], str.xinput1_2.dll
mov dword [ebp - 0x34], str.xinput1_1.dll
nop dword [eax]
push dword [ebp + esi*4 - 0x44]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x100018b9
inc esi
cmp esi, 5
jl 0x100018a0
jmp 0x100018da
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push eax
mov dword [edi + 0x28], eax
call esi
push str.XInputGetState
push dword [ebp - 0x2c]
mov dword [edi + 0x2c], eax
call esi
mov dword [edi + 0x30], eax
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [0x1004b7cc]
test esi, esi
je 0x100018f0
inc dword [esi + 0x36c]
push 0x18
call edi
add esp, 4
test eax, eax
je 0x10001926
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0x1388
mov dword [eax + 0x14], 0x2710
jmp 0x10001928
xor eax, eax
mov ecx, dword [ebp - 0x30]
or dword [esi + 0xc], 8
mov dword [esi + 0xc8], eax
mov dword [esi + 0xc0], str.imgui_impl_dx9
mov dword [eax], ecx
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push 0x78
lea eax, [ebp - 0xc0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xac], 3
mov eax, 0xffff
mov dword [ebp - 0xa8], 1
mov word [ebp - 0x78], ax
lea esi, [ebp - 0xc0]
mov ecx, 0x1e
mov dword [ebp - 0x88], 0x7f7fffff
lea edi, [ebp - 0x138]
mov dword [ebp - 0x7c], 0x3f800000
mov byte [ebp - 0xb8], 0
lea eax, [ebp - 0x138]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x98]
push eax
mov dword [ebp - 0x138], 0x10041038
mov dword [ebp - 0x134], 0x9e88
mov dword [ebp - 0x128], 0x41840000
call fcn.100232f0
mov byte [ebx + 0xb0], 1
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.100354bb
mov esp, ebp
pop ebp
ret