Function at 0x507b10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov dword [ebp - 4], ecx
movzx eax, byte [0x7aacac]
test eax, eax
jne 0x507df7
call fcn.0050ade0
mov ecx, eax
call fcn.00549680
movzx ecx, al
test ecx, ecx
je 0x507b4c
mov ecx, dword [ebp - 4]
add ecx, 0x4157c
call fcn.00595be0
mov ecx, dword [ebp - 4]
add ecx, 0x270
call fcn.005a0500
fstp dword [ebp - 0x54]
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047ce80
fstp dword [ebp - 0x50]
mov edx, dword [ebp - 4]
add edx, 0x804
mov dword [ebp - 0x5c], edx
push ecx
movss xmm0, dword [ebp - 0x50]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x6e1014]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [ebp - 0x54]
movss dword [esp], xmm0
mov ecx, dword [ebp - 4]
add ecx, 0x3edb4
call fcn.00516d70
fstp dword [ebp - 0x58]
movss xmm0, dword [ebp - 0x58]
divss xmm0, dword [0x6e1014]
mulss xmm0, dword [0x6f5060]
addss xmm0, dword [0x6f67ac]
push ecx
movss dword [esp], xmm0
mov ecx, dword [ebp - 0x5c]
call fcn.0057a6b0
call fcn.00479460
mov ecx, eax
call fcn.0058c1e0
call fcn.0046bf90
mov ecx, eax
call fcn.00517230
movzx eax, al
test eax, eax
jne 0x507c07
mov ecx, dword [ebp - 4]
add ecx, 0x3e6b0
call fcn.004ae850
mov ecx, dword [ebp - 4]
add ecx, 0x340
call fcn.004831c0
mov ecx, dword [ebp - 4]
add ecx, 0x310
call fcn.00553920
call fcn.0050ade0
mov ecx, eax
call fcn.00549680
movzx ecx, al
test ecx, ecx
je 0x507c44
mov ecx, dword [ebp - 4]
add ecx, 0x4157c
call fcn.005959f0
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047d700
mov ecx, dword [ebp - 4]
add ecx, 0x804
call fcn.005a4240
mov ecx, dword [ebp - 4]
add ecx, 0x804
call fcn.005a3320
mov edx, dword [ebp - 4]
add edx, 0x270
mov dword [ebp - 0x60], edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x68]
push ecx
mov ecx, dword [ebp - 0x60]
call fcn.005a0560
mov edx, dword [ebp - 4]
add edx, 0x804
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
mov ecx, dword [ebp - 0x6c]
call fcn.005a4220
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047d820
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047d920
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047d860
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.005c6cb0
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047d600
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047da90
call fcn.0046bf90
mov ecx, eax
call fcn.00517230
movzx edx, al
test edx, edx
jne 0x507d1b
mov ecx, dword [ebp - 4]
add ecx, 0x3e6b0
call fcn.004ae790
mov ecx, dword [ebp - 4]
add ecx, 0x340
call fcn.004832a0
call fcn.0050ade0
mov ecx, eax
call fcn.00549680
movzx eax, al
test eax, eax
je 0x507d4a
mov ecx, dword [ebp - 4]
add ecx, 0x4157c
call fcn.00595c10
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047daf0
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047d8a0
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047d660
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047d8e0
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.005c7050
mov ecx, dword [ebp - 4]
add ecx, 0x310
call fcn.00553610
mov ecx, dword [ebp - 4]
add ecx, 0x38a94
call fcn.004986e0
mov ecx, dword [ebp - 4]
add ecx, 0x15c
call fcn.005e8b60
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.005c6cb0
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047d680
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.005c7050
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047d960
jmp 0x508377
call fcn.00567610
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
add ecx, 0x340
call fcn.004831c0
call fcn.00567610
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
add ecx, 0x310
call fcn.00553920
call fcn.00567610
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047d700
call fcn.00567610
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
add ecx, 0x804
call fcn.005a4240
mov ecx, dword [ebp - 4]
add ecx, 0x804
call fcn.005a3320
mov ecx, dword [ebp - 4]
add ecx, 0x270
call fcn.005a0500
fstp dword [ebp - 0x74]
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047ce80
fstp dword [ebp - 0x70]
mov ecx, dword [ebp - 4]
add ecx, 0x804
mov dword [ebp - 0x7c], ecx
push ecx
movss xmm0, dword [ebp - 0x70]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x6e1014]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [ebp - 0x74]
movss dword [esp], xmm0
mov ecx, dword [ebp - 4]
add ecx, 0x3edb4
call fcn.00516d70
fstp dword [ebp - 0x78]
movss xmm0, dword [ebp - 0x78]
divss xmm0, dword [0x6e1014]
mulss xmm0, dword [0x6f5060]
addss xmm0, dword [0x6f67ac]
push ecx
movss dword [esp], xmm0
mov ecx, dword [ebp - 0x7c]
call fcn.0057a6b0
call fcn.00567610
mov dword [ebp - 0x1c], eax
call fcn.00479460
mov ecx, eax
call fcn.0058c1e0
call fcn.00567610
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 4]
add edx, 0x270
mov dword [ebp - 0x80], edx
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x88]
push ecx
mov ecx, dword [ebp - 0x80]
call fcn.005a0560
mov edx, dword [ebp - 4]
add edx, 0x804
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
mov ecx, dword [ebp - 0x8c]
call fcn.005a4220
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047d820
call fcn.00567610
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047d920
call fcn.00567610
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047d860
call fcn.00567610
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.005c6cb0
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047d600
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047da90
call fcn.00567610
mov dword [ebp - 0x30], eax
call fcn.0046bf90
mov ecx, eax
call fcn.00517230
movzx edx, al
test edx, edx
jne 0x507fe6
mov ecx, dword [ebp - 4]
add ecx, 0x3e6b0
call fcn.004ae790
mov ecx, dword [ebp - 4]
add ecx, 0x340
call fcn.004832a0
call fcn.00567610
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047daf0
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047d8a0
call fcn.00567610
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047d8e0
call fcn.00567610
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.005c7050
mov ecx, dword [ebp - 4]
add ecx, 0x310
call fcn.00553610
call fcn.00567610
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 4]
add ecx, 0x38a94
call fcn.004986e0
call fcn.00567610
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 4]
add ecx, 0x15c
call fcn.005e8b60
call fcn.00567610
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.005c6cb0
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047d680
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.005c7050
call fcn.00567610
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 4]
add ecx, 0x3e43c
call fcn.0047d960
call fcn.00567610
mov dword [ebp - 0x9c], eax
call fcn.00567610
mov dword [ebp - 0xc], eax
push 0x5a
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x508100
call fcn.0046bfb0
mov dword [ebp - 0x90], eax
push 3
push 8
mov ecx, dword [ebp - 0x90]
call fcn.00578200
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 8]
cmp ecx, 3
jae 0x508110
jmp 0x508377
mov edx, dword [0x7e8fd4]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + edx*4]
mov edx, dword [0x7aacd4]
cmp edx, dword [ecx + 0x20]
jle 0x508167
push 0x7aacd4
call fcn.0061b189
add esp, 4
cmp dword [0x7aacd4], 0xffffffff
jne 0x508167
push 0x6f5f6c
push str.perf_game_render.txt
call fcn.00664483
add esp, 8
mov dword [0x7aacd0], eax
push 0x7aacd4
call fcn.0061b13f
add esp, 4
call fcn.00567610
mov dword [ebp - 0x94], eax
mov eax, dword [0x7aacd0]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x94]
push ecx
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
push edx
push str.GR.Total__d__Time__d__n
mov eax, dword [ebp - 0x98]
push eax
call fcn.004558e0
add esp, 0x10
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 8]
push ecx
push str.GR.DFM__d_n
mov edx, dword [0x7aacd0]
push edx
call fcn.004558e0
add esp, 0xc
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
push eax
push str.GR.EFT.UP__d_n
mov ecx, dword [0x7aacd0]
push ecx
call fcn.004558e0
add esp, 0xc
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x14]
push edx
push str.GR.SHW__d_n
mov eax, dword [0x7aacd0]
push eax
call fcn.004558e0
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x18]
push ecx
push str.GR.STT__d_n
mov edx, dword [0x7aacd0]
push edx
call fcn.004558e0
add esp, 0xc
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
push eax
push str.GR.CLL__d_n
mov ecx, dword [0x7aacd0]
push ecx
call fcn.004558e0
add esp, 0xc
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x20]
push edx
push str.GR.BG.SKY__d_n
mov eax, dword [0x7aacd0]
push eax
call fcn.004558e0
add esp, 0xc
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x24]
push ecx
push 0x6f5ff0
mov edx, dword [0x7aacd0]
push edx
call fcn.004558e0
add esp, 0xc
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x28]
push eax
push str.GR.BG.CLD__d_n
mov ecx, dword [0x7aacd0]
push ecx
call fcn.004558e0
add esp, 0xc
mov edx, dword [ebp - 0x30]
sub edx, dword [ebp - 0x2c]
push edx
push str.GR.BG.MAIN__d_n
mov eax, dword [0x7aacd0]
push eax
call fcn.004558e0
add esp, 0xc
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x30]
push ecx
push str.GR.CHR__d_n
mov edx, dword [0x7aacd0]
push edx
call fcn.004558e0
add esp, 0xc
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x34]
push eax
push str.GR.BG.WTR__d_n
mov ecx, dword [0x7aacd0]
push ecx
call fcn.004558e0
add esp, 0xc
mov edx, dword [ebp - 0x3c]
sub edx, dword [ebp - 0x38]
push edx
push str.GR.BG.EFT__d_n
mov eax, dword [0x7aacd0]
push eax
call fcn.004558e0
add esp, 0xc
mov ecx, dword [ebp - 0x40]
sub ecx, dword [ebp - 0x3c]
push ecx
push str.GR.EFT__d_n
mov edx, dword [0x7aacd0]
push edx
call fcn.004558e0
add esp, 0xc
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x40]
push eax
push str.GR.ITM__d_n
mov ecx, dword [0x7aacd0]
push ecx
call fcn.004558e0
add esp, 0xc
mov edx, dword [ebp - 0x48]
sub edx, dword [ebp - 0x44]
push edx
push str.GR.FLY__d_n
mov eax, dword [0x7aacd0]
push eax
call fcn.004558e0
add esp, 0xc
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [ebp - 0x48]
push ecx
push str.GR.BG.BLK__d_n
mov edx, dword [0x7aacd0]
push edx
call fcn.004558e0
add esp, 0xc
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0x4c]
push eax
push str.GR.BG.LEN__d_n
mov ecx, dword [0x7aacd0]
push ecx
call fcn.004558e0
add esp, 0xc
mov edx, dword [0x7aacd0]
push edx
call fcn.00669b30
add esp, 4
mov esp, ebp
pop ebp
ret