Function at 0x4567c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494793
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x4b7080]
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, dword [0x4be864]
push 0x4be87c
push 0x20
mov dword [ebp - 0xdc], ebx
call dword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x456813
push 3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, dword [0x4be87c]
lea edx, [ebp - 0xd0]
mov eax, dword [0x4bed84]
xorps xmm0, xmm0
push 0x4be90c
push edx
push 0x40
push ebx
mov dword [ebp - 0xd0], eax
mov eax, dword [0x4be934]
push 1
movlpd qword [ebp - 0xc4], xmm0
movlpd qword [ebp - 0xa4], xmm0
mov dword [ebp - 0xb0], 1
mov dword [ebp - 0xb8], 1
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xc8], 0x15
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xac], 1
mov dword [ebp - 0xa8], 0x50
mov dword [ebp - 0x9c], 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x40]
test eax, eax
jns 0x4568be
mov eax, dword [0x4be87c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 0x78
lea eax, [ebp - 0x168]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [0x4be710]
add esp, 0xc
mov dword [ebp - 0x130], 0x7f7fffff
mov eax, 0xffff
mov word [ebp - 0x120], ax
mov byte [ebp - 0x14c], 0
mov byte [ebp - 0x160], 0
mov dword [ebp - 0x154], 5
mov dword [ebp - 0x150], 5
mov dword [ebp - 0x124], 0x3f99999a
test ebx, ebx
je 0x456923
inc dword [ebx + 0xb4]
push 0x5c30
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea ecx, [ebp - 0xd1]
mov dword [ebp - 0xd8], eax
add esp, 4
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x456959
push 0
mov ecx, eax
call fcn.00404c20
jmp 0x45695b
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4be710], eax
call fcn.00408860
test ebx, ebx
je 0x456978
mov dword [0x4be710], ebx
jmp 0x45697e
mov ebx, dword [0x4be710]
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0x14]
push ecx
push eax
mov ecx, str.C:WindowsFonts_tahoma.ttf
mov dword [ebp - 0x138], 0x4a8d7c
mov dword [ebp - 0x14], 0
call fcn.00407000
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x456a5a
cmp byte [ebp - 0x11e], 0
lea esi, [ebp - 0x168]
mov ecx, 0x1e
lea edi, [ebp - 0x98]
rep movsd dword es:[edi], dword [esi]
jne 0x456a12
mov eax, 0x4a8bab
mov cl, byte [eax - 1]
cmp cl, 0x2f
je 0x4569eb
cmp cl, 0x5c
je 0x4569eb
dec eax
cmp eax, str.C:WindowsFonts_tahoma.ttf
ja 0x4569d6
movsd xmm0, qword [0x4a8ed0]
sub esp, 8
movsd qword [esp], xmm0
push eax
push str._s___.0fpx
lea eax, [ebp - 0x4e]
push 0x28
push eax
call fcn.00406d70
mov eax, dword [ebp - 0x1c]
add esp, 0x18
mov ecx, 0x1e
lea esi, [ebp - 0x98]
lea edi, [ebp - 0x1e0]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0x1e0], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1dc], eax
lea eax, [ebp - 0x1e0]
push eax
mov dword [ebp - 0x1d0], 0x41880000
mov dword [ebp - 0x1b0], 0x4a8d7c
call fcn.00429e70
mov ecx, 0x1e
lea esi, [ebp - 0x168]
lea edi, [ebp - 0x1e0]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x48]
lea eax, [ebp - 0x1e0]
push eax
mov dword [ebp - 0x1e0], 0x4b7350
mov dword [ebp - 0x1dc], 0x8d8
mov dword [ebp - 0x1d0], 0x41880000
mov dword [ebp - 0x1b0], 0x4a8d7c
call fcn.00429e70
or dword [ebx + 8], 1
lea eax, [ebp - 0x20]
mov esi, dword [0x4be710]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x456bba
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x456bba
mov eax, dword [0x4be710]
test eax, eax
je 0x456ae1
inc dword [eax + 0xb4]
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 0x456b01
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x456b03
xor edi, edi
or dword [esi + 0xc], 6
mov edx, dword [ebp - 0xdc]
mov dword [esi + 0x78], edi
mov dword [esi + 0x70], str.imgui_impl_win32
xor esi, esi
mov dword [edi], edx
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 eax, dword [0x4be710]
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
mov dword [ebp - 0xf0], str.xinput1_4.dll
mov eax, dword [eax + 0x47c4]
mov dword [ebp - 0xec], str.xinput1_3.dll
mov dword [ebp - 0xe8], str.xinput9_1_0.dll
mov dword [ebp - 0xe4], str.xinput1_2.dll
mov eax, dword [eax]
mov dword [ebp - 0xe0], str.xinput1_1.dll
mov dword [eax + 0x24], edx
mov byte [edi + 0x25], 1
push dword [ebp + esi*4 - 0xf0]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x456b9b
inc esi
cmp esi, 5
jl 0x456b80
jmp 0x456bba
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 esi, dword [0x4be710]
mov edi, dword [0x4be90c]
test esi, esi
je 0x456bd0
inc dword [esi + 0xb4]
push 0x18
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
test eax, eax
je 0x456c0a
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 0x456c0c
xor eax, eax
or dword [esi + 0xc], 8
mov dword [esi + 0x7c], eax
mov dword [esi + 0x74], str.imgui_impl_dx9
mov dword [eax], edi
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [0x4be87c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
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.00492363
mov esp, ebp
pop ebp
ret