Function at 0x402dc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x423008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x40307f
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
je 0x40307f
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x2c
call edi
test ax, ax
jns 0x40307e
mov ecx, dword [esi + 0x24]
test ecx, ecx
jne 0x402e0d
xor eax, eax
jmp 0x402e12
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edx, dword [eax]
mov ecx, eax
push ebx
push str.DX9Render
call dword [edx + 4]
mov ebx, eax
mov dword [ebp - 0x148], ebx
test ebx, ebx
je 0x40307d
push 0x12
call edi
test ax, ax
jns 0x403071
call fcn.0040afc3
push eax
push dword [esi + 0x58]
lea eax, [ebp - 0x44]
push str._big_.4u_.4u_
push 0x3f
push eax
call fcn.004010b0
inc dword [esi + 0x58]
add esp, 0x14
mov ecx, dword [esi + 0x24]
mov byte [ebp - 5], 0
test ecx, ecx
je 0x402e6d
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x60]
call eax
mov ecx, dword [esi + 0x24]
mov byte [ebp - 0x150], al
test ecx, ecx
je 0x402e88
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x58]
call eax
mov ecx, dword [esi + 0x24]
fstp dword [ebp - 0x14c]
test ecx, ecx
jne 0x402ea0
xor eax, eax
jmp 0x402ea5
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edx, dword [eax]
push ecx
mov ecx, eax
mov dword [esp], 0
call dword [edx + 0x54]
mov ecx, dword [esi + 0x24]
test ecx, ecx
jne 0x402ebf
xor eax, eax
jmp 0x402ec4
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0x5c]
mov ecx, dword [esi + 0x24]
test ecx, ecx
jne 0x402ed8
xor eax, eax
jmp 0x402edd
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x38]
push 1
push str.system.screenshot.Largeshot
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
xor ebx, ebx
xor edi, edi
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x402f04
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, eax
mov eax, dword [ecx]
push 0x1b
mov eax, dword [eax + 0x98]
call eax
test al, al
jne 0x402ff9
mov ecx, dword [esi + 0x24]
test ecx, ecx
jne 0x402f23
xor eax, eax
jmp 0x402f28
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x38]
push ecx
mov dword [esp], 0x41000000
mov ecx, eax
push str.system.screenshot.Projection_scale
mov edx, dword [eax]
call dword [edx + 0x18]
mov ecx, dword [esi + 0x24]
test ecx, ecx
jne 0x402f4e
xor eax, eax
jmp 0x402f53
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x38]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
push ecx
mov edx, dword [eax]
mov ecx, eax
movss dword [esp], xmm0
push str.system.screenshot.Projection_x
call dword [edx + 0x18]
mov ecx, dword [esi + 0x24]
test ecx, ecx
jne 0x402f7e
xor eax, eax
jmp 0x402f83
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x38]
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
push ecx
mov edx, dword [eax]
mov ecx, eax
movss dword [esp], xmm0
push str.system.screenshot.Projection_y
call dword [edx + 0x18]
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
call dword [eax + 0x14]
push ebx
push edi
push 8
lea eax, [ebp - 0x44]
push eax
push str._s_c_.2u_x_.2u_y_.2u_
lea eax, [ebp - 0x144]
push 0xff
push eax
call fcn.004010b0
mov ecx, dword [ebp - 0x148]
lea edx, [ebp - 0x144]
add esp, 0x1c
mov byte [ebp - 0x45], 0
mov eax, dword [ecx]
push edx
call dword [eax + 0x188]
inc edi
cmp edi, 8
jl 0x402ef6
inc ebx
cmp ebx, 8
jl 0x402ef4
mov ecx, dword [esi + 0x24]
test ecx, ecx
jne 0x403004
xor eax, eax
jmp 0x403009
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edx, dword [eax]
movss xmm0, dword [ebp - 0x14c]
push ecx
mov ecx, eax
movss dword [esp], xmm0
call dword [edx + 0x54]
mov ecx, dword [esi + 0x24]
test ecx, ecx
jne 0x403029
xor eax, eax
jmp 0x40302e
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp - 0x150]
call dword [edx + 0x5c]
mov ecx, dword [esi + 0x24]
test ecx, ecx
jne 0x403046
xor eax, eax
jmp 0x40304b
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x38]
push 0
push str.system.screenshot.Largeshot
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004047d8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax + 0x188]
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004047d8
mov esp, ebp
pop ebp
ret