Function at 0x4044c0
Capabilities:
Enumerate gui resources
Log keystrokes via polling

Disassembly:
sub esp, 0x9c
push ebx
push ebp
mov ebp, dword [esp + 0xa8]
push esi
push edi
lea esi, [ebp + 0x7c]
lea edi, [esp + 0xb4]
lea ebx, [esp + 0x14]
call fcn.00402550
mov eax, dword [esp + 0x14]
cmp eax, dword [ebp + 0x84]
je 0x404549
add eax, 0xc
lea esi, [esp + 0x1c]
call fcn.00418a30
mov edi, dword [esp + 0x1c]
test byte [edi + 0x10], 4
jne 0x404518
mov ebx, dword [esp + 0xb4]
push ebx
call dword [0x43924c]
test eax, eax
jne 0x40455b
mov esi, dword [esp + 0x20]
test esi, esi
je 0x404549
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x404549
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x404549
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 8
mov eax, dword [ebp + 0x74]
add eax, 0xff0c
lea esi, [esp + 0x24]
call fcn.00418a30
mov ebp, dword [esp + 0x24]
lea eax, [esp + 0x6c]
push eax
push ebx
add ebp, 0x118
mov dword [esp + 0x74], 0x3c
call dword [0x4392a8]
sub esp, 8
lea eax, [esp + 0x24]
mov esi, esp
call fcn.00418a30
push 1
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
push ecx
mov eax, ebp
lea edx, [esp + 0x88]
mov ecx, ebx
call fcn.004026d0
test al, al
jne 0x404631
push 0
mov esi, edi
call fcn.0041c6f0
test byte [edi + 0x10], 2
je 0x40460d
lea edx, [esp + 0x30]
push edx
push ebx
mov dword [esp + 0x38], 0x3c
call dword [0x4392a8]
mov eax, dword [edi + 0x18]
mov esi, dword [0x439280]
and dword [edi + 0x10], 0xfffffffd
not eax
and eax, dword [esp + 0x54]
push eax
push 0xfffffffffffffff0
push ebx
call esi
mov ecx, dword [edi + 0x1c]
not ecx
and ecx, dword [esp + 0x58]
push ecx
push 0xffffffffffffffec
push ebx
call esi
lea eax, [esp + 0x24]
call fcn.00402510
lea eax, [esp + 0x1c]
call fcn.00402510
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 8
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push 1
push edx
push eax
push ecx
push ebp
sub esp, 8
lea eax, [esp + 0x38]
mov esi, esp
call fcn.00418a30
mov esi, dword [esp + 0x2c]
push ebx
mov eax, esi
call fcn.0041a170
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x1a0]
test al, 0x60
je 0x404707
push 0x17
call dword [0x439310]
neg eax
sbb eax, eax
neg eax
inc eax
push eax
call dword [0x439290]
mov edx, dword [edi + 0x14]
mov ecx, dword [ebp + 0x10]
push edx
test ax, ax
setne al
mov byte [esp + 0x14], al
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 4]
push edx
mov edx, dword [edi + 0x10]
and dl, 1
cmp dl, 1
mov edx, dword [ebp + 0x18]
mov ebp, dword [esp + 0xb8]
push 1
push eax
sete bl
add edx, ecx
add edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x2c]
sub edx, eax
push edx
mov edx, dword [edi]
mov eax, esi
sub eax, ecx
push eax
mov eax, dword [ebp + 0x74]
lea ecx, [esp + 0x88]
push ecx
push edx
push eax
call fcn.004198a0
mov ecx, dword [esp + 0xb4]
push 0x101
push 0
push 0
push ecx
call dword [0x4392c4]
call dword [0x4391a8]
mov ebx, dword [esp + 0xb4]
mov dword [edi + 0x34], eax
jmp 0x40470e
mov ebp, dword [esp + 0xb0]
mov edx, dword [esp + 0x18]
push edx
push esi
lea edi, [ebp + 0xa8]
push ebx
mov esi, edi
call fcn.00415980
cmp eax, 1
jne 0x40473e
lea esi, [esp + 0x10]
call fcn.0041c820
push ebp
push 0x402ab0
call dword [0x4392b0]
jmp 0x404767
cmp eax, 2
jne 0x404770
lea esi, [esp + 0x10]
call fcn.0041c820
call fcn.00415ad0
push 0x603
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [0x43930c]
lea eax, [esp + 0x10]
call fcn.0041c870
lea eax, [esp + 0x24]
call fcn.00402510
lea eax, [esp + 0x1c]
call fcn.00402510
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x9c
ret 8