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

Disassembly:
mov ecx, dword [0x10132b48]
sub esp, 0x34
push ebx
push ebp
push esi
push edi
test ecx, ecx
je 0x1007dc35
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
push ecx
call dword [eax + 0x24]
mov eax, dword [esp + 0x20]
mov dword [0x10133384], eax
mov eax, dword [0x10132b9c]
test eax, eax
je 0x1007dc44
inc dword [eax + 0x370]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x3db0
call ebx
add esp, 4
test eax, eax
je 0x1007dc63
push 0
mov ecx, eax
call fcn.10036030
jmp 0x1007dc65
xor eax, eax
cmp dword [0x10132b9c], 0
jne 0x1007dc73
mov dword [0x10132b9c], eax
mov ecx, eax
call fcn.1003c8f0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10132a40]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x101388dc]
cmp eax, dword [ecx + 4]
jle 0x1007dcbe
push 0x101388dc
call fcn.100d6f44
add esp, 4
cmp dword [0x101388dc], 0xffffffff
jne 0x1007dcbe
call fcn.1007df00
push 0x101388dc
call fcn.100d6ef3
add esp, 4
mov ecx, 0x1013349c
call fcn.1007ea90
mov ebp, dword [0x10133384]
lea eax, [esp + 0x10]
mov esi, dword [0x10132b9c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1007de79
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1007de79
mov eax, dword [0x10132b9c]
test eax, eax
je 0x1007dd09
inc dword [eax + 0x370]
push 0x30
call ebx
mov edi, eax
add esp, 4
test edi, edi
je 0x1007dd25
push 0x30
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x1007dd27
xor edi, edi
or dword [esi + 0xc], 6
mov dword [esi + 0xc4], edi
mov dword [esi + 0xbc], str.imgui_impl_win32
mov dword [edi], ebp
mov byte [edi + 0x1d], 1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov dword [edi + 0x18], 9
mov dword [esi + 0xe0], ebp
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 + 0x2c], str.xinput1_4.dll
mov dword [esp + 0x30], str.xinput1_3.dll
mov dword [esp + 0x34], str.xinput9_1_0.dll
mov dword [esp + 0x38], str.xinput1_2.dll
mov dword [esp + 0x3c], str.xinput1_1.dll
nop dword [eax]
push dword [esp + esi*4 + 0x2c]
call ebp
mov ebx, eax
test ebx, ebx
jne 0x1007de54
inc esi
cmp esi, 5
jl 0x1007de40
jmp 0x1007de73
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [edi + 0x20], ebx
call esi
push str.XInputGetState
push ebx
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [0x10132b9c]
mov edi, dword [0x10132b48]
test esi, esi
je 0x1007de8f
inc dword [esi + 0x370]
push 0x18
call ebx
add esp, 4
test eax, eax
je 0x1007dec5
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 0x1007dec7
xor eax, eax
or dword [esi + 0xc], 8
mov dword [esi + 0xc8], eax
mov dword [esi + 0xc0], str.imgui_impl_dx9
mov dword [eax], edi
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [0x10132b9c]
pop edi
pop esi
pop ebp
or dword [eax + 8], 0x20
pop ebx
add esp, 0x34
ret