Function at 0x440040
Capabilities:
Log keystrokes
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x8c]
push eax
mov eax, dword [esp + 0x98]
call fcn.0044de50
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je case.0x44043a.3
cmp word [edi], 0
mov eax, connect
mov dword [esp + 0x14], 2
mov byte [esp + 0x8c], 0
mov byte [esp + 0x94], 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov esi, edi
je 0x440178
lea ebx, [edi + 2]
lea ecx, [ecx]
movzx edi, word [esi]
test edi, 0xffffff80
jne 0x4400bd
push 2
push edi
call fcn.0049b90c
add esp, 8
test eax, eax
je 0x4400bd
and edi, 0xffffffdf
movzx eax, di
add eax, 0xffffffbc
cmp eax, 0x15
ja case.0x4400d3.69
movzx ecx, byte [eax + 0x4406a0]
jmp dword [ecx*4 + 0x440684]
mov dword [esp + 0x14], 0
jmp case.0x4400d3.69
mov dword [esp + 0x14], 1
jmp case.0x4400d3.69
movzx edi, word [ebx]
test edi, 0xffffff80
jne 0x44010b
push 2
push edi
call fcn.0049b90c
add esp, 8
test eax, eax
je 0x44010b
and edi, 0xffffffdf
cmp di, 0x41
jne case.0x4400d3.69
add esi, 2
add ebx, 2
mov byte [esp + 0x94], 0
jmp case.0x4400d3.69
push 3
push 0x4b5944
push esi
call fcn.0049a3aa
add esp, 0xc
test eax, eax
jne case.0x4400d3.69
add esi, 4
add ebx, 4
mov byte [esp + 0x8c], 1
jmp case.0x4400d3.69
push ebx
call fcn.0049a0cd
mov dword [esp + 0x24], eax
jmp 0x44015b
push ebx
call fcn.0049a0cd
mov dword [esp + 0x28], eax
add esp, 4
add esi, 2
add ebx, 2
cmp word [esi], 0
jne 0x4400a0
cmp byte [esp + 0x8c], 0
jne 0x440196
mov esi, dword [esp + 0x90]
push ebp
call fcn.00484d30
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
jne 0x4402e9
push 0x2c
lea edx, [esp + 0x50]
push 0
push edx
mov dword [esp + 0x54], 0
call fcn.004a49c0
mov edi, dword [esp + 0x9c]
add esp, 0xc
mov byte [esp + 0x70], 1
jmp 0x4401c0
movzx eax, word [edi]
cmp eax, 0x20
je 0x4401cd
cmp eax, 9
jne 0x4401d2
add edi, 2
jmp 0x4401c0
movzx esi, word [edi]
test esi, 0xffffff80
jne 0x4401ef
push 2
push esi
call fcn.0049b90c
add esp, 8
test eax, eax
je 0x4401ef
and esi, 0xffffffdf
cmp si, 0x58
jne case.0x44043a.3
cmp word [edi + 2], 0
lea esi, [edi + 2]
je case.0x44043a.3
mov eax, esi
call fcn.00404010
test al, al
je 0x440221
push 0x10
push 0
push esi
call fcn.0049bf9d
add esp, 0xc
jmp 0x44022a
push esi
call fcn.0049a0cd
add esp, 4
mov dword [esp + 0x48], eax
mov ebx, 0x4b3acc
mov eax, esi
call fcn.0040558a
test eax, eax
je case.0x44043a.3
lea esi, [eax + 2]
movzx eax, word [esi]
cmp eax, 0x20
je 0x440252
cmp eax, 9
jne 0x440257
add esi, 2
jmp 0x440245
movzx eax, word [esi]
test ax, ax
je case.0x44043a.3
push eax
call fcn.0049c613
add esp, 4
cmp ax, 0x59
jne case.0x44043a.3
add esi, 2
cmp word [esi], 0
je case.0x44043a.3
call fcn.004142c0
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x38]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
add dword [esp + 0x48], ecx
add dword [esp + 0x4c], edx
lea eax, [esp + 0x48]
push eax
push 0x446e40
push ebp
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov esi, dword [esp + 0x60]
test esi, esi
je 0x4402c7
mov dword [esp + 0x10], esi
jmp 0x4402cd
mov esi, ebp
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [esp + 0x88], 1
jge 0x440314
mov ecx, dword [0x4d9f14]
push 1
push 0
push 0xffffffffffffffff
push 0x4af9a8
push ecx
call fcn.00483320
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0x18
mov ecx, dword [esp + 0x20]
cmp ecx, 0x80000000
je 0x44032c
mov edi, dword [esp + 0x24]
cmp edi, 0x80000000
jne 0x44037e
lea edx, [esp + 0x28]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je case.0x44043a.3
mov ecx, dword [esp + 0x20]
cmp ecx, 0x80000000
jne 0x44035f
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov dword [esp + 0x20], ecx
mov edi, dword [esp + 0x24]
cmp edi, 0x80000000
jne 0x44037e
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [esp + 0x24], edi
mov bl, byte [esp + 0x84]
mov dword [esp + 0x1c], 0
cmp bl, 0x9f
je 0x44039b
cmp bl, 0x9e
je 0x44039b
xor al, al
jmp 0x44039d
mov al, 1
mov byte [esp + 0x84], al
cmp bl, 0x9c
je 0x4403b2
cmp bl, 0x9d
je 0x4403b2
xor dl, dl
jmp 0x4403b4
mov dl, 1
mov byte [esp + 0x90], dl
test al, al
je 0x440400
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
xor edx, edx
cmp bl, 0x9f
setne dl
mov ebx, 0x20a
lea ebp, [edx - 1]
and ebp, 0xf0
add ebp, 0xffffff88
imul ebp, dword [esp + 0x88]
shl ebp, 0x10
jmp 0x4404b2
test dl, dl
je 0x44042d
xor eax, eax
cmp bl, 0x9c
setne al
mov ebx, 0x20e
lea ebp, [eax - 1]
and ebp, 0xffffff10
add ebp, 0x78
imul ebp, dword [esp + 0x88]
shl ebp, 0x10
jmp 0x4404b2
movzx edx, bl
dec edx
cmp edx, 5
ja case.0x44043a.3
jmp dword [edx*4 + 0x4406b8]
mov ebx, 0x201
mov dword [esp + 0x80], 0x202
mov ebp, 1
jmp 0x4404b2
mov ebx, 0x204
mov dword [esp + 0x80], 0x205
mov ebp, 2
jmp 0x4404b2
mov ebx, 0x207
mov dword [esp + 0x80], 0x208
mov ebp, 0x10
jmp 0x4404b2
mov dword [esp + 0x1c], 0x10000
mov ebp, 0x10020
jmp 0x4404a2
mov dword [esp + 0x1c], 0x20000
mov ebp, 0x20040
mov dword [esp + 0x80], 0x20c
mov ebx, 0x20b
movzx edi, di
movzx ecx, cx
shl edi, 0x10
or edi, ecx
cmp byte [esp + 0x94], 0
mov byte [esp + 0x8c], 0
je 0x440528
mov edx, dword [esp + 0x18]
push 0
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x94], eax
test eax, eax
je 0x44051d
cmp eax, dword [0x4da710]
je 0x44051d
mov esi, dword [esp + 0x18]
call fcn.00485270
test al, al
jne 0x44051d
mov ecx, dword [esp + 0x94]
mov edx, dword [0x4da710]
push 1
push ecx
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x8c]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
cmp byte [esp + 0x84], 0
jne 0x4405c9
cmp byte [esp + 0x90], 0
jne 0x4405c9
mov eax, dword [esp + 0x88]
test eax, eax
jle 0x4405f0
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
mov dword [esp + 0x84], eax
cmp dword [esp + 0x14], 1
je 0x44058a
mov ecx, dword [esp + 0x10]
push edi
push ebp
push ebx
push ecx
call esi
mov edx, dword [0x4d5b14]
mov eax, dword [edx + 0x58]
cmp eax, 0xffffffff
jle 0x44058a
push 1
push eax
call fcn.004014c0
add esp, 8
cmp dword [esp + 0x14], 0
je 0x4405be
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x10]
push edi
push eax
push ecx
push edx
call esi
mov eax, dword [0x4d5b14]
mov eax, dword [eax + 0x58]
cmp eax, 0xffffffff
jle 0x4405be
push 1
push eax
call fcn.004014c0
add esp, 8
dec dword [esp + 0x84]
jne 0x440560
jmp 0x4405f0
mov ecx, dword [esp + 0x10]
push edi
push ebp
push ebx
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [0x4d5b14]
mov eax, dword [edx + 0x58]
cmp eax, 0xffffffff
jle 0x4405f0
push 1
push eax
call fcn.004014c0
add esp, 8
cmp byte [esp + 0x8c], 0
je 0x440611
mov eax, dword [esp + 0x94]
mov ecx, dword [0x4da710]
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov edx, dword [0x4d9f14]
push 1
push 0
push 0xffffffffffffffff
push 0x4af9a8
push edx
call fcn.00483320
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0x18
mov eax, dword [0x4d5b14]
test byte [eax + 0x100], 1
jne 0x440661
mov ecx, dword [0x4d9f14]
push 1
push 0
push 0xffffffffffffffff
push 0x4b35d4
push ecx
call fcn.00483320
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0x18
mov ebx, dword [esp + 0x80]
push 0x4b0cf8
push 0
push 0x4b35d4
call fcn.00439cd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0x18