Function at 0x4c8121
Capabilities:
Create thread
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x198
mov dword [ebp - 0x188], ecx
mov dword [ebp - 0x164], 0x54fc80
mov dword [ebp - 0x160], 0x55086a
lea eax, [ebp - 0x15c]
lea edx, [ebp - 0x18]
mov dword [eax], edx
mov edx, 0x4c97cd
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x17c]
mov dword [esp], eax
call fcn.004e23b0
call fcn.004e1e00
mov dword [0x6b51a0], 0
mov dword [0x6b51a4], 0
mov dword [0x6b51a8], 0xffffffff
mov dword [0x6b51ac], 0xffffffff
mov dword [0x6b51b0], 0
mov dword [0x6b51b4], 0xffffffff
mov dword [0x6b51b8], 0xffffffff
mov dword [0x6b51bc], 0xffffffff
mov dword [0xa4c398], 0
jmp 0x4c8264
mov eax, dword [0xa4c398]
shl eax, 5
add eax, 0x6b5120
mov dword [eax], 1
mov eax, dword [0xa4c398]
shl eax, 5
add eax, 0x6b5120
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov eax, dword [0xa4c398]
shl eax, 5
add eax, 0x6b5130
mov dword [eax], 0
mov eax, dword [0xa4c398]
shl eax, 5
add eax, 0x6b5130
mov dword [eax + 4], 0
mov eax, dword [0xa4c398]
shl eax, 5
add eax, 0x6b5130
mov dword [eax + 8], 0
mov eax, dword [0xa4c398]
shl eax, 5
add eax, 0x6b5130
mov dword [eax + 0xc], 0
mov eax, dword [0xa4c398]
add eax, 1
mov dword [0xa4c398], eax
mov eax, dword [0xa4c398]
cmp eax, 2
setle al
test al, al
jne 0x4c81da
mov dword [ebp - 0x178], 1
call fcn.00401713
mov eax, dword [0x6b5110]
test eax, eax
je 0x4c8299
mov dword [0x55206c], 0
mov eax, dword [0x6b510c]
test eax, eax
je 0x4c82ac
mov eax, dword [0x6b510c]
mov dword [0x6b50ec], eax
mov dword [esp], 0x1c
call fcn.0046ed17
mov dword [0x6cf914], eax
mov dword [esp], 8
call fcn.0046ed17
mov dword [0x6b5190], eax
mov dword [esp], 0x14
call fcn.0046ed17
mov dword [0x6b5194], eax
mov dword [esp], 0x14
call fcn.0046ed17
mov dword [0xa4b734], eax
mov dword [esp], 0x48
mov dword [ebp - 0x178], 1
call fcn.0046eda9
mov dword [0x6b51c4], eax
mov dword [esp], 0x70
call fcn.0046ed17
mov dword [0x6b51d8], eax
mov eax, dword [0x6cf914]
mov dword [esp], eax
call fcn.0046ede2
mov dword [0x6cf918], eax
mov eax, dword [0x6cf918]
mov dword [0x6cf91c], eax
mov edx, dword [0x6cf91c]
mov eax, dword [0x6cf914]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0046f290
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 4], 0xffff
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
lea edx, [eax + 1]
mov eax, edx
add eax, eax
add eax, edx
shl eax, 2
mov dword [esp + 4], eax
mov dword [esp], 1
call sub.msvcrt.dll_calloc
mov edx, eax
mov eax, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, dword [0x6afb4c]
test eax, eax
jne 0x4c8393
call fcn.0049d453
mov eax, dword [0x6afc8c]
test eax, eax
je 0x4c83a6
mov dword [0x6b5284], 1
mov eax, dword [0x6afc88]
test eax, eax
je 0x4c83f4
mov dword [esp], 0x3e8
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x24], eax
mov dword [esp + 4], 0x100
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
mov dword [ebp - 0x178], 1
call eax
sub esp, 8
cmp eax, 1
sete al
test al, al
je 0x4c83f4
mov dword [0x6b5280], 1
mov eax, dword [0x6afcb0]
add eax, 0x28
mov dword [eax + 0x14], 0x3b00
mov eax, dword [0x6afcb0]
add eax, 0x50
mov dword [eax + 0x14], 0x3c00
mov eax, dword [0x6afcb0]
add eax, 0x78
mov dword [eax + 0x14], 0x3d00
mov eax, dword [0x6afcb0]
add eax, 0xa0
mov dword [eax + 0x14], 0x3e00
mov eax, dword [0x6afcb0]
add eax, 0xc8
mov dword [eax + 0x14], 0x3f00
mov eax, dword [0x6afcb0]
add eax, 0xf0
mov dword [eax + 0x14], 0x4000
mov eax, dword [0x6afcb0]
add eax, 0x118
mov dword [eax + 0x14], 0x4100
mov eax, dword [0x6afcb0]
add eax, 0x140
mov dword [eax + 0x14], 0x4200
mov eax, dword [0x6afcb0]
add eax, 0x168
mov dword [eax + 0x14], 0x4300
mov eax, dword [0x6afcb0]
add eax, 0x190
mov dword [eax + 0x14], 0x4400
mov eax, dword [0x6afcb0]
add eax, 0x1b8
mov dword [eax + 0x14], 0x4800
mov eax, dword [0x6afcb0]
add eax, 0x1b8
mov dword [eax + 0x18], 0x187a8
mov eax, dword [0x6afcb0]
add eax, 0x1e0
mov dword [eax + 0x14], 0x4b00
mov eax, dword [0x6afcb0]
add eax, 0x1e0
mov dword [eax + 0x18], 0x187a4
mov eax, dword [0x6afcb0]
add eax, 0x208
mov dword [eax + 0x14], 0x4d00
mov eax, dword [0x6afcb0]
add eax, 0x208
mov dword [eax + 0x18], 0x187a6
mov eax, dword [0x6afcb0]
add eax, 0x230
mov dword [eax + 0x14], 0x5000
mov eax, dword [0x6afcb0]
add eax, 0x230
mov dword [eax + 0x18], 0x187a2
mov eax, dword [0x6afcb0]
add eax, 0x4b0
mov dword [eax + 0x14], 0x8500
mov eax, dword [0x6afcb0]
add eax, 0x4d8
mov dword [eax + 0x14], 0x8600
mov eax, dword [0x6afcc0]
mov byte [eax], 1
mov eax, dword [0x6afcc0]
mov dword [eax + 4], 0
mov eax, dword [0x6afcc0]
mov byte [eax + 0x11], 0
mov eax, dword [0x6afcc0]
mov byte [eax + 0x10], 0
mov eax, dword [sym.imp.msvcrt.dll__environ]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
test eax, eax
setne al
add dword [ebp - 0x1c], 4
test al, al
jne 0x4c8572
mov edx, dword [ebp - 0x1c]
mov eax, dword [sym.imp.msvcrt.dll__environ]
mov eax, dword [eax]
mov ecx, edx
sub ecx, eax
mov eax, ecx
sar eax, 2
mov dword [0xa4b594], eax
mov eax, dword [0x6b5294]
add eax, 0x20
mov dword [eax], 8
mov eax, dword [0x6b5294]
add eax, 0x38
mov dword [eax], 8
mov eax, dword [0x6b5294]
add eax, 0x40
mov dword [eax], 8
mov eax, dword [0x6b5290]
add eax, 0x20
mov dword [eax], 8
mov eax, dword [0x6b5290]
add eax, 0x38
mov dword [eax], 0xe
mov eax, dword [0x6b5290]
add eax, 0x40
mov dword [eax], 0x10
mov eax, dword [0x6b5298]
add eax, 0x20
mov dword [eax], 0x10
mov eax, dword [0x6b5298]
add eax, 0x38
mov dword [eax], 0x10
mov eax, dword [0x6b5298]
add eax, 0x40
mov dword [eax], 0x10
mov eax, dword [0x6b5294]
add eax, 0x24
mov dword [eax], 0x10
mov eax, dword [0x6b5294]
add eax, 0x3c
mov dword [eax], 0x10
mov eax, dword [0x6b5294]
add eax, 0x44
mov dword [eax], 0x10
mov eax, dword [0x6b5290]
add eax, 0x24
mov dword [eax], 8
mov eax, dword [0x6b5290]
add eax, 0x3c
mov dword [eax], 0xe
mov eax, dword [0x6b5290]
add eax, 0x44
mov dword [eax], 0x10
mov eax, dword [0x6b5298]
add eax, 0x24
mov dword [eax], 0x10
mov eax, dword [0x6b5298]
add eax, 0x3c
mov dword [eax], 0x10
mov eax, dword [0x6b5298]
add eax, 0x44
mov dword [eax], 0x10
mov eax, dword [0x6c5c44]
mov dword [esp + 8], 0xb0000
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0x178], 1
call fcn.00471318
mov dword [0xa4c39c], eax
mov edx, dword [0x6c5c44]
mov eax, dword [0xa4c39c]
imul eax, eax, 0xb0
add eax, edx
mov byte [eax + 0x10], 0
call fcn.00471318
mov dword [0xa4c39c], eax
mov edx, dword [0x6c5c44]
mov eax, dword [0xa4c39c]
imul eax, eax, 0xb0
add eax, edx
mov byte [eax + 0x10], 0
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 0
mov dword [esp], 0x6cf920
call sub.msvcrt.dll_memset
mov dword [0x6cf980], 0x6cf920
mov dword [0x6cf984], 0x6cf928
mov dword [0x6cf988], 0x6cf92c
mov dword [0x6cf98c], 0x6cf924
mov dword [0x6cf990], 0x6cf921
mov dword [0x6cf994], 0x6cf929
mov dword [0x6cf998], 0x6cf92d
mov dword [0x6cf99c], 0x6cf925
mov dword [0x6cf9a0], 0x6cf920
mov dword [0x6cf9a4], 0x6cf928
mov dword [0x6cf9a8], 0x6cf92c
mov dword [0x6cf9ac], 0x6cf924
mov dword [0x6cf9b0], 0x6cf93c
mov dword [0x6cf9b4], 0x6cf938
mov dword [0x6cf9b8], 0x6cf930
mov dword [0x6cf9bc], 0x6cf934
mov dword [0x6cf9c0], 0x6cf920
mov dword [0x6cf9c4], 0x6cf928
mov dword [0x6cf9c8], 0x6cf92c
mov dword [0x6cf9cc], 0x6cf924
mov dword [0x6cf9d0], 0x6cf93c
mov dword [0x6cf9d4], 0x6cf938
mov dword [0x6cf9d8], 0x6cf930
mov dword [0x6cf9dc], 0x6cf934
mov dword [0x6cf9e0], 0x6cf946
mov dword [0x6cf9e4], 0x6cf940
mov dword [0x6cf9e8], 0x6cf942
mov dword [0x6cf9ec], 0x6cf944
mov dword [0x6cf9f0], 0x6cf948
mov dword [0x6cf9f4], 0x6cf94a
mov dword [0xa4c398], 0
jmp 0x4c886e
mov eax, dword [0xa4c398]
mov byte [eax + 0xa4aac0], 0x20
mov eax, dword [0xa4c398]
add eax, 1
mov dword [0xa4c398], eax
mov eax, dword [0xa4c398]
cmp eax, 0x1f
setle al
test al, al
jne 0x4c8855
mov byte [0xa4ac40], 0x81
mov dword [0x6cfa60], 0x100000
mov eax, dword [0x6cfa60]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [0x6af294], eax
mov eax, dword [0x6af294]
mov dword [0x6af298], eax
mov edx, dword [0x6af294]
mov eax, dword [0x6cfa60]
add eax, edx
mov dword [0x6af29c], eax
mov dword [esp + 8], 0x10fff3
mov dword [esp + 4], 0
mov dword [esp], 0x59f2a0
call sub.msvcrt.dll_memset
mov dword [esp + 8], 0x10000
mov dword [esp + 4], 0
mov dword [esp], 0xa2dca0
call sub.msvcrt.dll_memset
mov eax, 0x59f2a0
add eax, 0x500
mov dword [0x59f264], eax
mov eax, dword [0x55200c]
sub eax, 8
mov dword [0x55200c], eax
mov eax, dword [0x59f264]
mov edx, eax
mov eax, dword [0x55200c]
add eax, edx
mov dword [0x59f274], eax
mov eax, dword [0x59f274]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x178], 1
call fcn.0047b914
mov dword [0x59f290], eax
mov dword [esp + 4], 0
mov dword [esp], 1
call fcn.0047b914
mov dword [0xa3dca0], eax
mov eax, dword [0xa3dca0]
mov eax, dword [eax]
mov byte [eax], 0x20
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0047bcbe
mov dword [0xa4b774], eax
call fcn.004c718b
mov edx, eax
mov eax, dword [0xa4b774]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047be25
mov eax, 0xa4c108
movzx eax, byte [eax]
test al, al
jne 0x4c89ea
mov dword [esp], 0xa4c108
call fcn.0054f840
test eax, eax
setne al
test al, al
je 0x4c89ea
mov dword [esp], 0x10000
call sub.msvcrt.dll_malloc
mov dword [0xa4c3a0], eax
mov dword [esp], 0xa4c108
call fcn.0054f9e0
mov eax, dword [0xa4c3a0]
mov dword [esp + 8], 0x10000
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x178], 1
call eax
sub esp, 0xc
mov eax, dword [0xa4c3a0]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [0xa4c398], eax
mov eax, dword [0xa4c398]
sub eax, 1
mov dword [0xa4c3a4], eax
jmp 0x4c8aab
mov edx, dword [0xa4c3a0]
mov eax, dword [0xa4c3a4]
add eax, edx
movzx eax, byte [eax]
movsx eax, al
mov dword [0xa4c39c], eax
mov eax, dword [0xa4c39c]
cmp eax, 0x5c
je 0x4c8a6d
mov eax, dword [0xa4c39c]
cmp eax, 0x2f
je 0x4c8a6d
mov eax, dword [0xa4c39c]
cmp eax, 0x3a
jne 0x4c8a9e
mov eax, dword [0xa4c39c]
cmp eax, 0x3a
jne 0x4c8a8c
mov eax, dword [0xa4c3a0]
mov edx, dword [0xa4c3a4]
add edx, 1
add eax, edx
mov byte [eax], 0
jmp 0x4c8abd
mov edx, dword [0xa4c3a0]
mov eax, dword [0xa4c3a4]
add eax, edx
mov byte [eax], 0
jmp 0x4c8abd
mov eax, dword [0xa4c3a4]
sub eax, 1
mov dword [0xa4c3a4], eax
mov eax, dword [0xa4c3a4]
not eax
shr eax, 0x1f
test al, al
jne 0x4c8a37
mov eax, dword [0xa4c3a0]
mov dword [esp], eax
mov dword [ebp - 0x178], 1
call sub.msvcrt.dll__chdir
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0047bcbe
mov dword [0xa4b778], eax
call fcn.004c718b
mov edx, eax
mov eax, dword [0xa4b778]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047be25
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0047bcbe
mov dword [0x6c52fc], eax
mov dword [esp + 4], 0x14
mov dword [esp], str.Unknown_Opcode_____
call fcn.0047bb3b
mov edx, eax
mov eax, dword [0x6c52fc]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047be25
mov ecx, dword [ebp - 0x188]
mov eax, dword [ecx]
mov dword [0xa4c398], eax
mov eax, dword [0xa4c398]
cmp eax, 1
jle 0x4c8cf7
mov dword [0xa4c3a4], 0
mov dword [0xa4c398], 1
jmp 0x4c8bc8
mov eax, dword [0xa4c398]
lea edx, [eax*4]
mov ecx, dword [ebp - 0x188]
mov eax, dword [ecx + 4]
add eax, edx
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, dword [0xa4c3a4]
add eax, edx
mov dword [0xa4c3a4], eax
mov eax, dword [0xa4c398]
cmp eax, 1
je 0x4c8bbb
mov eax, dword [0xa4c3a4]
add eax, 1
mov dword [0xa4c3a4], eax
mov eax, dword [0xa4c398]
add eax, 1
mov dword [0xa4c398], eax
mov edx, dword [0xa4c398]
mov ecx, dword [ebp - 0x188]
mov eax, dword [ecx]
cmp edx, eax
setl al
test al, al
jne 0x4c8b76
mov eax, dword [0xa4c3a4]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x178], 1
call fcn.0047bcbe
mov dword [0xa4ad44], eax
mov dword [0xa4c3a8], 0
mov dword [0xa4c398], 1
jmp 0x4c8cda
mov eax, dword [0xa4c398]
cmp eax, 1
je 0x4c8c44
mov eax, dword [0xa4ad44]
mov edx, dword [eax]
mov eax, dword [0xa4c3a8]
add eax, edx
mov byte [eax], 0x20
mov eax, dword [0xa4c3a8]
add eax, 1
mov dword [0xa4c3a8], eax
mov eax, dword [0xa4c398]
lea edx, [eax*4]
mov ecx, dword [ebp - 0x188]
mov eax, dword [ecx + 4]
add eax, edx
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, dword [0xa4c398]
lea ecx, [edx*4]
mov ebx, dword [ebp - 0x188]
mov edx, dword [ebx + 4]
add edx, ecx
mov edx, dword [edx]
mov ecx, dword [0xa4ad44]
mov ebx, dword [ecx]
mov ecx, dword [0xa4c3a8]
add ecx, ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [0xa4c398]
lea edx, [eax*4]
mov ecx, dword [ebp - 0x188]
mov eax, dword [ecx + 4]
add eax, edx
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, dword [0xa4c3a8]
add eax, edx
mov dword [0xa4c3a8], eax
mov eax, dword [0xa4c398]
add eax, 1
mov dword [0xa4c398], eax
mov edx, dword [0xa4c398]
mov ecx, dword [ebp - 0x188]
mov eax, dword [ecx]
cmp edx, eax
setl al
test al, al
jne 0x4c8c1c
jmp 0x4c8d1a
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x178], 1
call fcn.0047bcbe
mov dword [0xa4ad44], eax
mov ecx, dword [ebp - 0x188]
mov eax, dword [ecx]
mov dword [0xa4ad4c], eax
mov ecx, dword [ebp - 0x188]
mov eax, dword [ecx + 4]
mov dword [0xa4ad48], eax
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.004e3eb0
mov eax, dword [ebp - 0x40]
cmp eax, 0xffffffff
je 0x4c8d64
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call fcn.004e3eb0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x40]
cmp edx, eax
sete al
test al, al
jne 0x4c8d48
jmp 0x4c8d6b
mov dword [ebp - 0x3c], 0
call fcn.0046fef3
mov dword [0x6cfa44], eax
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call fcn.004e3ec0
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4c8dc9
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
imul edx, eax, 0xe10
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
shl eax, 2
mov ecx, eax
shl ecx, 4
mov ebx, ecx
sub ebx, eax
mov eax, ebx
add edx, eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
add eax, edx
mov dword [0x6cfa40], eax
mov eax, dword [0x6cfa40]
imul eax, eax, 0x3e8
mov dword [0x6cfa40], eax
jmp 0x4c8dd3
mov dword [0x6cfa40], 0
mov dword [esp], 0x91
mov eax, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [ebp - 0x178], 1
call eax
sub esp, 4
cwde
and eax, 1
test eax, eax
setne al
test al, al
je 0x4c8e07
mov dword [esp], 0x30d4b
call fcn.0047048f
mov dword [esp], 0x91
mov eax, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [ebp - 0x178], 1
call eax
sub esp, 4
shr ax, 0xf
test al, al
je 0x4c8e40
mov dword [0x6c52a8], 0x12e
mov dword [esp], 0x187ce
call fcn.0047079e
mov dword [esp], 0xa0
mov eax, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [ebp - 0x178], 1
call eax
sub esp, 4
shr ax, 0xf
test al, al
je 0x4c8e79
mov dword [0x6c52a8], 0x130
mov dword [esp], 0x187d0
call fcn.0047079e
mov dword [esp], 0xa1
mov eax, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [ebp - 0x178], 1
call eax
sub esp, 4
shr ax, 0xf
test al, al
je 0x4c8eb2
mov dword [0x6c52a8], 0x12f
mov dword [esp], 0x187cf
call fcn.0047079e
mov dword [esp], 0xa2
mov eax, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [ebp - 0x178], 1
call eax
sub esp, 4
shr ax, 0xf
test al, al
je 0x4c8eeb
mov dword [0x6c52a8], 0x132
mov dword [esp], 0x187d2
call fcn.0047079e
mov dword [esp], 0xa3
mov eax, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [ebp - 0x178], 1
call eax
sub esp, 4
shr ax, 0xf
test al, al
je 0x4c8f24
mov dword [0x6c52a8], 0x131
mov dword [esp], 0x187d1
call fcn.0047079e
mov dword [esp], 0xa4
mov eax, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [ebp - 0x178], 1
call eax
sub esp, 4
shr ax, 0xf
test al, al
je 0x4c8f5d
mov dword [0x6c52a8], 0x134
mov dword [esp], 0x187d4
call fcn.0047079e
mov dword [esp], 0xa5
mov eax, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [ebp - 0x178], 1
call eax
sub esp, 4
shr ax, 0xf
test al, al
je 0x4c8f96
mov dword [0x6c52a8], 0x133
mov dword [esp], 0x187d3
call fcn.0047079e
mov dword [esp], 0x14
mov eax, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [ebp - 0x178], 1
call eax
sub esp, 4
cwde
and eax, 1
test eax, eax
setne al
test al, al
je 0x4c8fd4
mov dword [0x6c52a8], 0x12d
mov dword [esp], 0x187cd
call fcn.0047079e
mov dword [esp], 0x90
mov eax, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [ebp - 0x178], 1
call eax
sub esp, 4
cwde
and eax, 1
test eax, eax
setne al
test al, al
je 0x4c9012
mov dword [0x6c52a8], 0x12c
mov dword [esp], 0x187cc
call fcn.0047079e
mov dword [ebp - 0x178], 1
call fcn.004cc0fb
mov eax, dword [0x6c52a0]
mov dword [0x6c52a4], eax
mov byte [0x59f6ba], 0x1e
mov byte [0x59f6bb], 0
mov byte [0x59f6bc], 0x1e
mov byte [0x59f6bd], 0
lea eax, [ebp - 0x13c]
mov ecx, eax
call fcn.00536150
mov eax, dword [0x552520]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5819e0
mov dword [esp], 0x6c5740
call sub.msvcrt.dll_memcpy
mov dword [0xa4c398], 0
jmp 0x4c90a9
mov eax, dword [0xa4c398]
mov edx, dword [0xa4c398]
mov edx, dword [edx*4 + 0x6c5740]
or edx, 0xff000000
mov dword [eax*4 + 0x6c5740], edx
mov eax, dword [0xa4c398]
add eax, 1
mov dword [0xa4c398], eax
mov eax, dword [0xa4c398]
cmp eax, 0xff
setle al
test al, al
jne 0x4c907d
mov eax, dword [0x552524]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x581de0
mov dword [esp], 0x6c5b40
call sub.msvcrt.dll_memcpy
mov dword [0xa4c398], 0
jmp 0x4c910f
mov eax, dword [0xa4c398]
mov edx, dword [0xa4c398]
mov edx, dword [edx*4 + 0x6c5b40]
or edx, 0xff000000
mov dword [eax*4 + 0x6c5b40], edx
mov eax, dword [0xa4c398]
add eax, 1
mov dword [0xa4c398], eax
mov eax, dword [0xa4c398]
cmp eax, 0x3f
setle al
test al, al
jne 0x4c90e3
mov dword [0xa3e1e0], 0
mov dword [0xa3e1e4], 0
mov dword [0xa3e1e8], 0
mov dword [0xa3e1ec], 0x808080
mov dword [0xa3e1f0], 0x808080
mov dword [0xa3e1f4], 0x808080
mov dword [0xa3e1f8], 0xffffff
mov dword [0xa3e1fc], 0xffffff
mov dword [0xa3e200], 0xffffff
mov dword [0xa3e204], 0
mov dword [0xa3e208], 0x808080
mov dword [0xa3e20c], 0xffffff
mov dword [0xa3e210], 0
mov dword [0xa3e214], 0x808080
mov dword [0xa3e218], 0xffffff
mov dword [0xa3e21c], 0
mov dword [0xa3e220], 0x808080
mov dword [0xa3e224], 0xffffff
mov eax, dword [0x552518]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5759e0
mov dword [esp], 0xa3e240
call sub.msvcrt.dll_memcpy
mov eax, dword [0x55251c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5799e0
mov dword [esp], 0xa42240
call sub.msvcrt.dll_memcpy
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x178], 2
call fcn.004805a7
mov dword [0x55252c], 1
mov eax, dword [0x6afc88]
test eax, eax
je 0x4c92a9
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x19
mov dword [esp], 0x50
call fcn.004a2c0d
mov dword [0x5522e0], eax
mov eax, dword [0x5522e0]
neg eax
mov dword [0xa4c398], eax
mov edx, dword [0x6c5c44]
mov eax, dword [0xa4c398]
imul eax, eax, 0xb0
add eax, edx
mov byte [eax + 0x12], 1
mov edx, dword [0x55207c]
mov eax, dword [0x552078]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x20
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [ebp - 0x178], 2
call fcn.004a2c0d
mov dword [0xa4bfac], eax
mov edx, dword [0x552078]
mov eax, dword [0x55207c]
imul eax, edx
shl eax, 2
mov edx, eax
mov ecx, dword [0x6c5c44]
mov eax, dword [0xa4bfac]
imul eax, eax, 0xffffff50
add eax, ecx
mov eax, dword [eax + 0x40]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x56f220
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [0x552084]
mov eax, dword [0x552080]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x20
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004a2c0d
mov dword [0xa4bfb0], eax
mov edx, dword [0x552080]
mov eax, dword [0x552084]
imul eax, edx
shl eax, 2
mov edx, eax
mov ecx, dword [0x6c5c44]
mov eax, dword [0xa4bfb0]
imul eax, eax, 0xffffff50
add eax, ecx
mov eax, dword [eax + 0x40]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x56f620
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov dword [0xa4c398], 0
mov eax, dword [0xa4c398]
add eax, 1
mov dword [0xa4c398], eax
mov edx, dword [0x6afca0]
mov eax, dword [0xa4c398]
imul eax, eax, 0x160
add eax, edx
mov dword [eax + 4], 2
mov edx, dword [0x6afca0]
mov eax, dword [0xa4c398]
imul eax, eax, 0x160
add eax, edx
mov dword [eax + 8], str._KEYBOARD__BUTTON_
mov edx, dword [0x6afca0]
mov eax, dword [0xa4c398]
imul eax, eax, 0x160
add eax, edx
mov dword [eax + 0x10], 0x200
mov edx, dword [0x6afca0]
mov eax, dword [0xa4c398]
imul eax, eax, 0x160
add eax, edx
mov dword [eax + 0x138], str.Keyboard
mov edx, dword [0x6afca0]
mov eax, dword [0xa4c398]
imul eax, eax, 0x160
add eax, edx
mov dword [esp], eax
call fcn.004034c3
mov eax, dword [0xa4c398]
add eax, 1
mov dword [0xa4c398], eax
mov edx, dword [0x6afca0]
mov eax, dword [0xa4c398]
imul eax, eax, 0x160
add eax, edx
mov dword [eax + 4], 3
mov edx, dword [0x6afca0]
mov eax, dword [0xa4c398]
imul eax, eax, 0x160
add eax, edx
mov dword [eax + 8], str._MOUSE__BUTTON__AXIS__WHEEL_
mov edx, dword [0x6afca0]
mov eax, dword [0xa4c398]
imul eax, eax, 0x160
add eax, edx
mov dword [eax + 0x10], 3
mov edx, dword [0x6afca0]
mov eax, dword [0xa4c398]
imul eax, eax, 0x160
add eax, edx
mov dword [eax + 0x14], 2
mov edx, dword [0x6afca0]
mov eax, dword [0xa4c398]
imul eax, eax, 0x160
add eax, edx
mov dword [eax + 0x18], 3
mov edx, dword [0x6afca0]
mov eax, dword [0xa4c398]
imul eax, eax, 0x160
add eax, edx
mov dword [eax + 0x138], str.Mouse
mov edx, dword [0x6afca0]
mov eax, dword [0xa4c398]
imul eax, eax, 0x160
add eax, edx
mov dword [esp], eax
call fcn.004034c3
mov eax, dword [0xa4c398]
mov dword [0x6afc9c], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x40583a
mov eax, dword [sym.imp.msvcrt.dll__beginthread]
call eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call eax
sub esp, 8
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x4046ee
mov eax, dword [sym.imp.msvcrt.dll__beginthread]
call eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call eax
sub esp, 8
mov dword [0x6cfa38], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x4c981b
mov eax, dword [sym.imp.msvcrt.dll__beginthread]
call eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call eax
sub esp, 8
mov eax, dword [0x6b5284]
test eax, eax
jne 0x4c95da
mov dword [0x6b50d8], 1
jmp 0x4c95da
mov dword [esp], 0x64
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x178], 2
call eax
sub esp, 4
jmp 0x4c95db
nop
mov eax, dword [0x6b50d8]
test eax, eax
sete al
test al, al
jne 0x4c95bd
mov ecx, dword [ebp - 0x188]
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x188]
mov dword [esp], ecx
mov dword [ebp - 0x178], 2
call fcn.00440300
mov dword [esp], 0x12
call fcn.004cf870
mov dword [esp + 4], 0x190
mov dword [esp], 0x280
call fcn.004cf840
mov dword [esp], 0x190
call fcn.004d4360
test eax, eax
sete al
test al, al
je 0x4c964f
mov dword [esp], 1
call sub.msvcrt.dll_exit
mov eax, dword [0x6b50e0]
test eax, eax
jne 0x4c9670
mov dword [esp], str.Untitled
mov dword [ebp - 0x178], 2
call fcn.00440322
jmp 0x4c9687
mov eax, dword [0x6b50e0]
mov dword [esp], eax
mov dword [ebp - 0x178], 2
call fcn.00440322
mov dword [0x6b50d4], 1
mov dword [ebp - 0x178], 2
call fcn.00465cb9
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4c96bf
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call fcn.00465c69
sub esp, 4
mov dword [esp], eax
call fcn.00470977
mov dword [esp], str.GL_EXT_framebuffer_object
call fcn.00465cd9
sub esp, 4
test al, al
setne al
test al, al
je 0x4c96e1
mov dword [0x6b50a8], 1
mov dword [esp], 0x4c4cf7
mov dword [ebp - 0x178], 2
call fcn.004d33a0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4c1f7b
mov dword [esp], 8
call fcn.004d34f0
mov dword [esp], 0x4c1d13
call fcn.004d3440
mov dword [esp], 0x4c1d35
call fcn.004d35c0
mov dword [esp], 0x4c1f45
call fcn.004d3480
mov dword [esp], 0x4c1f60
call fcn.004d3600
mov dword [esp], 0x4c697b
call fcn.004d3700
mov dword [esp], fcn.004c69c7
call fcn.004d3780
mov dword [esp], 0x4c6f5f
call fcn.004d37c0
mov dword [esp], 0x4c2222
call fcn.004d3400
mov dword [esp], 0x4c6f79
call fcn.004d3740
call fcn.004d5170
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x178], 1
mov ecx, eax
call fcn.00536850
mov eax, 0
mov dword [ebp - 0x180], eax
jmp 0x4c97fb
lea eax, [ebp - 0x17c]
mov dword [esp], eax
call fcn.004e2470
mov eax, dword [ebp - 0x180]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret