Function at 0x442350
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564824
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x661850]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], ecx
push str.Wed_Aug__5_17:27:10_2015
push 0x254
push str.CWaiGua::AutoMagicShield
push str.GameProcessWaiGua.cpp
lea ecx, [ebp - 0xd]
call fcn.004024e0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x70]
movzx ecx, byte [eax + 0x3aa5]
test ecx, ecx
jne 0x442799
movzx edx, byte [0x7aaf68]
test edx, edx
jne 0x442799
mov eax, dword [ebp - 0x70]
movzx ecx, byte [eax + 0x3aa4]
test ecx, ecx
je 0x442799
movzx edx, byte [0x7ac42c]
test edx, edx
jne 0x442799
movzx eax, byte [0x7ac42d]
test eax, eax
jne 0x442799
mov byte [ebp - 0xe], 0
mov dword [ebp - 0x18], 0x70
jmp 0x442402
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0x7b
jg 0x44242a
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 8
and eax, 0xff
movzx ecx, al
test ecx, ecx
je 0x442428
mov byte [ebp - 0xe], 1
jmp 0x44242a
jmp 0x4423f9
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
shr edx, 8
and edx, 0xff
mov byte [ebp - 0x10], dl
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 8
and eax, 0xff
mov byte [ebp - 0xf], al
call fcn.0040ada0
mov dword [ebp - 0x14], eax
mov ecx, dword [0x7ac5fc]
add ecx, 0xdc
cmp dword [ebp - 0x14], ecx
jbe 0x442799
movzx edx, byte [ebp - 0xe]
test edx, edx
jne 0x442799
movzx eax, byte [ebp - 0x10]
test eax, eax
jne 0x442799
movzx ecx, byte [ebp - 0xf]
test ecx, ecx
jne 0x442799
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x19], 0
mov dword [ebp - 0x20], 0xffffffff
push 0x5797d4
mov ecx, 0x79566c
call fcn.004bafb0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4425a7
mov edx, dword [0x7a82b0]
and edx, 0x100000
jne 0x4425a2
mov ecx, dword [ebp - 0x24]
call fcn.0044a640
movzx ecx, word [0x7a82a6]
cmp eax, ecx
ja 0x4425a2
call fcn.0040ada0
mov edx, dword [0x7ab01c]
add edx, 0x258
cmp eax, edx
jbe 0x4425a2
call fcn.0040ada0
mov ecx, dword [0x66a9a4]
add ecx, 0x3e8
cmp eax, ecx
jbe 0x4425a2
call fcn.0040ada0
mov dword [0x66a9a4], eax
mov edx, dword [0x7a8024]
mov dword [ebp - 0x28], edx
movzx eax, word [0x7a81c0]
mov dword [ebp - 0x3c], eax
movzx ecx, word [0x7a81c2]
mov dword [ebp - 0x38], ecx
mov edx, dword [0x7a814c]
mov dword [ebp - 0x34], edx
mov eax, dword [0x7a8150]
mov dword [ebp - 0x30], eax
mov cx, word [0x7a8154]
mov word [ebp - 0x2c], cx
sub esp, 0xc
mov edx, esp
mov eax, dword [ebp - 0x34]
mov dword [edx], eax
mov ecx, dword [ebp - 0x30]
mov dword [edx + 4], ecx
mov ax, word [ebp - 0x2c]
mov word [edx + 8], ax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [0x7ada48]
push ecx
mov edx, dword [0x7ada44]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, 0x7a8020
call fcn.004cda30
jmp 0x44269f
push 0x5797cc
mov ecx, 0x79566c
call fcn.004bafb0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x44269f
mov ecx, dword [0x7a82b0]
and ecx, 0x10000
jne 0x44269f
mov ecx, dword [ebp - 0x24]
call fcn.0044a640
movzx edx, word [0x7a82a6]
cmp eax, edx
ja 0x44269f
call fcn.0040ada0
mov ecx, dword [0x7ab01c]
add ecx, 0x258
cmp eax, ecx
jbe 0x44269f
call fcn.0040ada0
mov edx, dword [0x66a9a0]
add edx, 0x3e8
cmp eax, edx
jbe 0x44269f
call fcn.0040ada0
mov dword [0x66a9a0], eax
mov eax, dword [0x7a8024]
mov dword [ebp - 0x40], eax
movzx ecx, word [0x7a81c0]
mov dword [ebp - 0x54], ecx
movzx edx, word [0x7a81c2]
mov dword [ebp - 0x50], edx
mov eax, dword [0x7a814c]
mov dword [ebp - 0x4c], eax
mov ecx, dword [0x7a8150]
mov dword [ebp - 0x48], ecx
mov dx, word [0x7a8154]
mov word [ebp - 0x44], dx
sub esp, 0xc
mov eax, esp
mov ecx, dword [ebp - 0x4c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x48]
mov dword [eax + 4], edx
mov cx, word [ebp - 0x44]
mov word [eax + 8], cx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [0x7ada48]
push edx
mov eax, dword [0x7ada44]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, 0x7a8020
call fcn.004cda30
push 0x5797c0
mov ecx, 0x79566c
call fcn.004bafb0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x442799
mov edx, dword [0x7a82b0]
and edx, 0x40000
jne 0x442799
mov ecx, dword [ebp - 0x24]
call fcn.0044a640
movzx ecx, word [0x7a82a6]
cmp eax, ecx
ja 0x442799
call fcn.0040ada0
mov edx, dword [0x7ab01c]
add edx, 0x258
cmp eax, edx
jbe 0x442799
call fcn.0040ada0
mov ecx, dword [0x66a99c]
add ecx, 0x3e8
cmp eax, ecx
jbe 0x442799
call fcn.0040ada0
mov dword [0x66a99c], eax
mov edx, dword [0x7a8024]
mov dword [ebp - 0x58], edx
movzx eax, word [0x7a81c0]
mov dword [ebp - 0x6c], eax
movzx ecx, word [0x7a81c2]
mov dword [ebp - 0x68], ecx
mov edx, dword [0x7a814c]
mov dword [ebp - 0x64], edx
mov eax, dword [0x7a8150]
mov dword [ebp - 0x60], eax
mov cx, word [0x7a8154]
mov word [ebp - 0x5c], cx
sub esp, 0xc
mov edx, esp
mov eax, dword [ebp - 0x64]
mov dword [edx], eax
mov ecx, dword [ebp - 0x60]
mov dword [edx + 4], ecx
mov ax, word [ebp - 0x5c]
mov word [edx + 8], ax
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [0x7ada48]
push ecx
mov edx, dword [0x7ada44]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, 0x7a8020
call fcn.004cda30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.00402620
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret