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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475700
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x487080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4896f8]
test eax, eax
je 0x41292c
inc dword [eax + 0x36c]
push 0x3e00
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
test eax, eax
je 0x412949
push 0
mov ecx, eax
call fcn.0042b120
jmp 0x41294b
xor eax, eax
cmp dword [0x4896f8], 0
jne 0x412959
mov dword [0x4896f8], eax
mov ecx, eax
call fcn.00431e10
mov eax, dword [0x4896f8]
mov dword [ebp - 0x11c], eax
call fcn.00469cb0
push eax
lea ecx, [ebp - 0x118]
call fcn.00412d80
xor esi, esi
nop
mov edx, dword [esi + 0x47de68]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x40], 0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
lea edi, [ecx + 1]
mov byte [ebp - 0x38], 0
movups xmmword [ebp - 0x134], xmm0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4129d0
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x134]
call fcn.0041fb70
movups xmm0, xmmword [ebp - 0x134]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x154], 0
push eax
movups xmmword [ebp - 0x16c], xmm0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x150], 0
movq xmm0, qword [ebp - 0x124]
movq qword [ebp - 0x15c], xmm0
call fcn.0041c2c0
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xe0]
call fcn.00421f40
lea ecx, [ebp - 0x16c]
call fcn.00413180
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x412a7c
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412a72
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b77
push ecx
push edx
call fcn.00473531
add esp, 8
add esi, 4
cmp esi, 4
jb 0x412980
lea eax, [ebp - 0x118]
push eax
call fcn.00461540
movups xmm0, xmmword [0x480170]
mov esi, dword [ebp - 0x11c]
sub esp, 0xc
mov eax, dword [0x4801c0]
movss xmm2, dword [0x480904]
movups xmmword [0x489790], xmm0
mov dword [0x4897e0], eax
movups xmm0, xmmword [0x480180]
movups xmmword [0x4897a0], xmm0
movups xmm0, xmmword [0x480190]
movups xmmword [0x4897b0], xmm0
movups xmm0, xmmword [0x4801a0]
movups xmmword [0x4897c0], xmm0
movups xmm0, xmmword [0x4801b0]
movups xmmword [0x4897d0], xmm0
mov ecx, dword [esi + 0x98]
call fcn.0044bec0
xor ecx, ecx
mov dword [0x4896e8], eax
mov dword [esi + 0x20], 0
call fcn.00448100
mov eax, dword [0x489670]
mov esi, dword [0x4896f8]
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x412ce3
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x412ce3
mov eax, dword [0x4896f8]
test eax, eax
je 0x412b57
inc dword [eax + 0x36c]
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 0x412b7d
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x412b7f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
xor edi, edi
or dword [esi + 0xc], 6
mov edx, dword [ebp - 0x11c]
mov dword [esi + 0xc4], edi
mov dword [esi + 0xbc], str.imgui_impl_win32
mov dword [edi], edx
mov byte [edi + 0x25], 1
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
mov dword [esi + 0xe0], edx
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 [ebp - 0x130], str.xinput1_4.dll
mov dword [ebp - 0x12c], str.xinput1_3.dll
mov dword [ebp - 0x128], str.xinput9_1_0.dll
mov dword [ebp - 0x124], str.xinput1_2.dll
mov dword [ebp - 0x120], str.xinput1_1.dll
nop dword [eax + eax]
push dword [ebp + esi*4 - 0x130]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x11c], eax
test eax, eax
jne 0x412cbf
inc esi
cmp esi, 5
jl 0x412ca0
jmp 0x412ce3
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 - 0x11c]
mov dword [edi + 0x2c], eax
call esi
mov dword [edi + 0x30], eax
mov esi, dword [0x4896f8]
mov edi, dword [0x489674]
test esi, esi
je 0x412cf9
inc dword [esi + 0x36c]
push 0x18
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
test eax, eax
je 0x412d33
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 0x412d35
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]
lea ecx, [ebp - 0x118]
call fcn.00412fc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472ead
mov esp, ebp
pop ebp
ret