Function at 0x4a74b9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
push edi
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [0x531688], 0
push 0x531b9c
call fcn.005011de
add esp, 4
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, ax
xor ecx, ecx
mov cl, ah
mov dword [ebp - 0x90], ecx
push 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4a752d
xor eax, eax
jmp 0x4a81c4
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x4a754d
xor eax, eax
jmp 0x4a81c4
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov eax, dword [eax + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x50], 0
je 0x4a758a
mov eax, 0x3e80
cdq
idiv dword [ebp - 0x50]
mov dword [0x531b94], eax
jmp 0x4a7594
mov dword [0x531b94], 0x10
movsx eax, word [ebp + 0x10]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x10]
shr eax, 0x10
and eax, 0xffff
movsx eax, ax
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x78], eax
push 1
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.GDI32.dll_DPtoLP]
cmp dword [ebp + 0x14], 0
je 0x4a76ec
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
push ecx
push eax
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004bcb67
add esp, 0x10
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x4a76d5
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
push ecx
push eax
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x1d6]
push eax
call fcn.00454910
add esp, 0x14
test eax, eax
je 0x4a76d5
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x98], eax
jmp 0x4a768f
jmp 0x4a76d5
mov dword [ebp - 0x68], 5
jmp 0x4a76d5
mov dword [ebp - 0x68], 6
jmp 0x4a76d5
mov dword [ebp - 0x68], 7
jmp 0x4a76d5
mov dword [ebp - 0x68], 3
jmp 0x4a76d5
inc dword [ebp - 0x98]
cmp dword [ebp - 0x98], 9
ja case.0x4a76b0.4
mov eax, dword [ebp - 0x98]
xor ecx, ecx
mov cl, byte [eax + 0x4a76cb]
jmp dword [ecx*4 + 0x4a76b7]
cmp dword [ebp - 0x68], 0
je 0x4a76ec
mov eax, dword [ebp - 0x68]
mov dword [0x531af4], eax
jmp 0x4a818e
cmp dword [0x52cf50], 0xbbb
jne 0x4a773c
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x88]
push ecx
push eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
push ecx
push eax
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004a6878
add esp, 0x1c
push 1
push 0
push 0xbb9
call fcn.004cac5b
add esp, 0xc
jmp 0x4a8170
mov eax, dword [ebp - 0x74]
test byte [eax + 0x23], 4
jne 0x4a77a3
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x88]
push ecx
push eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
push ecx
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004a2859
add esp, 0x18
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x4a77a3
mov eax, dword [ebp - 0x74]
cmp dword [eax + 0xe6], 0
je 0x4a779e
push 1
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004adcb0
add esp, 0xc
jmp 0x4a818e
mov eax, dword [0x52cf50]
mov dword [ebp - 0x9c], eax
jmp 0x4a7844
mov dword [ebp - 0x38], 1
jmp case.0x4a7869.3
mov eax, dword [ebp - 0x74]
cmp dword [eax + 0xe6], 0
je 0x4a780b
push 1
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004adcb0
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x4a7804
cmp dword [ebp - 0x54], 0xffffffff
je 0x4a7804
mov dword [ebp - 0x54], 0
jmp 0x4a818e
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
push ecx
push eax
push 0
push 0
push 0
push 0x10
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
push ecx
push eax
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004a57dc
add esp, 0x28
mov dword [ebp - 0x6c], 1
jmp case.0x4a7869.3
sub dword [ebp - 0x9c], 0xbbc
cmp dword [ebp - 0x9c], 0xa
ja case.0x4a7869.3
mov eax, dword [ebp - 0x9c]
xor ecx, ecx
mov cl, byte [eax + 0x4a7880]
jmp dword [ecx*4 + 0x4a7870]
mov eax, dword [ebp - 0x74]
cmp dword [eax + 0xe6], 0
je 0x4a7a96
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0xe6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 2
jne 0x4a7939
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
push ecx
push eax
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4a7928
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
xor eax, eax
mov ecx, dword [ebp - 0x44]
sub eax, dword [ecx]
neg eax
sub dword [ebp - 0x10], eax
xor eax, eax
mov ecx, dword [ebp - 0x44]
sub eax, dword [ecx + 4]
neg eax
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
push ecx
push eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x14]
push eax
call fcn.00471922
add esp, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x38], 0
je 0x4a7939
mov dword [ebp - 0x34], 0xffffffff
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0xe6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x34], 0
jl 0x4a7974
push 0
push 0
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
push ecx
push eax
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0xe6]
push eax
call fcn.004719b5
add esp, 0x14
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xa0], eax
jmp 0x4a7a77
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xa4], eax
jmp 0x4a79d4
push 1
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004adcb0
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x4a79ca
cmp dword [ebp - 0x54], 0xffffffff
je 0x4a79ca
mov dword [ebp - 0x54], 0
jmp 0x4a818e
jmp 0x4a79e6
cmp dword [ebp - 0xa4], 2
je 0x4a79e6
jmp 0x4a7995
mov dword [ebp - 0x54], 0
jmp 0x4a7a96
mov eax, dword [0x52cf50]
mov dword [ebp - 0xa8], eax
jmp 0x4a7a2d
mov eax, dword [0x52cf50]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004140dd
add esp, 8
mov dword [0x531af4], 2
jmp 0x4a7a52
cmp dword [ebp - 0xa8], 0xbbc
jl 0x4a7a52
cmp dword [ebp - 0xa8], 0xbc0
jle 0x4a7a02
jmp 0x4a7a52
jmp 0x4a818e
mov eax, dword [ebp - 0x54]
push eax
call fcn.004addd5
add esp, 4
jmp 0x4a818e
cmp dword [ebp - 0xa0], 0xffffffff
je 0x4a7982
cmp dword [ebp - 0xa0], 0
je 0x4a79f2
jmp 0x4a7a5c
cmp dword [ebp - 0x6c], 0
jne 0x4a7e77
mov eax, dword [ebp + 0x14]
push eax
push 0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
push ecx
push eax
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0043cd00
add esp, 0x2c
mov dword [ebp - 0x70], eax
push 1
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004adcb0
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0xffffffff
jne 0x4a7b0a
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x54], 0
jmp 0x4a7b20
cmp dword [ebp - 0x54], 0
je 0x4a7b20
mov dword [ebp - 0x54], 0
jmp 0x4a818e
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xac], eax
jmp 0x4a7e4b
cmp dword [0x531af4], 4
je 0x4a7b45
mov dword [0x531af4], 2
mov eax, dword [0x52cf50]
mov dword [ebp - 0xb0], eax
jmp 0x4a7bed
mov eax, dword [0x52cf50]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004140dd
add esp, 8
jmp case.0x4a7c12.3
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
push ecx
push eax
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004a53c3
add esp, 0x20
jmp case.0x4a7c12.3
mov eax, dword [ebp - 0x48]
shr eax, 0x10
and eax, 0xffff
movsx eax, ax
mov dword [ebp - 0x10], eax
movsx eax, word [ebp - 0x48]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
push ecx
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x84]
push eax
push 0
push 0x10
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
push ecx
push eax
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004a57dc
add esp, 0x28
jmp case.0x4a7c12.3
sub dword [ebp - 0xb0], 0xbb9
cmp dword [ebp - 0xb0], 0xa
ja case.0x4a7c12.3
mov eax, dword [ebp - 0xb0]
xor ecx, ecx
mov cl, byte [eax + 0x4a7c29]
jmp dword [ecx*4 + 0x4a7c19]
mov dword [ebp - 0x6c], 1
jmp 0x4a7e77
mov dword [ebp - 0x6c], 1
cmp dword [ebp + 0x14], 0
je 0x4a7c56
jmp 0x4a818e
mov eax, dword [ebp - 0x48]
shr eax, 0x10
and eax, 0xffff
movsx eax, ax
mov dword [ebp - 0x64], eax
movsx eax, word [ebp - 0x48]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
push ecx
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0043c901
add esp, 0x20
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x4a7cab
jmp 0x4a818e
push 0
push 1
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
push ecx
push eax
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0xe6]
push eax
call fcn.004719b5
add esp, 0x14
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x4a7ce2
mov eax, dword [ebp - 0x54]
push eax
call fcn.004addd5
add esp, 4
jmp 0x4a818e
mov eax, dword [0x52cf50]
mov dword [ebp - 0xb4], eax
jmp 0x4a7dfa
push 0x1f
call fcn.0049c6f9
add esp, 4
mov dword [ebp - 0x6c], 1
jmp case.0x4a7e1f.3
push 0x28
call fcn.0049c6f9
add esp, 4
mov dword [ebp - 0x6c], 1
jmp case.0x4a7e1f.3
cmp dword [ebp - 0x90], 0
jne 0x4a7d68
push 0
push 1
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
push ecx
push eax
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0043cd00
add esp, 0x2c
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
push ecx
push eax
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x1d6]
push eax
call fcn.00454910
add esp, 0x14
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4a7dcf
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
push ecx
push eax
push 0
push 0
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
push ecx
push eax
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004a57dc
add esp, 0x28
mov dword [ebp - 0x6c], 1
jmp 0x4a7df0
cmp dword [ebp - 0x90], 0
jne 0x4a7df0
push 1
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x1d6]
push eax
call fcn.00454abc
add esp, 8
jmp case.0x4a7e1f.3
sub dword [ebp - 0xb4], 0xbb9
cmp dword [ebp - 0xb4], 0xa
ja case.0x4a7e1f.3
mov eax, dword [ebp - 0xb4]
xor ecx, ecx
mov cl, byte [eax + 0x4a7e36]
jmp dword [ecx*4 + 0x4a7e26]
jmp 0x4a7e77
cmp dword [ebp - 0xac], 1
je 0x4a7b2e
cmp dword [ebp - 0xac], 2
je 0x4a7c40
cmp dword [ebp - 0xac], 5
je 0x4a7b2e
jmp 0x4a7cec
cmp dword [ebp - 0x6c], 0
jne 0x4a7f1a
mov eax, dword [ebp - 0x74]
cmp dword [eax + 0xe6], 0
jne 0x4a7f1a
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
push ecx
push eax
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0xbe]
push eax
call fcn.00471922
add esp, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x4a7f1a
mov dword [ebp - 0x6c], 1
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004d55ff
add esp, 8
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4a7efd
push 0
push 1
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
push ecx
push eax
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0xe6]
push eax
call fcn.004719b5
add esp, 0x14
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x4a7f13
mov eax, dword [ebp - 0x54]
push eax
call fcn.004addd5
add esp, 4
mov dword [ebp - 0x54], 0
cmp dword [ebp - 0x6c], 0
jne 0x4a8144
mov eax, dword [0x52cf50]
mov dword [ebp - 0xb8], eax
jmp 0x4a812f
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
push ecx
push eax
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x1d6]
push eax
call fcn.00454910
add esp, 0x14
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x94], 0
cmp dword [ebp - 0x34], 0x11
jne 0x4a7fe2
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x1d6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x40]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0x24]
cmp dword [eax + ecx + 0x18], 2
jne 0x4a7fbb
mov dword [ebp - 0x94], 1
jmp 0x4a7fc5
mov dword [ebp - 0x94], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x1d6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x94], 0
jne 0x4a8053
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x5a]
mov ecx, dword [ebp - 0x74]
sub eax, dword [ecx + 0x86]
sub eax, 0x48
push eax
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x56]
mov ecx, dword [ebp - 0x74]
sub eax, dword [ecx + 0x82]
sub eax, 0x48
push eax
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x7e]
push eax
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x7a]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4a804c
jmp 0x4a8144
mov dword [ebp - 0x40], 0xffffffff
push 1
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x1d6]
push eax
call fcn.00454abc
add esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
push ecx
push eax
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0047b10a
add esp, 0x14
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4a811e
push 0
push 1
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
push ecx
push eax
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0xe6]
push eax
call fcn.004719b5
add esp, 0x14
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x4a80d6
mov eax, dword [ebp - 0x54]
push eax
call fcn.004addd5
add esp, 4
jmp 0x4a8117
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0xe6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x44], eax
push 0
push 0
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0xe6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x6c], 1
jmp 0x4a8144
cmp dword [ebp - 0xb8], 0xbba
je 0x4a7f34
jmp 0x4a8144
cmp dword [ebp - 0x6c], 0
jne 0x4a8170
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
push ecx
push eax
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004a5312
add esp, 0x10
mov dword [0x531af4], 0
mov eax, dword [0x531aec]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebp - 8]
push eax
call fcn.0049c470
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 0x54], 0
je 0x4a81bc
mov eax, dword [ebp - 0x54]
push eax
call fcn.004ae776
add esp, 4
mov eax, dword [ebp - 0x54]
jmp 0x4a81c4
pop edi
pop esi
pop ebx
leave
ret