Function at 0x446f80
Capabilities:
Check for foreground window switch
Check for peb beingdebugged flag
Check os version
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x479094
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4951c0]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4951c0]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov eax, dword [esp + 0x26c]
mov edx, dword [0x544434]
mov edi, ecx
mov ecx, dword [0x4edba4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x53b594]
mov dword [esp + 0x38], eax
mov eax, dword [0x4edba0]
add ecx, 2
mov dword [esp + 0x54], edx
mov edx, dword [0x53c458]
mov dword [esp + 0x58], eax
mov eax, dword [0x4ac80c]
mov dword [esp + 0x5c], ecx
mov ecx, dword [0x53b16c]
add edx, 2
cmp dword [0x58fb10], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x34], 0
mov dword [esp + 0x60], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x30], ecx
mov ebx, 1
jne 0x447058
xor eax, eax
call fcn.004566d0
lea edx, [esp + 0x54]
push edx
push 0
push ebx
xor edx, edx
mov ecx, edi
call fcn.0045f070
mov dword [0x49b484], ebx
mov dword [0x53b590], ebx
cmp dword [esp + 0x268], 0
mov ebp, 0x539fc8
jne 0x44706c
mov ebp, 0x4ed668
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x447071
sub eax, edx
mov esi, eax
imul esi, dword [0x4ed33c]
mov eax, dword [0x4965ec]
cdq
sub eax, edx
mov ecx, eax
shr esi, 2
sar ecx, 1
sub ecx, esi
cmp ecx, ebx
jge 0x44709a
mov ecx, ebx
mov eax, dword [0x4ad7b8]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [0x4967f0]
sar esi, 1
add esi, ebx
imul esi, dword [0x544748]
cdq
sub eax, edx
sar eax, 1
sub eax, esi
cmp eax, ebx
jge 0x4470c1
mov eax, ebx
cmp dword [0x4edb80], ebx
jge 0x4470cf
mov dword [0x544748], ebx
neg ecx
neg eax
cmp byte [0x52db08], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
je 0x447107
cmp dword [0x653778], 0
push 0
push 0x52db08
je 0x447100
mov ecx, 0xa
call fcn.004700b0
jmp 0x447107
mov ecx, edi
call fcn.00471890
mov eax, dword [0x52d868]
shl eax, 8
add eax, dword [0x4ed664]
lea ecx, [esp + 0x18]
shl eax, 8
add eax, dword [0x544c8c]
mov edx, edi
push eax
push ecx
push ebp
lea ecx, [esp + 0x28]
call fcn.00445d00
push fcn.00401000
push fcn.004030d0
push 0x14
push 4
lea edx, [esp + 0xcc]
push edx
mov dword [esp + 0x78], 0x485d70
mov dword [esp + 0x7c], 0x485d74
mov dword [esp + 0x80], 0x485d78
mov dword [esp + 0x84], 0x485d7c
mov dword [esp + 0x88], 0x485d80
mov dword [esp + 0x8c], 0x485d84
mov dword [esp + 0x90], 0x485d88
mov dword [esp + 0x94], 0x485d8c
mov dword [esp + 0x98], 0x485d90
mov dword [esp + 0x9c], 0x485d94
mov dword [esp + 0xa0], 0x485d98
mov dword [esp + 0xa4], 0x485da0
mov dword [esp + 0xa8], 0x485da8
mov dword [esp + 0xac], 0x485db0
mov dword [esp + 0xb0], 0x485db8
mov dword [esp + 0xb4], 0x485dc0
mov dword [esp + 0xb8], 0x485dc8
mov dword [esp + 0xbc], 0x485dd0
mov dword [esp + 0xc0], 0x485dd8
mov dword [esp + 0xc4], 0x485de0
mov dword [esp + 0xc8], 0x485de8
call fcn.00409684
xor ebx, ebx
mov dword [esp + 0x260], ebx
mov edi, dword [0x4ad7b8]
cmp edi, ebx
jle 0x44742c
lea esi, [esp + ebx*4 + 0xbc]
mov edi, 0x52da00
call fcn.00402270
cmp dword [0x4ad7b8], 9
jle 0x44726e
cmp ebx, 9
jge 0x44726e
mov eax, 0x485df0
mov ecx, esi
call fcn.004040c0
mov eax, dword [esp + ebx*4 + 0x68]
mov ecx, esi
call fcn.004040c0
mov eax, 0x485df4
mov ecx, esi
call fcn.004040c0
cmp byte [0x58fba8], 0
lea ebp, [ebx + 1]
mov dword [esp + 0x18], ebp
push ebp
je 0x4472b0
mov eax, dword [0x49a31c]
push 0x58fba8
push str._s_save_d.dat
push eax
call fcn.004081b3
add esp, 0x10
jmp 0x4472c4
mov ecx, dword [0x49a31c]
push str.save_d.dat
push ecx
call fcn.004081b3
add esp, 0xc
mov edx, dword [0x49a31c]
push 0
push edx
call fcn.00408562
add esp, 8
test eax, eax
jne 0x447405
push eax
mov eax, dword [0x49a31c]
push 0x8000
push eax
call fcn.00408230
add esp, 0xc
lea ecx, [esp + 0x10c]
mov edi, eax
push ecx
push edi
call fcn.0040a66f
push edi
call fcn.00409464
lea edx, [esp + 0x138]
add esp, 0xc
push edx
call fcn.0040afb5
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
add esp, 4
push ecx
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 0x10]
push ecx
inc edx
push edx
lea eax, [esp + 0x19c]
push 0x485e18
push eax
call fcn.004081b3
lea eax, [esp + 0x1a4]
add esp, 0x18
xor edi, edi
xor esi, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x447350
sub eax, edx
je 0x4473e3
nop
movzx ecx, byte [esp + esi + 0x18c]
push ecx
call fcn.00409e4f
add esp, 4
test eax, eax
je 0x4473a0
movzx edx, byte [esp + esi + 0x18c]
mov eax, dword [esp + edx*4 - 0x5c]
mov cl, byte [eax]
mov eax, dword [0x49a31c]
mov byte [edi + eax], cl
movzx edx, byte [esp + esi + 0x18c]
mov ecx, dword [esp + edx*4 - 0x5c]
mov dl, byte [ecx + 1]
inc edi
mov byte [edi + eax], dl
jmp 0x4473bf
mov cl, byte [esp + esi + 0x18c]
mov eax, dword [0x49a31c]
cmp cl, 0x20
jne 0x4473bc
mov byte [edi + eax], 0x81
inc edi
mov byte [edi + eax], 0x40
jmp 0x4473bf
mov byte [edi + eax], cl
lea ecx, [esp + 0x18c]
inc edi
inc esi
lea ebp, [ecx + 1]
jmp 0x4473d0
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4473d0
sub ecx, ebp
cmp esi, ecx
jb 0x447360
mov ebp, dword [esp + 0x18]
jmp 0x4473e8
mov eax, dword [0x49a31c]
lea ecx, [esp + ebx*4 + 0xbc]
mov byte [edi + eax], 0
call fcn.004040c0
mov dword [esp + ebx*4 + 0x13c], 1
jmp 0x44741c
mov eax, 0x485e30
mov ecx, esi
call fcn.004040c0
mov dword [esp + ebx*4 + 0x13c], 0
mov edi, dword [0x4ad7b8]
mov ebx, ebp
cmp ebx, edi
jl 0x447243
mov ecx, dword [esp + 0xbc]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x447438
mov ebp, dword [0x4ed33c]
sub eax, esi
mov esi, eax
mov eax, dword [0x4965ec]
imul esi, ebp
cdq
sub eax, edx
sar eax, 1
shr esi, 2
mov edx, eax
sub edx, esi
cmp edx, 1
mov dword [esp + 0x1c], edx
jge 0x44746e
mov dword [esp + 0x1c], 1
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x447471
sub ecx, esi
imul ecx, ebp
shr ecx, 2
add ecx, eax
mov eax, edi
cdq
sub eax, edx
mov dword [esp + 0x3c], ecx
mov ecx, eax
mov eax, dword [0x4967f0]
sar ecx, 1
dec ecx
imul ecx, dword [0x544748]
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
sub ebx, ecx
cmp ebx, 1
mov dword [esp + 0x18], ebx
jge 0x4474b7
mov ebx, 1
mov dword [esp + 0x18], ebx
xor esi, esi
test edi, edi
jle 0x447510
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
neg edi
mov eax, dword [esp + 0x30]
mov edx, esi
imul edx, dword [0x544748]
add edx, ebx
neg edx
cmp dword [esp + esi*4 + 0x13c], 0
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edx
jne 0x4474ee
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + esi*4 + 0xbc]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0x2c]
mov edx, ebp
call fcn.00445d00
inc esi
cmp esi, dword [0x4ad7b8]
jl 0x4474c7
push 1
push 0
push 0
push 0
lea edx, [esp + 0x11c]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x447510
mov ecx, dword [0x49ac78]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10c]
push eax
mov eax, dword [edx + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x447559
lea ecx, [esp + 0x10c]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x10c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [0x58fe6c], 0
jne 0x4479de
mov ebp, dword [sym.imp.USER32.dll_GetForegroundWindow]
call ebp
mov ecx, dword [0x49ab6c]
cmp eax, dword [ecx + 0x10]
je 0x44758b
xor eax, eax
jmp 0x447596
push 0x26
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx eax, ax
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
test eax, 0x8000
je 0x447606
call edi
mov esi, dword [esp + 0x34]
lea edx, [esi + 0x7d]
cmp eax, edx
ja 0x4475b4
cmp eax, esi
jae 0x44760a
call edi
mov esi, eax
mov eax, dword [esp + 0x28]
add eax, 0xffffffff
mov dword [esp + 0x34], esi
jns 0x4475cb
mov eax, dword [0x4ad7b8]
dec eax
imul eax, dword [0x544748]
mov ecx, dword [esp + 0x1c]
add eax, ebx
mov dword [esp + 0x4c], eax
mov eax, dword [0x49ab6c]
lea edx, [esp + 0x48]
mov dword [esp + 0x48], ecx
mov ecx, dword [eax + 0x10]
push edx
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push edx
push eax
call dword [sym.imp.USER32.dll_SetCursorPos]
jmp 0x44760a
mov esi, dword [esp + 0x34]
call ebp
mov ecx, dword [0x49ab6c]
cmp eax, dword [ecx + 0x10]
je 0x44761b
xor eax, eax
jmp 0x447626
push 0x28
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx eax, ax
test eax, 0x8000
je 0x447688
call edi
lea edx, [esi + 0x7d]
cmp eax, edx
ja 0x44763a
cmp eax, esi
jae 0x447688
call edi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
inc eax
cmp eax, dword [0x4ad7b8]
jl 0x44764f
xor eax, eax
imul eax, dword [0x544748]
mov ecx, dword [esp + 0x1c]
add eax, ebx
mov dword [esp + 0x44], eax
mov eax, dword [0x49ab6c]
lea edx, [esp + 0x40]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 0x10]
push edx
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push edx
push eax
call dword [sym.imp.USER32.dll_SetCursorPos]
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0xa2c], 0x200
mov eax, dword [0x544748]
jne 0x44783c
mov ebp, dword [0x4ad7b8]
xor esi, esi
test ebp, ebp
jle 0x4476ee
mov edx, ecx
mov edi, dword [edx + 0xa34]
mov ecx, ebx
cmp edi, ecx
jl 0x4476dc
lea edx, [ecx + eax]
cmp edi, edx
jge 0x4476dc
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0xa30]
cmp edx, dword [esp + 0x1c]
jl 0x4476d8
cmp edx, dword [esp + 0x3c]
jle 0x4476e5
mov ebx, dword [esp + 0x18]
inc esi
add ecx, eax
cmp esi, ebp
jl 0x4476b7
jmp 0x4476ee
cmp esi, 0xffffffff
jne 0x44775c
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
cmp ecx, 0xffffffff
je 0x44774c
mov edx, dword [esp + 0x1c]
imul eax, ecx
add eax, ebx
neg eax
neg edx
cmp dword [esp + ecx*4 + 0x13c], 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], edx
jne 0x44771e
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + ecx*4 + 0xbc]
mov ebp, dword [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0x2c]
mov edx, ebp
call fcn.00445d00
mov eax, dword [0x544748]
or edi, 0xffffffff
mov dword [esp + 0x28], edi
jmp 0x44784c
mov ebp, dword [esp + 0x14]
or edi, 0xffffffff
mov dword [esp + 0x28], edi
jmp 0x44784c
mov edi, dword [esp + 0x28]
cmp edi, esi
je 0x447844
cmp byte [0x52f068], 0
je 0x447794
cmp dword [0x653778], 0
push 0
push 0x52f068
je 0x447827
mov ecx, 0xa
call fcn.004700b0
mov eax, dword [0x544748]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
cmp edi, 0xffffffff
je 0x4477e6
mov edx, dword [esp + 0x1c]
imul eax, edi
add eax, ebx
neg eax
neg edx
cmp dword [esp + edi*4 + 0x13c], 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], edx
jne 0x4477c8
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + edi*4 + 0xbc]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0x2c]
mov edx, ebp
call fcn.00445d00
mov eax, dword [0x544748]
mov edx, dword [esp + 0x1c]
mov ecx, esi
imul ecx, eax
neg edx
add ecx, ebx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x50]
neg ecx
push edx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + esi*4 + 0xc0]
lea eax, [esp + 0x28]
push eax
push ecx
mov edi, esi
lea ecx, [esp + 0x2c]
mov edx, ebp
mov dword [esp + 0x34], edi
call fcn.00445d00
mov eax, dword [0x544748]
jmp 0x44784c
mov ebp, dword [esp + 0x1c]
mov ecx, ebp
call fcn.00471890
mov eax, dword [0x544748]
jmp 0x447798
mov edi, dword [esp + 0x28]
mov ebp, ecx
jmp 0x44784c
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov ecx, dword [ebp + 0xa2c]
cmp ecx, 0x202
je 0x44786b
cmp ecx, 0x102
jne 0x4478c2
cmp dword [ebp + 0xa30], 0xd
jne 0x4478c2
mov dword [0x58faec], 0
cmp edi, 0xffffffff
je 0x4478c2
cmp dword [esp + 0x268], 0
jne 0x447a07
cmp dword [esp + edi*4 + 0x13c], 0
jne 0x447a07
cmp byte [0x4ed770], 0
je 0x4478c2
cmp dword [0x653778], 0
push 0
push 0x4ed770
je 0x4478bb
mov ecx, 0xa
call fcn.004700b0
jmp 0x4478c2
mov ecx, ebp
call fcn.00471890
cmp dword [ebp + 0xa2c], 0x205
je 0x447901
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, dword [0x49ab6c]
cmp eax, dword [edx + 0x10]
je 0x4478e3
xor eax, eax
jmp 0x4478ee
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx eax, ax
test eax, 0x8000
je 0x447510
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [0x49ab6c]
cmp eax, dword [ecx + 0x10]
je 0x44791c
xor eax, eax
jmp 0x447927
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx eax, ax
test eax, 0x8000
je 0x447934
push 0
call esi
jmp 0x447907
cmp byte [0x5439a0], 0
mov dword [0x58faf0], 0
je 0x4479b5
cmp edi, 0xffffffff
je 0x447992
mov edx, dword [0x544748]
mov eax, dword [esp + 0x1c]
imul edx, edi
neg eax
add edx, ebx
neg edx
cmp dword [esp + edi*4 + 0x13c], 0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], edx
jne 0x447979
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + edi*4 + 0xbc]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0x2c]
mov edx, ebp
call fcn.00445d00
cmp dword [0x653778], 0
push 0
push 0x5439a0
je 0x4479ae
mov ecx, 0xa
call fcn.004700b0
jmp 0x4479b5
mov ecx, ebp
call fcn.00471890
push fcn.00401000
push 0x14
push 4
lea edx, [esp + 0xc8]
push edx
mov dword [esp + 0x270], 0xffffffff
call fcn.0040803b
or eax, 0xffffffff
jmp 0x447b30
push fcn.00401000
push 0x14
push 4
lea eax, [esp + 0xc8]
push eax
mov dword [esp + 0x270], 0xffffffff
call fcn.0040803b
or eax, 0xffffffff
jmp 0x447b30
cmp byte [0x53b698], 0
je 0x447a38
cmp dword [0x653778], 0
push 0
push 0x53b698
je 0x447a2c
mov ecx, 0xa
call fcn.004700b0
jmp 0x447a33
mov ecx, ebp
call fcn.00471890
mov eax, dword [0x544748]
mov ecx, dword [esp + 0x1c]
imul eax, edi
add eax, ebx
neg eax
neg ecx
cmp dword [esp + edi*4 + 0x13c], 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], ecx
jne 0x447a5f
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + edi*4 + 0xbc]
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x2c]
mov edx, ebp
call fcn.00445d00
cmp dword [0x4ad7b8], 0xa
mov eax, 0x52da00
lea edx, [eax + 1]
jge 0x447ad0
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x447a90
mov esi, dword [esp + 0x38]
sub eax, edx
add eax, 2
push eax
mov eax, dword [esp + edi*4 + 0xc0]
push eax
push esi
call fcn.00409560
mov eax, 0x52da00
add esp, 0xc
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x447ac0
sub eax, edx
mov byte [eax + esi + 2], cl
jmp 0x447b0d
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x447ad0
mov ecx, dword [esp + edi*4 + 0xbc]
mov esi, dword [esp + 0x38]
sub eax, edx
add eax, 4
push eax
push ecx
push esi
call fcn.00409560
mov eax, 0x52da00
add esp, 0xc
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x447b00
sub eax, edx
mov byte [eax + esi + 4], cl
push fcn.00401000
push 0x14
push 4
lea edx, [esp + 0xc8]
push edx
mov dword [esp + 0x270], 0xffffffff
call fcn.0040803b
mov eax, edi
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.00407f40
add esp, 0x250
ret 8