Function at 0x5162b3
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
mov dword [ebp - 0x1c4], ecx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x1c4]
cmp dword [eax + 0xb48], 0
je 0x51631f
mov ecx, dword [0x9a21cc]
mov edx, dword [ecx]
mov ecx, dword [0x9a21cc]
call dword [edx + 8]
mov ecx, dword [ebp - 0x1c4]
sub eax, dword [ecx + 0xb48]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x7d0
jbe 0x516311
mov edx, dword [ebp - 0x1c4]
mov dword [edx + 0xb48], 0
mov dword [ebp + 8], 0
xor eax, eax
jmp 0x5171be
cmp dword [ebp + 8], 0
jne 0x51632c
xor eax, eax
jmp 0x5171be
mov eax, dword [ebp + 8]
cmp dword [eax + 0x218], 0x2c
jne 0x516351
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0x21c]
cmp edx, 0xdb
jne 0x516351
xor eax, eax
jmp 0x5171be
mov eax, dword [ebp - 0x1c4]
movsx ecx, byte [eax + 0xa5a]
test ecx, ecx
je 0x516384
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 0xa5a]
mov ecx, dword [ebp - 0x1c4]
movsx edx, byte [ecx + 0xa5a]
cmp eax, edx
jne 0x516384
xor eax, eax
jmp 0x5171be
mov eax, dword [0x6f0ab0]
cmp dword [eax + 0x24], 0x7530
je 0x5163a3
mov dword [0x63a29c], 0
xor eax, eax
jmp 0x5171be
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + 0x211]
cmp edx, 1
jne 0x5163b9
xor eax, eax
jmp 0x5171be
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + 0xa3d]
cmp ecx, 1
jne 0x5163cf
xor eax, eax
jmp 0x5171be
mov edx, dword [ebp - 0x1c4]
cmp dword [edx + 0x1c8], 0
je 0x5163e5
xor eax, eax
jmp 0x5171be
cmp dword [ebp + 8], 0
jne 0x5163f2
xor eax, eax
jmp 0x5171be
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
jb 0x516413
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x20], 0x3e8
jae 0x516413
mov dword [ebp - 0x1c8], 1
jmp 0x51641d
mov dword [ebp - 0x1c8], 0
cmp dword [ebp - 0x1c8], 1
jne 0x51642d
xor eax, eax
jmp 0x5171be
mov ecx, dword [ebp + 8]
call fcn.004fa230
test eax, eax
je 0x516440
xor eax, eax
jmp 0x5171be
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 0x215]
cmp eax, 1
jne 0x516456
xor eax, eax
jmp 0x5171be
mov ecx, dword [ebp - 0x1c4]
xor edx, edx
mov dl, byte [ecx + 0x620]
and edx, 0xf
cmp edx, 0xf
jne 0x5164b8
mov eax, dword [0x6f0ab0]
mov ecx, dword [eax + 0x4c]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x1c4]
movsx eax, byte [edx + 0xa5a]
test eax, eax
jle 0x5164b8
mov ecx, dword [ebp - 0x34]
movsx edx, byte [ecx + 0xa5a]
test edx, edx
jle 0x5164b8
mov eax, dword [ebp - 0x1c4]
movsx ecx, byte [eax + 0xa5a]
mov edx, dword [ebp - 0x34]
movsx eax, byte [edx + 0xa5a]
cmp ecx, eax
jne 0x5164b8
xor eax, eax
jmp 0x5171be
mov ecx, dword [0x6f0ab0]
mov dword [ebp - 0x1c], ecx
mov edx, dword [0x9a21cc]
mov eax, dword [edx]
mov ecx, dword [0x9a21cc]
call dword [eax + 8]
mov dword [ebp - 4], eax
mov ecx, dword [0x277c024]
add ecx, 0x750
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x24], 0
je 0x51650a
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x30c]
and eax, 0x20000000
test eax, eax
je 0x51650a
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x2754c]
add edx, 0x3e8
cmp dword [ebp - 4], edx
jae 0x516525
xor eax, eax
jmp 0x5171be
mov eax, dword [ebp - 0x1c4]
fld dword [eax + 0x28]
call fcn.005c5ef0
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c4]
fld dword [ecx + 0x2c]
call fcn.005c5ef0
mov dword [ebp - 0x30], eax
mov edx, dword [ebp + 8]
fld dword [edx + 0x28]
call fcn.005c5ef0
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
fld dword [eax + 0x2c]
call fcn.005c5ef0
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00541324
add esp, 0x10
mov dword [ebp - 0x2c], eax
push 0x1b
mov edx, dword [0x277c024]
add edx, 0x750
push edx
call fcn.00539c2c
add esp, 8
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
push 8
mov eax, dword [ebp - 0x1c]
add eax, 0xd4
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0054139a
add esp, 0x18
mov dword [ebp - 0x18], 3
mov edx, dword [ebp - 0x1c4]
movsx eax, byte [edx + 0xa43]
test eax, eax
je 0x5165dd
mov dword [ebp - 0x18], 3
mov ecx, dword [0x9a2664]
add ecx, 1
mov dword [0x9a2664], ecx
mov eax, dword [0x9a2664]
cdq
idiv dword [ebp - 0x18]
mov dword [0x9a2664], edx
cmp dword [ebp - 0x2c], 0
jl 0x516607
cmp dword [ebp - 0x2c], 0xf
jle 0x51660e
xor eax, eax
jmp 0x5171be
cmp dword [ebp - 8], 0
je 0x51661a
cmp dword [ebp - 0xc], 0
jne 0x516621
xor eax, eax
jmp 0x5171be
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x28]
jg 0x51701d
mov eax, dword [ebp + 8]
fld dword [eax + 0x28]
call fcn.005c5ef0
cmp dword [ebp - 8], eax
jne 0x51701d
mov ecx, dword [ebp + 8]
fld dword [ecx + 0x2c]
call fcn.005c5ef0
cmp dword [ebp - 0xc], eax
jne 0x51701d
mov edx, dword [ebp - 0x1c4]
fld dword [edx + 0x28]
call fcn.005c5ef0
mov ecx, dword [ebp - 0x1c4]
cmp dword [ecx + 0x668], eax
jne 0x51701d
mov edx, dword [ebp - 0x1c4]
fld dword [edx + 0x2c]
call fcn.005c5ef0
mov ecx, dword [ebp - 0x1c4]
cmp dword [ecx + 0x66c], eax
jne 0x51701d
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 0xa25]
cmp eax, 1
jne 0x5166cb
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x218], 0x42
jne 0x5166cb
mov edx, dword [0x6f0ab0]
mov eax, dword [edx + 0x4c]
movsx ecx, byte [eax + 0xa36]
test ecx, ecx
jne 0x5166cb
xor eax, eax
jmp 0x5171be
push 0xa8
push 0
lea edx, [ebp - 0x190]
push edx
call fcn.005c5b80
add esp, 0xc
mov word [ebp - 0x18c], 0x39d
mov eax, dword [ebp - 0x1c4]
mov cx, word [eax + 0x20]
mov word [ebp - 0x18a], cx
mov edx, dword [ebp - 0x1c4]
mov ax, word [edx + 0x20]
mov word [ebp - 0x166], ax
mov ecx, dword [ebp - 0x1c4]
fld dword [ecx + 0x28]
call fcn.005c5ef0
mov word [ebp - 0x16e], ax
mov edx, dword [ebp - 0x1c4]
fld dword [edx + 0x2c]
call fcn.005c5ef0
mov word [ebp - 0x16c], ax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x8b688], 0
je 0x516764
mov ecx, dword [ebp - 0x1c]
mov dx, word [ecx + 0x8b688]
mov word [ebp - 0x16e], dx
mov eax, dword [ebp - 0x1c]
mov cx, word [eax + 0x8b68c]
mov word [ebp - 0x16c], cx
mov dword [ebp - 0x15c], 0xffffffff
mov word [ebp - 0x158], 0xffff
mov byte [ebp - 0x15f], 0
mov edx, dword [0x9a2664]
add edx, 4
mov byte [ebp - 0x162], dl
push 0x15
mov eax, dword [ebp - 0x24]
add eax, 0xbc
push eax
call fcn.00537962
add esp, 8
cmp eax, 0x65
jne 0x5167b3
mov word [ebp - 0x158], 0x97
jmp 0x516ab0
push 0x15
mov ecx, dword [ebp - 0x24]
add ecx, 0xbc
push ecx
call fcn.00537962
add esp, 8
cmp eax, 0x66
jne 0x516828
mov word [ebp - 0x158], 0x98
mov edx, dword [ebp - 0x24]
movsx eax, word [edx + 0xbc]
imul eax, eax, 0x8c
movsx ecx, word [eax + 0xfb9648]
cmp ecx, 0x367
jne 0x5167fd
mov byte [ebp - 0x15f], 0
jmp 0x516823
mov edx, dword [ebp - 0x24]
movsx eax, word [edx + 0xbc]
imul eax, eax, 0x8c
movsx ecx, word [eax + 0xfb9648]
cmp ecx, 0x368
jne 0x516823
mov byte [ebp - 0x15f], 1
jmp 0x516ab0
push 0x15
mov edx, dword [ebp - 0x24]
add edx, 0xbc
push edx
call fcn.00537962
add esp, 8
cmp eax, 0x67
jne 0x516a43
mov word [ebp - 0x158], 0x99
mov eax, dword [ebp - 0x24]
movsx ecx, word [eax + 0xbc]
imul ecx, ecx, 0x8c
movsx edx, word [ecx + 0xfb9648]
cmp edx, 0x369
jne 0x516879
mov byte [ebp - 0x15f], 0
jmp 0x516a41
mov eax, dword [ebp - 0x24]
movsx ecx, word [eax + 0xbc]
imul ecx, ecx, 0x8c
movsx edx, word [ecx + 0xfb9648]
cmp edx, 0x36a
jne 0x5168a4
mov byte [ebp - 0x15f], 1
jmp 0x516a41
mov eax, dword [ebp - 0x24]
movsx ecx, word [eax + 0xbc]
imul ecx, ecx, 0x8c
movsx edx, word [ecx + 0xfb9648]
cmp edx, 0x36b
jne 0x5168cf
mov byte [ebp - 0x15f], 2
jmp 0x516a41
mov eax, dword [ebp - 0x24]
movsx ecx, word [eax + 0xbc]
imul ecx, ecx, 0x8c
movsx edx, word [ecx + 0xfb9648]
cmp edx, 0x36c
jne 0x5168fa
mov byte [ebp - 0x15f], 3
jmp 0x516a41
mov eax, dword [ebp - 0x24]
movsx ecx, word [eax + 0xbc]
imul ecx, ecx, 0x8c
movsx edx, word [ecx + 0xfb9648]
cmp edx, 0x36d
jne 0x516925
mov byte [ebp - 0x15f], 4
jmp 0x516a41
mov eax, dword [ebp - 0x24]
movsx ecx, word [eax + 0xbc]
imul ecx, ecx, 0x8c
movsx edx, word [ecx + 0xfb9648]
cmp edx, 0x37c
jne 0x516950
mov byte [ebp - 0x15f], 5
jmp 0x516a41
mov eax, dword [ebp - 0x24]
movsx ecx, word [eax + 0xbc]
imul ecx, ecx, 0x8c
movsx edx, word [ecx + 0xfb9648]
cmp edx, 0x38b
jne 0x51697b
mov byte [ebp - 0x15f], 6
jmp 0x516a41
mov eax, dword [ebp - 0x24]
movsx ecx, word [eax + 0xbc]
imul ecx, ecx, 0x8c
movsx edx, word [ecx + 0xfb9648]
cmp edx, 0x38c
jne 0x5169a6
mov byte [ebp - 0x15f], 7
jmp 0x516a41
mov eax, dword [ebp - 0x24]
movsx ecx, word [eax + 0xbc]
imul ecx, ecx, 0x8c
movsx edx, word [ecx + 0xfb9648]
cmp edx, 0x38d
jne 0x5169ce
mov byte [ebp - 0x15f], 8
jmp 0x516a41
mov eax, dword [ebp - 0x24]
movsx ecx, word [eax + 0xbc]
imul ecx, ecx, 0x8c
movsx edx, word [ecx + 0xfb9648]
cmp edx, 0x25
jne 0x5169f3
mov byte [ebp - 0x15f], 9
jmp 0x516a41
mov eax, dword [ebp - 0x24]
movsx ecx, word [eax + 0xbc]
imul ecx, ecx, 0x8c
movsx edx, word [ecx + 0xfb9648]
cmp edx, 0x2ff
jne 0x516a1b
mov byte [ebp - 0x15f], 0xa
jmp 0x516a41
mov eax, dword [ebp - 0x24]
movsx ecx, word [eax + 0xbc]
imul ecx, ecx, 0x8c
movsx edx, word [ecx + 0xfb9648]
cmp edx, 0xafe
jne 0x516a41
mov byte [ebp - 0x15f], 0xb
jmp 0x516ab0
push 0x15
mov eax, dword [ebp - 0x24]
add eax, 0xbc
push eax
call fcn.00537962
add esp, 8
cmp eax, 0x68
jne 0x516ab0
mov word [ebp - 0x158], 0x68
mov ecx, dword [ebp - 0x24]
movsx edx, word [ecx + 0xbc]
imul edx, edx, 0x8c
movsx eax, word [edx + 0xfb9648]
cmp eax, 0x36e
jne 0x516a8b
mov byte [ebp - 0x15f], 0
jmp 0x516ab0
mov ecx, dword [ebp - 0x24]
movsx edx, word [ecx + 0xbc]
imul edx, edx, 0x8c
movsx eax, word [edx + 0xfb9648]
cmp eax, 0x36f
jne 0x516ab0
mov byte [ebp - 0x15f], 1
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x20]
mov word [ebp - 0x154], dx
mov eax, dword [ebp - 0x154]
and eax, 0xffff
push eax
mov ecx, dword [0x277c024]
mov edx, dword [ecx]
mov ecx, dword [0x277c024]
call dword [edx + 0x34]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x516aeb
xor eax, eax
jmp 0x5171be
mov eax, dword [0x277c024]
xor ecx, ecx
mov cl, byte [eax + 0xa6a]
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0x150], 0xfffffffe
mov dx, word [0x63a2b0]
mov word [ebp - 0x164], dx
lea eax, [ebp - 0x160]
push eax
push 0x63a2b0
push 0
mov ecx, dword [0x277c024]
add ecx, 0x750
push ecx
call fcn.0054066a
add esp, 0x10
mov edx, dword [ebp - 0x3c]
fld dword [edx + 0x28]
call fcn.005c5ef0
mov word [ebp - 0x16a], ax
mov eax, dword [ebp - 0x3c]
fld dword [eax + 0x2c]
call fcn.005c5ef0
mov word [ebp - 0x168], ax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x38], 0xa8
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov dl, byte [ecx + 0x14]
cmp edx, 3
jne 0x516b9b
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x30c]
and ecx, 0x200000
test ecx, ecx
je 0x516b9b
mov word [ebp - 0x18c], 0x39e
mov dword [ebp - 0x38], 0x50
mov edx, dword [ebp - 0x24]
xor eax, eax
mov al, byte [edx + 0x14]
cmp eax, 3
jne 0x516f8c
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x30c]
and edx, 0x40
test edx, edx
je 0x516f8c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x4c]
mov edx, dword [ebp - 0x3c]
fld dword [edx + 0x28]
fsub dword [ecx + 0x28]
call fcn.005c5ef0
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x4c]
mov edx, dword [ebp - 0x3c]
fld dword [edx + 0x2c]
fsub dword [ecx + 0x2c]
call fcn.005c5ef0
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x194], 0
jle 0x516c09
mov dword [ebp - 0x194], 1
jmp 0x516c1c
cmp dword [ebp - 0x194], 0
jge 0x516c1c
mov dword [ebp - 0x194], 0xffffffff
cmp dword [ebp - 0x198], 0
jle 0x516c31
mov dword [ebp - 0x198], 1
jmp 0x516c44
cmp dword [ebp - 0x198], 0
jge 0x516c44
mov dword [ebp - 0x198], 0xffffffff
mov eax, dword [ebp - 0x3c]
fld dword [eax + 0x28]
call fcn.005c5ef0
add eax, dword [ebp - 0x194]
mov dword [ebp - 0x1a0], eax
mov ecx, dword [ebp - 0x3c]
fld dword [ecx + 0x2c]
call fcn.005c5ef0
add eax, dword [ebp - 0x198]
mov dword [ebp - 0x1a4], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x34]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x19c], ecx
mov edx, dword [ebp - 0x19c]
cmp dword [edx + 0xc], 0
je 0x516f4a
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x19c]
cmp ecx, dword [eax + 0x4c]
je 0x516f36
mov edx, dword [ebp - 0x19c]
cmp edx, dword [ebp - 0x3c]
je 0x516f36
mov eax, dword [ebp - 0x19c]
fld dword [eax + 0x28]
call fcn.005c5ef0
cmp eax, dword [ebp - 0x1a0]
jne 0x516f36
mov ecx, dword [ebp - 0x19c]
fld dword [ecx + 0x2c]
call fcn.005c5ef0
cmp eax, dword [ebp - 0x1a4]
jne 0x516f36
mov edx, dword [ebp - 0x19c]
cmp dword [edx + 0x20], 0
jb 0x516d0d
mov eax, dword [ebp - 0x19c]
cmp dword [eax + 0x20], 0x3e8
jae 0x516d0d
mov dword [ebp - 0x1cc], 1
jmp 0x516d17
mov dword [ebp - 0x1cc], 0
cmp dword [ebp - 0x1cc], 1
jne 0x516ea2
mov ecx, dword [ebp - 0x19c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x19c]
call dword [edx + 0x54]
test eax, eax
je 0x516d4c
mov eax, dword [ebp - 0x19c]
xor ecx, ecx
mov cl, byte [eax + 0x214]
cmp ecx, 1
jne 0x516d60
mov edx, dword [ebp - 0x19c]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x19c], eax
jmp 0x516c81
cmp dword [0x63a2b4], 0
jne 0x516ea0
cmp dword [0x63a2a0], 0
jne 0x516db1
mov ecx, dword [0x277c024]
xor edx, edx
mov dx, word [ecx + 0xf60]
mov eax, dword [ebp - 0x19c]
xor ecx, ecx
mov cx, word [eax + 0x878]
cmp edx, ecx
je 0x516dac
mov edx, dword [ebp - 0x19c]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x19c], eax
jmp 0x516c81
jmp 0x516ea0
mov ecx, dword [ebp - 0x1c4]
movsx edx, byte [ecx + 0xa5a]
test edx, edx
jle 0x516df4
mov eax, dword [ebp - 0x1c4]
movsx ecx, byte [eax + 0xa5a]
mov edx, dword [ebp - 0x19c]
movsx eax, byte [edx + 0xa5a]
cmp ecx, eax
jne 0x516df4
mov ecx, dword [ebp - 0x19c]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x19c], edx
jmp 0x516c81
mov eax, dword [ebp - 0x1c4]
movsx ecx, byte [eax + 0xa5a]
cmp ecx, 3
jne 0x516e77
mov edx, dword [ebp - 0x19c]
cmp dword [edx + 0x20], 0
jb 0x516e2d
mov eax, dword [ebp - 0x19c]
cmp dword [eax + 0x20], 0x3e8
jae 0x516e2d
mov dword [ebp - 0x1d0], 1
jmp 0x516e37
mov dword [ebp - 0x1d0], 0
cmp dword [ebp - 0x1d0], 0
jne 0x516e63
mov ecx, dword [ebp - 0x19c]
movsx edx, byte [ecx + 0xa5a]
test edx, edx
jle 0x516e77
mov eax, dword [ebp - 0x19c]
movsx ecx, byte [eax + 0xa5a]
cmp ecx, 4
je 0x516e77
mov edx, dword [ebp - 0x19c]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x19c], eax
jmp 0x516c81
mov ecx, dword [ebp - 0x19c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x19c]
call dword [edx + 0x58]
test eax, eax
jne 0x516ea0
mov eax, dword [ebp - 0x19c]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x19c], ecx
jmp 0x516c81
jmp 0x516f19
cmp dword [0x63a2b4], 0
jne 0x516f19
mov edx, dword [ebp - 0x19c]
movsx eax, byte [edx + 0x215]
cmp eax, 1
jne 0x516f19
mov ecx, dword [0x277c024]
xor edx, edx
mov dx, word [ecx + 0xf60]
mov eax, dword [ebp - 0x19c]
xor ecx, ecx
mov cx, word [eax + 0x878]
cmp edx, ecx
je 0x516ef2
mov edx, dword [ebp - 0x19c]
xor eax, eax
mov ax, word [edx + 0x878]
test eax, eax
jne 0x516f05
mov ecx, dword [ebp - 0x19c]
xor edx, edx
mov dx, word [ecx + 0x878]
test edx, edx
jne 0x516f19
mov eax, dword [ebp - 0x19c]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x19c], ecx
jmp 0x516c81
mov edx, dword [ebp - 0x19c]
mov ax, word [edx + 0x20]
mov word [ebp - 0x14c], ax
mov dword [ebp - 0x148], 0xfffffffe
jmp 0x516f4a
mov ecx, dword [ebp - 0x19c]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x19c], edx
jmp 0x516c81
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x30c]
and ecx, 0x200000
cmp ecx, 0x200000
je 0x516f7c
cmp dword [ebp - 0x148], 0xfffffffe
je 0x516f7c
mov word [ebp - 0x18c], 0x39d
mov dword [ebp - 0x38], 0x48
jmp 0x516f8c
mov word [ebp - 0x18c], 0x39e
mov dword [ebp - 0x38], 0x50
mov edx, dword [ebp - 0x38]
push edx
lea eax, [ebp - 0x190]
push eax
call fcn.0054da23
add esp, 8
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 0x190]
push edx
lea eax, [ebp - 0xe4]
push eax
call fcn.005c5f60
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov dx, word [ecx + 0x20]
mov word [ebp - 0xde], dx
mov byte [ebp - 0xb5], 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x30c]
and ecx, 0x20000000
test ecx, ecx
je 0x516ff0
mov dl, byte [ebp - 0xb4]
or dl, 4
mov byte [ebp - 0xb4], dl
lea eax, [ebp - 0xe4]
push eax
push 0x39d
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1c]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x2754c], ecx
mov eax, 1
jmp 0x5171be
cmp dword [ebp + 0xc], 0
jne 0x51702a
xor eax, eax
jmp 0x5171be
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov word [ebp - 0x1b0], ax
mov edx, dword [ebp - 0x1b0]
and edx, 0xffff
sar edx, 8
test edx, edx
jle 0x517053
xor eax, eax
jmp 0x5171be
mov eax, dword [ebp - 0x1c4]
fld dword [eax + 0x28]
call fcn.005c5ef0
mov dword [ebp - 0x1bc], eax
mov ecx, dword [ebp - 0x1c4]
fld dword [ecx + 0x2c]
call fcn.005c5ef0
mov dword [ebp - 0x1c0], eax
mov edx, dword [ebp + 8]
fld dword [edx + 0x28]
call fcn.005c5ef0
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
fld dword [eax + 0x2c]
call fcn.005c5ef0
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x1c0]
push eax
mov ecx, dword [ebp - 0x1bc]
push ecx
call fcn.00541324
add esp, 0x10
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1b4], 1
mov dword [ebp - 0x1b8], 1
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 8]
jle 0x5170e1
mov dword [ebp - 0x1b4], 0xffffffff
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0xc]
jle 0x5170f3
mov dword [ebp - 0x1b8], 0xffffffff
mov dword [ebp - 0x1ac], 0
mov ecx, dword [ebp - 0x1a8]
cmp ecx, dword [ebp - 0x28]
jle 0x51717b
cmp dword [ebp - 0x1ac], 0x1f4
jle 0x51711b
xor eax, eax
jmp 0x5171be
mov edx, dword [ebp - 0x1bc]
cmp edx, dword [ebp - 8]
je 0x517138
mov eax, dword [ebp - 0x1bc]
add eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x1bc], eax
mov ecx, dword [ebp - 0x1c0]
cmp ecx, dword [ebp - 0xc]
je 0x517155
mov edx, dword [ebp - 0x1c0]
add edx, dword [ebp - 0x1b8]
mov dword [ebp - 0x1c0], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x1c0]
push edx
mov eax, dword [ebp - 0x1bc]
push eax
call fcn.00541324
add esp, 0x10
mov dword [ebp - 0x1a8], eax
jmp 0x5170fd
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1bc]
mov dword [ecx + 0x276dc], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c0]
mov dword [eax + 0x276e0], ecx
push 0
push 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x276e0]
push eax
mov ecx, dword [edx + 0x276dc]
push ecx
mov ecx, dword [ebp - 0x1c4]
call fcn.005054e8
mov eax, 2
mov esp, ebp
pop ebp
ret 8