Function at 0x40e800
Capabilities:
Encrypt data using speck
Log keystrokes via polling

Disassembly:
sub esp, 0x114
mov eax, dword [esp + 0x12c]
mov dword [esp + 0x1c], edx
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, 0x7fff
mov dword [esp + 0x20], esi
mov dword [esp + 0x40], ecx
push edi
mov edi, dword [esp + 0x134]
movzx ebp, di
cmp eax, 0xffc3d44f
je 0x40e848
cmp eax, 0xffc3d44e
je 0x40e848
mov byte [esp + 0x1f], 0
cmp eax, 0xffc3d44d
jne 0x40e84d
mov byte [esp + 0x1f], 1
mov ecx, dword [0x4e5bc0]
mov ebx, dword [esp + 0x130]
test ecx, ecx
jne 0x40e86b
lea edx, [esp + 0x50]
mov dword [esp + 0x18], edx
jmp 0x40e92a
mov eax, dword [0x4e5c2c]
imul esi, eax, 0xd4
inc eax
add esi, ecx
xor ecx, ecx
cmp eax, dword [0x4e3100]
mov dword [esp + 0x18], esi
cmovge eax, ecx
mov dword [0x4e5c2c], eax
mov eax, dword [esp + 0x138]
mov byte [esi], bl
mov byte [esi + 6], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [0x4e5c28], eax
sub ecx, dword [0x4e88c4]
mov dword [0x4e88c4], eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4dcc00]
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4dcb34]
movss dword [esi + 8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, dword [esp + 0x18]
mov esi, eax
lea ecx, [edx + 0xc]
test esi, esi
je 0x40e911
cmp esi, dword [0x4e5c24]
je 0x40e90a
push esi
push ecx
push 0x418
push dword [0x4e5ba8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [esp + 0x18]
jmp 0x40e920
xor eax, eax
mov word [ecx], ax
jmp 0x40e920
mov eax, dword [0x4cf694]
mov dword [ecx], eax
mov eax, dword [0x4cf698]
mov dword [ecx + 4], eax
mov dword [0x4e5c24], esi
mov esi, dword [esp + 0x24]
cmp bl, 0xe7
jne 0x40e97b
mov ecx, dword [esp + 0x12c]
mov edi, 0x55
push 0x7fff
push edx
push dword [esp + 0x140]
movzx eax, word [ecx + 4]
push eax
push 0xe7
push ecx
mov word [edx + 2], ax
mov ecx, esi
mov word [edx + 4], di
push dword [esp + 0x140]
mov edx, dword [esp + 0x48]
call fcn.00410350
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov al, bl
mov word [edx + 2], di
add al, 0x64
mov cl, 3
cmp cl, al
sbb eax, eax
and eax, ebp
movzx edi, ax
mov dword [esp + 0x14], edi
cmp esi, dword [0x4e5bc4]
jne 0x40e9d4
mov cl, byte [esp + 0x140]
mov edx, dword [esp + 0x138]
and cl, 1
mov esi, dword [0x4e8a84]
mov dword [esp + 0x20], ecx
jne 0x40eb59
movzx ecx, bl
mov al, dl
xor al, 1
shl al, 7
mov byte [ecx + 0x4e6580], al
mov ecx, dword [esp + 0x20]
jmp 0x40eb59
mov ebp, dword [esp + 0x140]
mov ecx, ebp
shr ecx, 4
and ecx, 0xffffff01
mov dword [esp + 0x20], ecx
test edi, 0x100
jne 0x40eaff
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je case.default.0x40ea1f
movzx eax, bl
add eax, 0xfffffff4
cmp eax, 0x62
ja case.default.0x40ea1f
movzx eax, byte [eax + 0x410174]
jmp dword [eax*4 + 0x410144]
mov edx, dword [esp + 0x138]
mov al, dl
xor al, 1
mov byte [0x4e8a98], al
jmp 0x40eb0f
mov edx, dword [esp + 0x138]
mov al, dl
xor al, 1
mov byte [0x4e8a99], al
jmp 0x40eb0f
mov edx, dword [esp + 0x138]
mov al, dl
xor al, 1
mov byte [0x4e8a9a], al
jmp 0x40eb0f
mov edx, dword [esp + 0x138]
mov al, dl
xor al, 1
mov byte [0x4e8a9b], al
jmp 0x40eb0f
mov edx, dword [esp + 0x138]
mov al, dl
xor al, 1
mov byte [0x4e8a9c], al
jmp 0x40eb0f
mov edx, dword [esp + 0x138]
mov al, dl
xor al, 1
mov byte [0x4e8a9d], al
jmp 0x40eb0f
mov edx, dword [esp + 0x138]
mov al, dl
xor al, 1
mov byte [0x4e8a9e], al
jmp 0x40eb0f
mov edx, dword [esp + 0x138]
mov al, dl
xor al, 1
mov byte [0x4e8a9f], al
jmp 0x40eb0f
mov edx, dword [esp + 0x138]
mov al, dl
xor al, 1
mov byte [0x4e8aa0], al
jmp 0x40eb0f
mov edx, dword [esp + 0x138]
mov al, dl
xor al, 1
mov byte [0x4e8aa1], al
jmp 0x40eb0f
mov edx, dword [esp + 0x138]
mov al, dl
xor al, 1
mov byte [0x4e8aa2], al
jmp 0x40eb0f
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x138]
jmp 0x40eb13
mov edx, dword [esp + 0x138]
mov ecx, dword [esp + 0x20]
mov esi, dword [0x4e8a84]
movzx edi, bl
lea eax, [edi + edi*4]
cmp byte [esi + eax*4 + 8], 0
jne 0x40eb55
push edx
mov dl, bl
mov ecx, ebp
call fcn.00411680
mov edx, dword [esp + 0x13c]
add esp, 4
mov esi, dword [0x4e8a84]
mov ecx, dword [esp + 0x20]
test al, al
je 0x40eb55
mov al, dl
xor al, 1
shl al, 7
mov byte [edi + 0x4e6580], al
mov edi, dword [esp + 0x14]
cmp byte [esp + 0x1f], 0
je 0x40eb67
mov eax, 0x69
jmp 0x40eb79
test cl, cl
mov eax, 0x20
mov ebp, 0x61
cmovne eax, ebp
movzx eax, ax
cmp byte [0x4e5c53], 0
mov ecx, dword [esp + 0x18]
lea ebp, [ecx + 4]
mov word [ebp], ax
mov dword [esp + 0x40], ebp
je 0x40ebb4
cmp bl, 0x5b
je 0x40eb9b
cmp bl, 0x5c
jne 0x40ebb4
test dl, dl
jne 0x40ebb4
push 0
push SysReAllocString
push 0x7fff
push ecx
push 0
push edi
jmp 0x410122
cmp byte [0x4e8a72], 0
mov ebp, dword [sym.imp.USER32.dll_FindWindowW]
je 0x40ec6f
cmp bl, 0x1b
jne 0x40ec6f
test dl, dl
jne 0x40ec6f
push 0
push str.32771
call ebp
test eax, eax
je 0x40ec69
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
jne 0x40ec69
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
xor ecx, ecx
call fcn.004189c0
mov dl, byte [0x4e657c]
mov ecx, 1
push 0xffc3d44d
shr dl, 3
push 0
and dl, 1
push 0
push 0
or dl, 0xa4
call fcn.004189c0
mov edx, dword [esp + 0x14c]
mov ecx, dword [esp + 0x44]
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x44]
push 0
push edi
push 0x1b
call fcn.00410220
add esp, 0x3c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov esi, dword [0x4e8a84]
movzx eax, di
mov dword [esp + 0x38], eax
lea ecx, [eax + eax*4]
mov eax, dword [0x4e8a88]
lea edi, [eax + ecx*4]
mov ecx, dword [esp + 0x24]
mov al, byte [edi + 0x13]
mov byte [esp + 0x2a], al
cmp ecx, dword [0x4e5bc8]
jne 0x40ec98
test al, al
jne 0x40eca1
movzx eax, bl
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp byte [esp + 0x1f], 0
je 0x40ed0f
cmp dword [esp + 0x13c], 0xffc3d44e
mov eax, dword [esp + 0x138]
jne 0x40ecda
test al, al
je 0x40ecda
cmp dword [0x4e8a74], edi
jne 0x40ecda
mov byte [edi + 0xd], 0
mov byte [edi + 0x10], 0
mov dword [0x4e8a74], 0
push 0x7fff
push dword [esp + 0x1c]
push eax
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
push ebp
push ebx
push dword [esp + 0x140]
push dword [esp + 0x140]
call fcn.00410350
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov ecx, dword [esp + 0x138]
mov eax, 0x7fff
mov dword [esp + 0x4c], eax
test cl, cl
jne 0x40ed2a
mov byte [edi + 0x11], cl
mov word [edi + 4], ax
mov esi, dword [esp + 0x24]
cmp esi, dword [0x4e5bc4]
jne 0x40edaa
test bl, bl
jne 0x40ed72
mov ebp, dword [esp + 0x14]
push 0x7fff
push dword [esp + 0x1c]
push ecx
push ebp
push 0
push dword [esp + 0x140]
mov edx, dword [esp + 0x44]
mov ecx, esi
push dword [esp + 0x140]
call fcn.00410350
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
cmp bl, 1
je 0x40ed7c
cmp bl, 2
jne 0x40edaa
cmp dword [0x4e586c], 0
jne 0x40edd5
push 0
push str.32768
call ebp
test eax, eax
je 0x40eda3
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4e7484]
je 0x40edce
mov ecx, dword [esp + 0x138]
mov edx, dword [0x4e8a74]
test edx, edx
je 0x40ee0b
cmp edx, edi
je 0x40ee0b
test cl, cl
jne 0x40ee0b
cmp esi, dword [0x4e5bc8]
jne 0x40edf5
xor eax, eax
cmp byte [edi + 8], al
sete al
jmp 0x40edfe
mov ecx, dword [esp + 0x138]
mov byte [edi + 0x10], 0
mov ebp, dword [esp + 0x14]
mov al, cl
push 0x7fff
push dword [esp + 0x1c]
xor al, 1
push ecx
push ebp
mov byte [edi + 0xd], al
push ebx
jmp 0x40ed4b
mov eax, dword [0x4e8a74]
movzx eax, byte [eax + 8]
test eax, eax
je 0x40ee0b
mov eax, dword [0x4e8a74]
mov byte [eax + 0x12], 1
cmp byte [edi + 9], 0
jne 0x40ee17
cmp byte [edi + 0xa], 0
je 0x40edd9
mov dword [esp + 0x34], 0
mov ebp, 0x7fff
mov dword [esp + 0x20], ebp
mov dword [esp + 0x30], ebp
test cl, cl
je 0x40ee5d
mov dl, byte [edi + 0x10]
mov dh, byte [edi + 0xd]
movzx eax, word [edi + 4]
mov byte [esp + 0x12], dh
mov byte [esp + 0x2b], dl
mov edx, ebp
mov byte [edi + 0x10], 0
cmp ax, dx
je 0x40ee6d
mov ebp, eax
mov word [edi + 4], dx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x30], ebp
jmp 0x40ee6d
mov al, byte [esp + 0x12]
mov byte [esp + 0x12], al
mov al, byte [esp + 0x12]
mov byte [esp + 0x2b], al
mov al, cl
mov byte [esp + 0x11], 0
xor al, 1
mov byte [edi + 0xd], al
cmp esi, dword [0x4e5bc8]
jne 0x40eef2
cmp byte [edi + 8], 0
je 0x40ef18
mov eax, dword [0x4e8a84]
cmp byte [eax + 0xcb5], 0
jne 0x40eea6
cmp byte [eax + 0xcc9], 0
jne 0x40eea6
xor dl, dl
jmp 0x40eea8
mov dl, 1
cmp byte [eax + 0xcdd], 0
mov byte [eax + 0x161], dl
jne 0x40eec4
cmp byte [eax + 0xcf1], 0
jne 0x40eec4
xor dl, dl
jmp 0x40eec6
mov dl, 1
cmp byte [eax + 0xc8d], 0
mov byte [eax + 0x175], dl
jne 0x40eee8
cmp byte [eax + 0xca1], 0
jne 0x40eee8
xor dl, dl
mov byte [eax + 0x14d], dl
jmp 0x40ef18
mov dl, 1
mov byte [eax + 0x14d], dl
jmp 0x40ef18
cmp dword [0x4e5bc8], 0
jne 0x40ef18
mov cl, 1
call fcn.0041af90
mov ecx, dword [esp + 0x138]
mov byte [0x4e5c57], al
mov byte [0x4e657c], al
mov byte [esp + 0x11], 1
mov eax, dword [edi]
test eax, eax
je 0x40ef28
cmp dword [eax], 7
mov byte [esp + 0x1f], 1
je 0x40ef2d
mov byte [esp + 0x1f], 0
mov al, byte [edi + 9]
test al, al
je 0x40f1d5
test cl, cl
jne 0x40f1d5
mov edx, dword [0x4e8a74]
test edx, edx
je 0x40ef57
cmp byte [edi + 0xa], cl
je 0x40ef57
cmp edi, edx
jne 0x40f1d5
cmp al, 1
jne 0x40f00a
cmp byte [esp + 0x2a], 0
mov ecx, dword [esp + 0x38]
movzx eax, bl
cmove ecx, eax
xor edx, edx
cmp byte [esp + 0x2a], dl
movzx eax, cx
cmovne edx, eax
mov dword [esp + 0x48], ecx
movzx eax, cl
xor ecx, ecx
cmp byte [esp + 0x2a], cl
push 0
cmovne eax, ecx
mov cl, al
call fcn.0041b180
mov ch, al
xor edx, edx
xor eax, eax
mov byte [esp + 0x17], ch
add esp, 4
mov dword [esp + 0x3c], edx
cmp ax, word [0x4e66f8]
jae 0x40f10d
mov cl, byte [0x4e5c20]
nop word [eax + eax]
cmp byte [esp + 0x2a], 0
mov eax, dword [0x4e66e8]
mov ebp, dword [eax + edx*4]
je 0x40efd5
movzx eax, word [ebp + 0xa]
jmp 0x40efd9
movzx eax, byte [ebp + 0x11]
cmp dword [esp + 0x48], eax
je 0x40efe8
test byte [ebp + 0xe], ch
je 0x40f0f5
cmp word [ebp + 6], 0
je 0x40f08e
mov al, byte [ebp + 0x19]
test al, al
je 0x40f0f5
test cl, cl
jne 0x40f0f5
mov esi, dword [esp + 0x24]
mov byte [esp + 0x13], 0
cmp edi, dword [0x4e8a74]
je 0x40f021
mov dword [0x4e8a74], edi
mov byte [edi + 0x12], 0
cmp byte [edi + 0xa], 0
je 0x40f160
cmp byte [esp + 0x11], 0
jne 0x40f03e
mov cl, 1
mov byte [esp + 0x11], 1
call fcn.0041af90
mov al, byte [edi + 8]
mov cl, byte [0x4e5c57]
test al, al
je 0x40f04f
not al
and cl, al
test cl, cl
jne 0x40f063
cmp byte [esp + 0x13], cl
jne 0x40f063
test byte [edi + 0xc], 1
je 0x40f160
cmp esi, dword [0x4e5bc8]
jne 0x40f117
cmp byte [esp + 0x2a], 0
je 0x40f117
mov eax, dword [0x4e8a7c]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x38]
jmp 0x40f127
mov esi, dword [ebp + 0x20]
mov eax, esi
test eax, eax
je 0x40f0f5
cmp byte [eax + 0x1c], 0
jne 0x40f0a6
mov eax, dword [eax + 8]
test eax, eax
jne 0x40f097
jmp 0x40f0f5
test esi, esi
je 0x40f0f5
nop word [eax + eax]
cmp byte [esi + 0x1c], 0
je 0x40f0e6
test cl, cl
je 0x40f0c5
mov ecx, esi
call fcn.0048f870
test al, al
je 0x40f0e0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40f006
mov edx, dword [ebp + 0x1c]
call fcn.00413410
test eax, eax
jne 0x40f006
mov cl, byte [0x4e5c20]
mov esi, dword [esi + 8]
test esi, esi
jne 0x40f0b0
mov edx, dword [esp + 0x3c]
mov ch, byte [esp + 0x13]
movzx eax, word [0x4e66f8]
inc edx
mov dword [esp + 0x3c], edx
cmp edx, eax
jl 0x40efc0
mov esi, dword [esp + 0x24]
mov byte [esp + 0x13], 1
jmp 0x40f021
movzx ecx, cl
movzx eax, bl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4e8a78]
movzx eax, word [eax + ecx*2]
movzx ebp, ax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x30], ebp
test ax, ax
jns 0x40f141
mov word [edi + 4], ax
jmp 0x40f16e
and eax, 0x7fff
cmp ax, word [0x4e66f8]
jae 0x40f164
mov ecx, eax
mov eax, dword [0x4e8a80]
mov ax, word [eax + ecx*2]
mov word [edi + 4], ax
jmp 0x40f164
mov ebp, dword [esp + 0x20]
mov eax, 0x7fff
cmp bp, ax
jne 0x40f1d5
mov al, byte [esp + 0x13]
test al, al
je 0x40f186
mov ecx, dword [esp + 0x40]
mov edx, 0x23
or byte [edi + 0xc], 8
mov word [ecx], dx
cmp byte [edi + 8], 0
jne 0x40f1bf
test byte [edi + 0xc], 1
jne 0x40f1bf
cmp byte [esp + 0x1f], 0
jne 0x40f1bf
test al, al
jne 0x40f1bf
mov ebp, dword [esp + 0x14]
mov ecx, esi
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x24]
mov byte [edi + 0x11], 1
push 0
push ebp
jmp 0x410126
mov ebp, dword [esp + 0x14]
push 0x7fff
push dword [esp + 0x1c]
push 0
push ebp
push ebx
jmp 0x40ed4b
cmp byte [edi + 0xa], 0
mov eax, dword [esp + 0x138]
mov byte [esp + 0x13], 0
je 0x40f25e
test al, al
je 0x40f25e
mov ch, byte [esp + 0x2b]
cmp dword [0x4e8a74], edi
jne 0x40f205
test ch, ch
je 0x40f25e
mov dword [0x4e8a74], 0
cmp byte [edi + 0xb], 0
jne 0x40f259
mov cl, byte [edi + 0xc]
test cl, 8
je 0x40f21d
xor dl, dl
and cl, 0xf7
mov byte [edi + 0xc], cl
jmp 0x40f21f
mov dl, 1
test ch, ch
je 0x40f244
test dl, dl
je 0x40f244
mov ebp, dword [esp + 0x14]
mov ecx, esi
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x24]
push eax
push ebp
jmp 0x410126
mov ebp, dword [esp + 0x14]
push 0x7fff
push dword [esp + 0x1c]
push eax
push ebp
push ebx
jmp 0x40ed4b
mov byte [esp + 0x13], 1
cmp byte [edi + 9], 0
je 0x40f427
test al, al
je 0x40f427
mov edx, dword [0x4e8a74]
xor eax, eax
cmp edx, edi
cmove edx, eax
mov dword [0x4e8a74], edx
cmp byte [edi + 0xe], al
je 0x40f2a0
push 0xffc3d44d
push eax
push eax
push eax
mov dl, 0x12
mov byte [edi + 0xe], al
lea ecx, [eax + 1]
call fcn.004189c0
add esp, 0x10
cmp byte [edi + 0xf], 0
je 0x40f2c4
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov byte [edi + 0xf], 0
mov ecx, 1
call fcn.004189c0
add esp, 0x10
mov edx, 0x7fff
cmp bp, dx
jne 0x40f2f5
mov al, byte [edi + 0xc]
test al, 8
je 0x40f2f5
and al, 0xf7
mov byte [edi + 0xc], al
mov ebp, dword [esp + 0x14]
push 0x7fff
push dword [esp + 0x1c]
push dword [esp + 0x140]
push ebp
push ebx
jmp 0x40ed4b
mov cl, byte [esp + 0x1f]
mov al, byte [edi + 0x12]
test cl, cl
je 0x40f3b2
cmp al, 2
jne 0x40f36d
mov ebp, dword [esp + 0x14]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push ebp
mov ecx, 1
call fcn.004189c0
push 0xffc3d44d
push 0
push 0
push ebp
mov dl, bl
mov ecx, 2
call fcn.004189c0
mov edx, dword [esp + 0x14c]
mov ecx, esi
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x44]
push dword [esp + 0x168]
push ebp
push ebx
call fcn.00410220
add esp, 0x3c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
cmp al, 1
je 0x40f2da
cmp byte [edi + 0xa], 0
jne 0x40f41a
cmp byte [edi + 8], 0
jne 0x40f403
test byte [edi + 0xc], 1
jne 0x40f403
test cl, cl
jne 0x40f403
mov ebp, dword [esp + 0x14]
mov ecx, esi
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x24]
push dword [esp + 0x148]
push ebp
jmp 0x410126
test al, al
je 0x40f375
cmp bp, dx
jne 0x40f375
cmp byte [edi + 8], 0
jne 0x40f2da
test byte [edi + 0xc], 1
mov ecx, esi
mov ebp, dword [esp + 0x14]
je 0x40f3e6
push 0x7fff
push dword [esp + 0x1c]
push dword [esp + 0x140]
jmp 0x40ece8
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x24]
push dword [esp + 0x148]
push ebp
jmp 0x410126
push 0x7fff
push dword [esp + 0x1c]
mov ecx, esi
push dword [esp + 0x140]
jmp 0x40ece4
cmp byte [esp + 0x12], 0
jne 0x40f427
cmp byte [edi + 0xb], 0
je 0x40f403
cmp byte [esp + 0x11], 0
mov eax, 0x7fff
jne 0x40f444
cmp bp, ax
jne 0x40f444
mov cl, 1
call fcn.0041af90
mov eax, 0x7fff
cmp dword [0x4e8a74], 0
mov ecx, 0x7ffd
mov byte [esp + 0x11], 0
je 0x40f81d
mov edx, dword [esp + 0x138]
test dl, dl
je 0x40f470
cmp byte [edi + 0xb], 0
je 0x40f81d
cmp bp, ax
jne 0x40fa9d
movzx esi, word [edi + 6]
xor ebp, ebp
mov dword [esp + 0x3c], esi
cmp si, ax
je 0x40f60d
nop dword [eax]
mov eax, dword [0x4e66e8]
movzx ecx, si
mov esi, dword [eax + ecx*4]
mov al, byte [esi + 0x11]
test al, al
je 0x40f4b3
mov ecx, dword [0x4e8a84]
movzx eax, al
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
jmp 0x40f4c8
movzx eax, word [esi + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4e8a88]
lea eax, [eax + ecx*4]
mov ecx, dword [0x4e8a84]
cmp byte [eax + 0xd], 0
je 0x40f4ef
cmp byte [esi + 0x16], 0
je 0x40f4e6
test dl, dl
jne 0x40f503
mov ax, word [esi + 4]
mov word [edi + 4], ax
test ebp, ebp
jne 0x40f511
jmp 0x40f4ef
test dl, dl
jne 0x40f4ef
test ebp, ebp
cmove ebp, esi
movzx esi, word [esi + 0xc]
mov eax, 0x7fff
mov dword [esp + 0x3c], esi
cmp si, ax
jne 0x40f490
jmp 0x40f509
mov ebp, esi
mov esi, dword [esp + 0x3c]
test ebp, ebp
je 0x40f613
movzx esi, byte [ebp + 0x11]
cmp esi, 0x12
ja case.0x40f521.1
movzx eax, byte [esi + 0x4101ec]
jmp dword [eax*4 + 0x4101d8]
cmp byte [ecx + 0xca1], 0
mov eax, 0xc80
mov esi, 0xc94
cmovne eax, esi
add eax, ecx
jmp 0x40f587
cmp byte [ecx + 0xcc9], 0
mov eax, 0xca8
mov esi, 0xcbc
cmovne eax, esi
add eax, ecx
jmp 0x40f587
cmp byte [ecx + 0xcf1], 0
mov eax, 0xcd0
mov esi, 0xce4
cmovne eax, esi
add eax, ecx
jmp 0x40f587
movzx eax, word [ebp + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4e8a88]
lea eax, [eax + ecx*4]
jmp 0x40f587
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov dword [0x4e8a74], eax
movzx eax, word [ebp + 6]
test ax, ax
je 0x40f5a9
mov ebp, eax
mov eax, dword [0x4e8a74]
mov dword [esp + 0x30], ebp
movzx esi, bp
mov byte [eax + 0x12], 2
jmp 0x40f617
movzx eax, word [ebp + 4]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x11]
push ecx
push eax
lea eax, [edi + 0xc]
push eax
mov eax, dword [esp + 0x148]
lea ecx, [esp + 0x3c]
push eax
call fcn.00413f20
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
jne 0x40f5f4
mov ecx, dword [esp + 0x24]
push 0x7fff
push dword [esp + 0x1c]
push dword [esp + 0x140]
jmp 0x40ece4
mov eax, dword [0x4e8a74]
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x138]
movzx esi, bp
mov byte [eax + 0x12], 2
jmp 0x40f617
mov ebp, dword [esp + 0x20]
jmp 0x40f61c
mov ebp, dword [esp + 0x20]
mov ecx, 0x7ffd
mov eax, 0x7ffe
cmp si, ax
je 0x40f62f
cmp si, cx
jne 0x40f81d
test dl, dl
jne 0x40f637
mov byte [edi + 0x10], 1
test byte [0x4e657c], 0xc
jne 0x40f65e
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.004189c0
mov edx, dword [esp + 0x148]
add esp, 0x10
cmp bl, 0xa2
je 0x40f668
cmp bl, 0xa3
jne 0x40f68b
mov ebp, dword [esp + 0x14]
test dl, dl
jne 0x40f68f
push 0xffc3d44d
push 0
push 0
push ebp
mov dl, bl
mov ecx, 1
call fcn.004189c0
add esp, 0x10
jmp 0x40f68f
mov ebp, dword [esp + 0x14]
mov eax, dword [0x4e8a74]
mov byte [eax + 0xe], 1
mov eax, 0x7ffd
cmp si, ax
jne 0x40f6cd
test byte [0x4e657c], 0x30
jne 0x40f6c2
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.004189c0
add esp, 0x10
mov eax, dword [0x4e8a74]
mov byte [eax + 0xf], 1
jmp 0x40f74a
mov eax, 0x7ffe
cmp si, ax
jne 0x40f74a
cmp bl, 0xa0
je 0x40f6e1
cmp bl, 0xa1
jne 0x40f704
cmp byte [esp + 0x138], 0
jne 0x40f704
push 0xffc3d44d
push 0
push 0
push ebp
mov dl, bl
mov ecx, 1
call fcn.004189c0
add esp, 0x10
test byte [0x4e657c], 0x10
je 0x40f727
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa0
mov ecx, 1
call fcn.004189c0
add esp, 0x10
test byte [0x4e657c], 0x20
je 0x40f74a
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa1
mov ecx, 1
call fcn.004189c0
add esp, 0x10
test byte [0x4e657c], 1
je 0x40f76d
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa2
mov ecx, 1
call fcn.004189c0
add esp, 0x10
test byte [0x4e657c], 2
je 0x40f790
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa3
mov ecx, 1
call fcn.004189c0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.004189c0
mov eax, 0x7ffd
add esp, 0x10
cmp si, ax
jne 0x40f7f1
mov eax, dword [0x4e8a74]
cmp byte [eax + 0xf], 0
je 0x40f7f1
cmp bl, 0x60
jb 0x40f7c9
cmp bl, 0x69
jbe 0x40f7ce
cmp bl, 0x6e
jne 0x40f7f1
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.004189c0
mov eax, dword [0x4e8a74]
add esp, 0x10
mov byte [eax + 0xf], 0
mov eax, dword [esp + 0x40]
mov ecx, 0x68
mov word [eax], cx
mov eax, dword [esp + 0x138]
test al, al
jne 0x40f80c
mov byte [edi + 0x11], 1
push 0
push SysReAllocString
push 0x7fff
jmp 0x41011c
mov ecx, 0x7fff
cmp bp, cx
jne 0x40fa96
mov al, byte [edi + 8]
mov dl, byte [0x4e5c57]
test al, al
je 0x40f83c
not al
and dl, al
mov eax, dword [esp + 0x24]
mov dh, byte [esp + 0x2a]
cmp eax, dword [0x4e5bc8]
jne 0x40f864
test dh, dh
je 0x40f864
mov eax, dword [0x4e8a7c]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x38]
movzx ebp, bl
jmp 0x40f874
mov eax, dword [0x4e8a78]
movzx ecx, dl
movzx ebp, bl
shl ecx, 8
add ecx, ebp
movzx eax, word [eax + ecx*2]
movzx ecx, ax
movzx esi, ax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], ecx
mov ecx, esi
cmp ax, word [esp + 0x4c]
jne 0x40f90a
cmp byte [0x4e8a72], 0
je 0x40f90a
cmp bl, 9
je 0x40f90a
mov eax, dword [esp + 0x24]
and dl, 0xf3
cmp eax, dword [0x4e5bc8]
jne 0x40f8c1
test dh, dh
je 0x40f8c1
mov eax, dword [0x4e8a7c]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x38]
jmp 0x40f8ce
mov eax, dword [0x4e8a78]
movzx ecx, dl
shl ecx, 8
add ecx, ebp
movzx eax, word [eax + ecx*2]
mov edx, 0x7ff9
movzx ebp, ax
movzx ecx, ax
and eax, 0x7fff
mov dword [esp + 0x20], ebp
mov dword [esp + 0x30], ebp
cmp ax, dx
jbe 0x40f8f9
mov edx, 0x7fff
cmp ax, dx
jb 0x40f90e
mov ebp, 0x7fff
mov dword [esp + 0x20], ebp
mov ecx, ebp
mov dword [esp + 0x30], ebp
jmp 0x40f90e
mov ebp, dword [esp + 0x20]
movzx eax, cx
test ax, ax
jns 0x40f94e
mov edx, dword [esp + 0x138]
test dl, dl
jne 0x40f9fa
mov word [edi + 4], bp
lea ecx, [edi + 4]
mov eax, 0x7fff
cmp word [ecx], ax
jne 0x40fa5c
mov ecx, dword [esp + 0x24]
push 0x7fff
push dword [esp + 0x1c]
push 0
jmp 0x40ece4
mov ecx, 0x7fff
cmp ax, cx
je 0x40fa0c
mov edx, dword [esp + 0x138]
and eax, ecx
test dl, dl
je 0x40f9dc
cmp ax, word [0x4e66f8]
jae 0x40f9cf
mov esi, eax
mov eax, dword [0x4e8a80]
cmp word [eax + esi*2], cx
je 0x40f9cf
cmp byte [esp + 0x13], 0
jne 0x40f9c0
push dword [esp + 0x40]
lea eax, [esp + 0x15]
push eax
lea eax, [edi + 0xc]
push eax
push dword [esp + 0x148]
lea ecx, [esp + 0x40]
call fcn.00413f20
mov edx, dword [esp + 0x148]
add esp, 0x10
mov dword [esp + 0x34], eax
mov ecx, 0x7fff
test eax, eax
je 0x40f9c0
mov ebp, dword [esp + 0x30]
jmp 0x40fa03
mov eax, dword [0x4e8a80]
movzx ebp, word [eax + esi*2]
mov dword [esp + 0x30], ebp
jmp 0x40fa03
cmp byte [esp + 0x13], 0
jne 0x40fa0c
mov ebp, dword [esp + 0x20]
jmp 0x40fa03
mov ebp, dword [esp + 0x20]
cmp ax, word [0x4e66f8]
jae 0x40fa03
mov ecx, eax
mov eax, dword [0x4e8a80]
mov ax, word [eax + ecx*2]
mov word [edi + 4], ax
jmp 0x40f9fe
mov ebp, dword [esp + 0x20]
mov ecx, 0x7fff
cmp bp, cx
jne 0x40fa9d
mov eax, dword [esp + 0x138]
test al, al
je 0x40f929
cmp byte [edi + 8], 0
jne 0x40fa49
test byte [edi + 0xc], 1
jne 0x40fa49
cmp byte [edi + 9], 0
je 0x40fa49
cmp byte [esp + 0x1f], 0
jne 0x40fa49
mov ebp, dword [esp + 0x14]
push 0
push SysReAllocString
push 0x7fff
jmp 0x41011c
mov ecx, dword [esp + 0x24]
push 0x7fff
push dword [esp + 0x1c]
push eax
jmp 0x40ece4
push 0
lea eax, [esp + 0x15]
mov dl, 1
push eax
lea eax, [edi + 0xc]
push eax
push 0
call fcn.00413f20
mov ebp, dword [esp + 0x24]
add esp, 0x10
cmp byte [esp + 0x11], 0
mov ecx, dword [esp + 0x24]
je 0x40fb8b
push 0x7fff
push dword [esp + 0x1c]
push 0
jmp 0x40ece8
mov edx, dword [esp + 0x138]
mov al, byte [edi + 0xc]
lea esi, [edi + 0xc]
test al, 8
je 0x40fab4
test dl, dl
je 0x40fab4
and al, 0xf7
mov byte [esp + 0x11], 1
mov byte [esi], al
mov eax, ebp
and eax, 0x7fff
cmp ax, word [0x4e66f8]
jae 0x40fba7
cmp dword [esp + 0x34], 0
jne 0x40fba7
mov ebp, dword [esp + 0x40]
lea eax, [esp + 0x11]
push ebp
push eax
push esi
push dword [esp + 0x148]
lea ecx, [esp + 0x40]
call fcn.00413f20
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
jne 0x40fba3
cmp word [ebp], 0x69
je 0x40f5db
mov eax, dword [esp + 0x138]
test al, al
je 0x40fb47
cmp byte [edi + 0x11], 0
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
je 0x40fb38
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x24]
push eax
push ebp
jmp 0x410126
push 0x7fff
push dword [esp + 0x1c]
push eax
jmp 0x40ece8
lea ecx, [edi + 4]
mov eax, 0x7fff
cmp word [ecx], ax
je 0x40f93a
push 0
lea eax, [esp + 0x15]
mov byte [esp + 0x15], 0
push eax
push esi
push 0
mov dl, 1
call fcn.00413f20
mov ebp, dword [esp + 0x24]
add esp, 0x10
cmp byte [esp + 0x11], 0
mov ecx, dword [esp + 0x24]
jne 0x40fa86
and byte [esi], 0xf7
mov byte [edi + 0x11], 1
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x24]
push 0
push ebp
jmp 0x410126
mov ebp, dword [esp + 0x30]
and ebp, 0x7fff
test byte [0x4e657c], 0xcc
je 0x40fc4d
cmp byte [esp + 0x11], 0
jne 0x40fc4d
cmp byte [0x4e8a71], 0
jne 0x40fbda
mov eax, dword [esp + 0x24]
cmp eax, dword [0x4e5bc4]
jne 0x40fc4d
test byte [0x4e657c], 0xc0
mov dh, byte [0x4e5c56]
je 0x40fc04
test dh, 0xc0
jne 0x40fbfb
mov dl, 0xc0
mov ecx, ebp
call fcn.004141a0
test al, al
je 0x40fc04
mov byte [0x4e8a70], 1
jmp 0x40fc4d
cmp byte [0x4e8a70], 0
jne 0x40fc4d
mov al, byte [0x4e657c]
test al, 0xc
je 0x40fc4d
test al, 3
jne 0x40fc4d
test dh, 0xc
jne 0x40fc2c
mov dl, 0xc
mov ecx, ebp
call fcn.004141a0
test al, al
je 0x40fc4d
cmp dword [0x4e5bc8], 0
je 0x40fc3e
mov byte [0x4e8a70], 1
jmp 0x40fc4d
mov edx, 0xffc3d44d
mov ecx, 2
call fcn.00418f80
movzx ecx, bp
lea eax, [ecx - 0x7ffa]
cmp eax, 4
ja case.default.0x40fc5f
jmp dword [eax*4 + 0x410200]
cmp byte [0x4e8a72], 0
je 0x40f5db
xor al, al
test byte [0x4e657c], 4
je 0x40fc85
mov edx, 0xa4
jmp 0x40fc97
test byte [0x4e657c], 8
movzx edx, al
mov eax, 0xa5
cmovne edx, eax
cmp byte [0x4e8a72], 0
mov dword [esp + 0x3c], edx
je 0x40fd1e
mov eax, 0x7ffb
cmp bp, ax
je case.0x40fc5f.32765
test dl, dl
movzx eax, dl
push 0xffc3d44d
mov ecx, 0x12
cmovne ecx, eax
push 0
push 0
mov dl, cl
mov ecx, 1
push 0
call fcn.004189c0
add esp, 0x10
cmp byte [edi + 8], 0
je 0x40fd0d
cmp bl, 0x5b
je 0x40fd0d
cmp bl, 0x5c
je 0x40fd0d
cmp byte [esp + 0x138], 0
jne 0x40fd0d
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.004189c0
add esp, 0x10
mov byte [0x4e8a72], 0
mov ebp, 0x7fff
jmp 0x40ffc0
cmp bl, 0xa4
je 0x40fd2d
mov byte [esp + 0x2b], 0
cmp bl, 0xa5
jne 0x40fd32
mov byte [esp + 0x2b], 1
cmp bl, 0xa0
je 0x40fd40
cmp bl, 0xa1
je 0x40fd40
xor cl, cl
jmp 0x40fd42
mov cl, 1
mov byte [esp + 0x13], cl
cmp bl, 0xa2
je 0x40fd55
mov byte [esp + 0x12], 0
cmp bl, 0xa3
jne 0x40fd5a
mov byte [esp + 0x12], 1
xor dl, dl
test byte [0x4e657c], 0x10
mov dword [esp + 0x34], edx
je 0x40fd70
mov edx, 0xa0
jmp 0x40fd93
test byte [0x4e657c], 0x20
mov eax, dword [esp + 0x138]
je 0x40fd84
mov dl, 0xa1
jmp 0x40fd9a
test al, al
jne 0x40fd9e
test cl, cl
movzx edx, dl
movzx eax, bl
cmovne edx, eax
mov eax, dword [esp + 0x138]
mov dword [esp + 0x34], edx
xor cl, cl
test byte [0x4e657c], 1
mov dword [esp + 0x38], ecx
je 0x40fdb4
mov byte [esp + 0x38], 0xa2
jmp 0x40fdda
test byte [0x4e657c], 2
je 0x40fdc4
mov byte [esp + 0x38], 0xa3
jmp 0x40fdda
test al, al
jne 0x40fdda
cmp byte [esp + 0x12], 0
movzx ecx, cl
movzx eax, bl
cmovne ecx, eax
mov dword [esp + 0x38], ecx
mov byte [esp + 0x12], 0
test dl, dl
je 0x40fe00
push 0xffc3d44d
push 0
push 0
push 0
mov ecx, 1
call fcn.004189c0
add esp, 0x10
mov byte [esp + 0x12], 1
mov eax, dword [esp + 0x38]
test al, al
je 0x40fe22
push 0xffc3d44d
push 0
push 0
push 0
mov dl, al
mov ecx, 1
call fcn.004189c0
add esp, 0x10
cmp byte [esp + 0x2b], 0
je 0x40fe37
cmp byte [esp + 0x138], 0
jne 0x40fe3f
mov al, bl
jmp 0x40fe3b
mov eax, dword [esp + 0x3c]
test al, al
jne 0x40fe56
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.004189c0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.004189c0
add esp, 0x10
cmp byte [esp + 0x12], 0
je 0x40fe97
cmp byte [esp + 0x13], 0
jne 0x40fe97
mov dl, byte [esp + 0x34]
xor ecx, ecx
push 0xffc3d44d
push 0
push 0
push 0
call fcn.004189c0
add esp, 0x10
mov byte [0x4e8a72], 1
mov ebp, 0x7fff
jmp 0x40ffc0
cmp byte [0x4e8a72], 0
je 0x40f5db
mov eax, dword [esp + 0x138]
test al, al
jne 0x40fef5
cmp bl, 0xa2
je 0x40fed4
cmp bl, 0xa3
je 0x40fed4
cmp bl, 0xa0
je 0x40fed4
cmp bl, 0xa1
jne 0x40fef5
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.004189c0
mov eax, dword [esp + 0x148]
add esp, 0x10
test byte [0x4e657c], 0xc
je 0x40ff0c
test al, al
je 0x40ff23
cmp bl, 0xa4
je 0x40ff0c
cmp bl, 0xa5
jne 0x40ff23
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.004189c0
add esp, 0x10
mov eax, 0x7ffd
mov byte [esp + 0x12], 0
cmp bp, ax
jne 0x40ff57
test byte [0x4e657c], 0x30
jne 0x40ff57
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.004189c0
add esp, 0x10
mov byte [esp + 0x12], 1
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.004189c0
add esp, 0x10
cmp byte [esp + 0x12], 0
je 0x40fd14
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.004189c0
add esp, 0x10
mov ebp, 0x7fff
jmp 0x40ffc0
mov ebp, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x44], ebp
mov eax, dword [ecx + 4]
test eax, eax
je 0x40ffc0
cmp byte [eax], 5
jb 0x40ffc0
movzx eax, word [ecx + 0x14]
shl eax, 0x10
or ebp, eax
mov dword [esp + 0x44], ebp
cmp byte [esp + 0x1f], 0
mov ecx, 0x68
mov eax, dword [esp + 0x40]
mov word [eax], cx
mov eax, dword [esp + 0x138]
je 0x41004f
test al, al
je 0x4100a3
cmp byte [edi + 9], 0
je 0x41004f
mov ebp, dword [esp + 0x14]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push ebp
mov ecx, 1
call fcn.004189c0
push 0xffc3d44d
push 0
push 0
push ebp
mov dl, bl
mov ecx, 2
call fcn.004189c0
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x14c]
push 0
push SysReAllocString
push ecx
push dword [esp + 0x44]
mov ecx, dword [esp + 0x54]
push dword [esp + 0x168]
push ebp
push ebx
call fcn.00410220
add esp, 0x3c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
test al, al
je 0x4100a3
cmp byte [edi + 8], 0
je 0x410080
cmp byte [edi + 0x11], 0
mov ecx, dword [esp + 0x24]
je 0x41007a
push 0
push SysReAllocString
push ebp
push dword [esp + 0x24]
mov ebp, dword [esp + 0x24]
push eax
push ebp
jmp 0x410126
push ebp
jmp 0x40ecdf
cmp byte [esp + 0x11], 0
je 0x410104
mov ecx, dword [esp + 0x24]
push ebp
push dword [esp + 0x1c]
mov ebp, dword [esp + 0x1c]
push eax
push ebp
push ebx
push dword [esp + 0x140]
jmp 0x40e95d
mov edx, dword [0x4e8a74]
mov byte [edi + 0x10], 1
test edx, edx
je 0x4100bb
cmp byte [edx + 8], 0
je 0x4100bb
mov byte [edx + 0x12], 2
cmp byte [esp + 0x11], 0
je 0x4100d4
or byte [esi], 8
mov ecx, dword [esp + 0x24]
push ebp
push dword [esp + 0x1c]
push eax
jmp 0x40ece4
cmp bl, 0xa4
je 0x4100de
cmp bl, 0xa5
jne 0x410104
mov ebp, dword [esp + 0x14]
mov dl, bl
push 0xffc3d450
push 0
push 0
push ebp
mov ecx, 1
call fcn.004189c0
mov eax, dword [esp + 0x148]
add esp, 0x10
jmp 0x410108
mov ebp, dword [esp + 0x14]
test al, al
jne 0x410110
mov byte [edi + 0x11], 1
mov ecx, dword [esp + 0x44]
push 0
push SysReAllocString
push ecx
push dword [esp + 0x24]
push eax
push ebp
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x144]
push ebx
call fcn.00410220
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret