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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x681c40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x688710]
lea eax, [ebp - 0x10]
push edi
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x47951b
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x47951b
mov eax, dword [0x688710]
test eax, eax
je 0x4791be
inc dword [eax + 0x370]
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 0x4791de
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x4791e0
xor edi, edi
or dword [esi + 0xc], 0xc06
mov dword [esi + 0xcc], edi
mov dword [esi + 0xc4], str.imgui_impl_win32
mov dword [edi], ebx
mov word [edi + 0x25], 0x101
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
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 [0x688710]
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
mov eax, dword [eax + 0x1e1c]
mov eax, dword [eax]
mov dword [eax + 0x40], ebx
mov dword [eax + 0x3c], ebx
test dword [esi + 8], 0x400
je 0x4793f1
push 0
mov dword [ebp - 0x48], 0x30
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x40], 0x47ab60
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movaps xmm0, xmmword [0x672f30]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x48]
push eax
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], str.ImGui_Platform
mov dword [ebp - 0x1c], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov eax, dword [0x688710]
test eax, eax
je 0x4792a3
mov ecx, dword [eax + 0xcc]
mov dword [ebp - 0x50], ecx
jmp 0x4792aa
mov dword [ebp - 0x50], 0
mov ecx, dword [eax + 0x158c]
lea ebx, [eax + 0x1588]
test ecx, ecx
jns 0x4792d2
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, ebx
call fcn.004677d0
push 0
push 0x479b50
push 0
push 0
mov dword [ebx], 0
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
mov ecx, dword [0x688710]
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x26], 0
mov dword [ecx + 0x1528], 0x47a450
mov dword [ecx + 0x152c], 0x47a5e0
mov dword [ecx + 0x1530], 0x47a660
mov dword [ecx + 0x1534], 0x47a830
mov dword [ecx + 0x1538], 0x47a7d0
mov dword [ecx + 0x153c], 0x47a900
mov dword [ecx + 0x1540], 0x47a8a0
mov dword [ecx + 0x1544], 0x47a980
mov dword [ecx + 0x1548], 0x47a9b0
mov dword [ecx + 0x154c], 0x47a9d0
mov dword [ecx + 0x1550], 0x47a9f0
mov dword [ecx + 0x1554], 0x47aac0
mov dword [ecx + 0x1558], 0x47a690
mov dword [ecx + 0x1564], 0x47ab30
mov dword [ecx + 0x1568], 0x446f30
mov dword [ecx + 0x156c], 0x47a3d0
mov eax, dword [ecx + 0x1e1c]
mov ebx, dword [eax]
mov eax, dword [ecx + 0xcc]
mov dword [ebp - 0x50], eax
test ecx, ecx
je 0x4793b1
inc dword [ecx + 0x370]
push 0x10
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4793dc
mov dword [ecx], 0
mov byte [ecx + 4], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
jmp 0x4793de
xor ecx, ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
mov dword [ecx], eax
mov byte [ecx + 4], 0
mov dword [ebx + 0x38], ecx
mov eax, dword [edx]
mov dword [ebx + 0x3c], eax
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 - 0x68], str.xinput1_4.dll
mov dword [ebp - 0x64], str.xinput1_3.dll
mov dword [ebp - 0x60], str.xinput9_1_0.dll
mov dword [ebp - 0x5c], str.xinput1_2.dll
mov dword [ebp - 0x58], str.xinput1_1.dll
nop dword [eax]
push dword [ebp + esi*4 - 0x68]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x4794e9
inc esi
cmp esi, 5
jl 0x4794c0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f582b
mov esp, ebp
pop ebp
ret
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
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f582b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005f582b
mov esp, ebp
pop ebp
ret