Function at 0x100176e0
Capabilities:
Encode data using xor
Rebuild import table
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push esi
push edi
mov dword [esp + 8], ecx
call fcn.1002ca60
mov esi, dword [0x100be9bc]
sub esp, 8
movss xmm2, dword [0x1009a274]
mov ecx, dword [esi + 0x98]
push str.C:WindowsFonts_segoeuib.ttf
mov dword [esi + 8], 0x20
call fcn.100473b0
movss xmm2, dword [0x1009a274]
sub esp, 8
mov ecx, dword [esi + 0x98]
mov dword [0x100be9b0], eax
push str.C:WindowsFonts_arial.ttf
call fcn.100473b0
movss xmm2, dword [0x1009a26c]
sub esp, 8
mov ecx, dword [esi + 0x98]
mov dword [0x100be96c], eax
push str.C:WindowsFonts_arial.ttf
call fcn.100473b0
movaps xmm2, xmmword [0x1009abe0]
movaps xmm0, xmmword [0x1009ab90]
movaps xmm1, xmmword [0x1009ac00]
mov esi, dword [0x100bebb0]
mov dword [0x100be97c], eax
mov eax, dword [0x100be9bc]
push 0x100bebf0
mov dword [eax + 0x153c], 2
mov dword [eax + 0x1534], 0
mov dword [eax + 0x1538], 0x3f99999a
mov dword [eax + 0x1524], 0x40c00000
movups xmmword [eax + 0x164c], xmm0
movaps xmm0, xmmword [0x1009ac40]
movups xmmword [eax + 0x168c], xmm2
movups xmmword [eax + 0x167c], xmm2
movups xmmword [eax + 0x15fc], xmm2
movups xmmword [eax + 0x16ac], xmm2
movups xmmword [eax + 0x172c], xmm2
mov dword [eax + 0x15ac], 0x3dcccccd
mov dword [eax + 0x15b0], 0x3f000000
mov dword [eax + 0x159c], 0
mov dword [eax + 0x15a0], 0x3f800000
movups xmmword [eax + 0x17ec], xmm2
mov dword [eax + 0x151c], 0x41a00000
mov dword [eax + 0x1520], 0x41a00000
mov dword [eax + 0x1560], 0x40e00000
mov dword [eax + 0x1564], 0x41700000
movups xmmword [eax + 0x16fc], xmm0
movaps xmm0, xmmword [0x1009aac0]
movups xmmword [eax + 0x176c], xmm0
movups xmmword [eax + 0x177c], xmm0
movups xmmword [eax + 0x175c], xmm0
movaps xmm0, xmmword [0x1009ab80]
movups xmmword [eax + 0x162c], xmm1
movups xmmword [eax + 0x165c], xmm1
movups xmmword [eax + 0x166c], xmm1
movups xmmword [eax + 0x171c], xmm0
movups xmmword [eax + 0x170c], xmm0
movups xmmword [eax + 0x161c], xmm2
mov dword [eax + 0x158c], 0
mov dword [eax + 0x15b4], 0
mov dword [eax + 0x15b8], 0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x100179f3
push 0x100bebe8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x100179f3
mov eax, dword [0x100be9bc]
mov dword [0x100bebe0], esi
mov dword [esp + 0xc], str.xinput1_4.dll
mov dword [esp + 0x10], str.xinput1_3.dll
or dword [eax + 0xc], 6
mov dword [eax + 0xe0], esi
xor esi, esi
mov dword [eax + 0xbc], str.imgui_impl_win32
mov dword [eax + 0x34], 9
mov dword [eax + 0x38], 0x25
mov dword [eax + 0x3c], 0x27
mov dword [eax + 0x40], 0x26
mov dword [eax + 0x44], 0x28
mov dword [eax + 0x48], 0x21
mov dword [eax + 0x4c], 0x22
mov dword [eax + 0x50], 0x24
mov dword [eax + 0x54], 0x23
mov dword [eax + 0x58], 0x2d
mov dword [eax + 0x5c], 0x2e
mov dword [eax + 0x60], 8
mov dword [eax + 0x64], 0x20
mov dword [eax + 0x68], 0xd
mov dword [eax + 0x6c], 0x1b
mov dword [eax + 0x70], 0xd
mov dword [eax + 0x74], 0x41
mov dword [eax + 0x78], 0x43
mov dword [eax + 0x7c], 0x56
mov dword [eax + 0x80], 0x58
mov dword [eax + 0x84], 0x59
mov dword [eax + 0x88], 0x5a
mov dword [esp + 0x14], str.xinput9_1_0.dll
mov dword [esp + 0x18], str.xinput1_2.dll
mov dword [esp + 0x1c], str.xinput1_1.dll
push dword [esp + esi*4 + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
jne 0x100179cd
inc esi
cmp esi, 5
jl 0x100179b5
jmp 0x100179f3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push edi
mov dword [0x100bebd4], edi
call esi
push str.XInputGetState
push edi
mov dword [0x100bebd8], eax
call esi
mov dword [0x100bebdc], eax
mov eax, dword [0x100be9bc]
mov ecx, dword [esp + 8]
push ecx
mov dword [0x100bebcc], ecx
or dword [eax + 0xc], 8
mov dword [eax + 0xc0], str.imgui_impl_dx9
mov eax, dword [ecx]
call dword [eax + 4]
movaps xmm0, xmmword [0x1009ae50]
xor ecx, ecx
movups xmmword [esp + 0xc], xmm0
mov word [esp + 0x1c], 0x39
nop dword [eax + eax]
mov al, byte [esp + 0xc]
xor byte [esp + ecx + 0xd], al
inc ecx
cmp ecx, 0x10
jb 0x10017a30
lea eax, [esp + 0xd]
mov byte [esp + 0x1d], 0
push eax
call fcn.10002690
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret