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

Disassembly:
sub esp, 0x118
mov eax, dword [esp + 0x130]
mov dword [esp + 0x20], edx
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, 0x7fff
mov dword [esp + 0x24], esi
mov dword [esp + 0x44], ecx
push edi
mov edi, dword [esp + 0x138]
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 [0x4e4bac]
mov ebx, dword [esp + 0x134]
test ecx, ecx
jne 0x40e86b
lea edx, [esp + 0x54]
mov dword [esp + 0x18], edx
jmp 0x40e92a
mov eax, dword [0x4e4c18]
imul esi, eax, 0xd4
inc eax
add esi, ecx
xor ecx, ecx
cmp eax, dword [0x4e2120]
mov dword [esp + 0x18], esi
cmovge eax, ecx
mov dword [0x4e4c18], eax
mov eax, dword [esp + 0x13c]
mov byte [esi], bl
mov byte [esi + 6], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [0x4e4c14], eax
sub ecx, dword [0x4e7a1c]
mov dword [0x4e7a1c], eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4dba70]
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4db954]
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 [0x4e4c10]
je 0x40e90a
push esi
push ecx
push 0x418
push dword [0x4e4b98]
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 [0x4ce694]
mov dword [ecx], eax
mov eax, dword [0x4ce698]
mov dword [ecx + 4], eax
mov dword [0x4e4c10], esi
mov esi, dword [esp + 0x28]
cmp bl, 0xe7
jne 0x40e97b
mov ecx, dword [esp + 0x130]
mov edi, 0x55
push 0x7fff
push edx
push dword [esp + 0x144]
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 + 0x144]
mov edx, dword [esp + 0x4c]
call fcn.00410340
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
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 [0x4e4bb0]
jne 0x40e9d4
mov cl, byte [esp + 0x144]
mov edx, dword [esp + 0x13c]
and cl, 1
mov esi, dword [0x4e7a74]
mov dword [esp + 0x20], ecx
jne 0x40eb59
movzx ecx, bl
mov al, dl
xor al, 1
shl al, 7
mov byte [ecx + 0x4e5568], al
mov ecx, dword [esp + 0x20]
jmp 0x40eb59
mov ebp, dword [esp + 0x144]
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 + 0x410168]
jmp dword [eax*4 + 0x410138]
mov edx, dword [esp + 0x13c]
mov al, dl
xor al, 1
mov byte [0x4e7a88], al
jmp 0x40eb0f
mov edx, dword [esp + 0x13c]
mov al, dl
xor al, 1
mov byte [0x4e7a89], al
jmp 0x40eb0f
mov edx, dword [esp + 0x13c]
mov al, dl
xor al, 1
mov byte [0x4e7a8a], al
jmp 0x40eb0f
mov edx, dword [esp + 0x13c]
mov al, dl
xor al, 1
mov byte [0x4e7a8b], al
jmp 0x40eb0f
mov edx, dword [esp + 0x13c]
mov al, dl
xor al, 1
mov byte [0x4e7a8c], al
jmp 0x40eb0f
mov edx, dword [esp + 0x13c]
mov al, dl
xor al, 1
mov byte [0x4e7a8d], al
jmp 0x40eb0f
mov edx, dword [esp + 0x13c]
mov al, dl
xor al, 1
mov byte [0x4e7a8e], al
jmp 0x40eb0f
mov edx, dword [esp + 0x13c]
mov al, dl
xor al, 1
mov byte [0x4e7a8f], al
jmp 0x40eb0f
mov edx, dword [esp + 0x13c]
mov al, dl
xor al, 1
mov byte [0x4e7a90], al
jmp 0x40eb0f
mov edx, dword [esp + 0x13c]
mov al, dl
xor al, 1
mov byte [0x4e7a91], al
jmp 0x40eb0f
mov edx, dword [esp + 0x13c]
mov al, dl
xor al, 1
mov byte [0x4e7a92], al
jmp 0x40eb0f
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x13c]
jmp 0x40eb13
mov edx, dword [esp + 0x13c]
mov ecx, dword [esp + 0x20]
mov esi, dword [0x4e7a74]
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 + 0x140]
add esp, 4
mov esi, dword [0x4e7a74]
mov ecx, dword [esp + 0x20]
test al, al
je 0x40eb55
mov al, dl
xor al, 1
shl al, 7
mov byte [edi + 0x4e5568], 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 [0x4e4c3e], 0
mov ecx, dword [esp + 0x18]
lea ebp, [ecx + 4]
mov word [ebp], ax
mov dword [esp + 0x44], 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 0x410116
cmp byte [0x4e7a62], 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.004189d0
mov dl, byte [0x4e4c43]
mov ecx, 1
push 0xffc3d44d
shr dl, 3
push 0
and dl, 1
push 0
push 0
or dl, 0xa4
call fcn.004189d0
mov edx, dword [esp + 0x150]
mov ecx, dword [esp + 0x48]
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x44]
push 0
push edi
push 0x1b
call fcn.00410210
add esp, 0x3c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
mov esi, dword [0x4e7a74]
movzx eax, di
mov dword [esp + 0x3c], eax
lea ecx, [eax + eax*4]
mov eax, dword [0x4e7a78]
lea edi, [eax + ecx*4]
mov ecx, dword [esp + 0x28]
mov al, byte [edi + 0x13]
mov byte [esp + 0x27], al
cmp ecx, dword [0x4e4bb4]
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 + 0x140], 0xffc3d44e
mov eax, dword [esp + 0x13c]
jne 0x40ecda
test al, al
je 0x40ecda
cmp dword [0x4e7a64], edi
jne 0x40ecda
mov byte [edi + 0xd], 0
mov byte [edi + 0x10], 0
mov dword [0x4e7a64], 0
push 0x7fff
push dword [esp + 0x1c]
push eax
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
push ebp
push ebx
push dword [esp + 0x144]
push dword [esp + 0x144]
call fcn.00410340
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
mov ecx, dword [esp + 0x13c]
mov eax, 0x7fff
mov dword [esp + 0x50], eax
test cl, cl
jne 0x40ed2a
mov byte [edi + 0x11], cl
mov word [edi + 4], ax
mov esi, dword [esp + 0x28]
cmp esi, dword [0x4e4bb0]
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 + 0x144]
mov edx, dword [esp + 0x48]
mov ecx, esi
push dword [esp + 0x144]
call fcn.00410340
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
cmp bl, 1
je 0x40ed7c
cmp bl, 2
jne 0x40edaa
cmp dword [0x4e485c], 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 [0x4e6ce0]
je 0x40edce
mov ecx, dword [esp + 0x13c]
mov edx, dword [0x4e7a64]
test edx, edx
je 0x40ee0b
cmp edx, edi
je 0x40ee0b
test cl, cl
jne 0x40ee0b
cmp esi, dword [0x4e4bb4]
jne 0x40edf5
xor eax, eax
cmp byte [edi + 8], al
sete al
jmp 0x40edfe
mov ecx, dword [esp + 0x13c]
mov al, cl
mov byte [edi + 0x10], 0
xor al, 1
mov byte [edi + 0xd], al
mov ebp, dword [esp + 0x14]
push 0x7fff
push dword [esp + 0x1c]
push ecx
push ebp
push ebx
jmp 0x40ed4b
mov eax, dword [0x4e7a64]
movzx eax, byte [eax + 8]
test eax, eax
je 0x40ee0b
mov eax, dword [0x4e7a64]
mov byte [eax + 0x12], 1
cmp byte [edi + 9], 0
jne 0x40ee17
cmp byte [edi + 0xa], 0
je 0x40ede0
mov dword [esp + 0x38], 0
mov ebp, 0x7fff
mov dword [esp + 0x20], ebp
mov dword [esp + 0x34], 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 + 0x2f], 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 + 0x34], ebp
jmp 0x40ee6d
mov al, byte [esp + 0x12]
mov byte [esp + 0x12], al
mov al, byte [esp + 0x12]
mov byte [esp + 0x2f], al
mov al, cl
mov byte [esp + 0x11], 0
xor al, 1
mov byte [edi + 0xd], al
cmp esi, dword [0x4e4bb4]
jne 0x40eef2
cmp byte [edi + 8], 0
je 0x40ef18
mov eax, dword [0x4e7a74]
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 [0x4e4bb4], 0
jne 0x40ef18
mov cl, 1
call fcn.0041af60
mov ecx, dword [esp + 0x13c]
mov byte [0x4e4c42], al
mov byte [0x4e4c43], 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 [0x4e7a64]
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 + 0x27], 0
mov ecx, dword [esp + 0x3c]
movzx eax, bl
cmove ecx, eax
xor edx, edx
cmp byte [esp + 0x27], dl
movzx eax, cx
cmovne edx, eax
mov dword [esp + 0x4c], ecx
movzx eax, cl
xor ecx, ecx
cmp byte [esp + 0x27], cl
push 0
cmovne eax, ecx
mov cl, al
call fcn.0041b150
mov ch, al
xor edx, edx
xor eax, eax
mov byte [esp + 0x17], ch
add esp, 4
mov dword [esp + 0x40], edx
cmp ax, word [0x4e56e4]
jae 0x40f10d
mov cl, byte [0x4e4c0c]
nop word [eax + eax]
cmp byte [esp + 0x27], 0
mov eax, dword [0x4e56d4]
mov ebp, dword [eax + edx*4]
je 0x40efd5
movzx eax, word [ebp + 0xa]
jmp 0x40efd9
movzx eax, byte [ebp + 0x11]
cmp dword [esp + 0x4c], 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 + 0x28]
mov byte [esp + 0x13], 0
cmp edi, dword [0x4e7a64]
je 0x40f021
mov dword [0x4e7a64], 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.0041af60
mov al, byte [edi + 8]
mov cl, byte [0x4e4c42]
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 [0x4e4bb4]
jne 0x40f117
cmp byte [esp + 0x27], 0
je 0x40f117
mov eax, dword [0x4e7a6c]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x3c]
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.0048f4a0
test al, al
je 0x40f0e0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40f006
mov edx, dword [ebp + 0x1c]
call fcn.00413400
test eax, eax
jne 0x40f006
mov cl, byte [0x4e4c0c]
mov esi, dword [esi + 8]
test esi, esi
jne 0x40f0b0
mov edx, dword [esp + 0x40]
mov ch, byte [esp + 0x13]
movzx eax, word [0x4e56e4]
inc edx
mov dword [esp + 0x40], edx
cmp edx, eax
jl 0x40efc0
mov esi, dword [esp + 0x28]
mov byte [esp + 0x13], 1
jmp 0x40f021
movzx ecx, cl
movzx eax, bl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4e7a68]
movzx eax, word [eax + ecx*2]
movzx ebp, ax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x34], ebp
test ax, ax
jns 0x40f141
mov word [edi + 4], ax
jmp 0x40f16e
and eax, 0x7fff
cmp ax, word [0x4e56e4]
jae 0x40f164
mov ecx, eax
mov eax, dword [0x4e7a70]
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 + 0x44]
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 0x41011a
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 + 0x13c]
mov byte [esp + 0x13], 0
je 0x40f25e
test al, al
je 0x40f25e
mov ch, byte [esp + 0x2f]
cmp dword [0x4e7a64], edi
jne 0x40f205
test ch, ch
je 0x40f25e
mov dword [0x4e7a64], 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 0x41011a
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 [0x4e7a64]
xor eax, eax
cmp edx, edi
cmove edx, eax
mov dword [0x4e7a64], 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.004189d0
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.004189d0
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 + 0x144]
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.004189d0
push 0xffc3d44d
push 0
push 0
push ebp
mov dl, bl
mov ecx, 2
call fcn.004189d0
mov edx, dword [esp + 0x150]
mov ecx, esi
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x44]
push dword [esp + 0x16c]
push ebp
push ebx
call fcn.00410210
add esp, 0x3c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
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 + 0x14c]
push ebp
jmp 0x41011a
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 + 0x144]
jmp 0x40ece8
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x24]
push dword [esp + 0x14c]
push ebp
jmp 0x41011a
push 0x7fff
push dword [esp + 0x1c]
mov ecx, esi
push dword [esp + 0x144]
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.0041af60
mov eax, 0x7fff
cmp dword [0x4e7a64], 0
mov ecx, 0x7ffd
mov byte [esp + 0x11], 0
je 0x40f81d
mov edx, dword [esp + 0x13c]
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 + 0x40], esi
cmp si, ax
je 0x40f60d
nop dword [eax]
mov eax, dword [0x4e56d4]
movzx ecx, si
mov esi, dword [eax + ecx*4]
mov al, byte [esi + 0x11]
test al, al
je 0x40f4b3
mov ecx, dword [0x4e7a74]
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 [0x4e7a78]
lea eax, [eax + ecx*4]
mov ecx, dword [0x4e7a74]
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 + 0x40], esi
cmp si, ax
jne 0x40f490
jmp 0x40f509
mov ebp, esi
mov esi, dword [esp + 0x40]
test ebp, ebp
je 0x40f613
movzx esi, byte [ebp + 0x11]
cmp esi, 0x12
ja case.0x40f521.1
movzx eax, byte [esi + 0x4101e0]
jmp dword [eax*4 + 0x4101cc]
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 [0x4e7a78]
lea eax, [eax + ecx*4]
jmp 0x40f587
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov dword [0x4e7a64], eax
movzx eax, word [ebp + 6]
test ax, ax
je 0x40f5a9
mov ebp, eax
mov eax, dword [0x4e7a64]
mov dword [esp + 0x34], ebp
movzx esi, bp
mov byte [eax + 0x12], 2
jmp 0x40f617
movzx eax, word [ebp + 4]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x11]
push ecx
push eax
lea eax, [edi + 0xc]
push eax
mov eax, dword [esp + 0x14c]
lea ecx, [esp + 0x40]
push eax
call fcn.00413f40
add esp, 0x10
mov dword [esp + 0x38], eax
test eax, eax
jne 0x40f5f4
mov ecx, dword [esp + 0x28]
push 0x7fff
push dword [esp + 0x1c]
push dword [esp + 0x144]
jmp 0x40ece4
mov eax, dword [0x4e7a64]
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x13c]
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 [0x4e4c43], 0xc
jne 0x40f65e
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.004189d0
mov edx, dword [esp + 0x14c]
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.004189d0
add esp, 0x10
jmp 0x40f68f
mov ebp, dword [esp + 0x14]
mov eax, dword [0x4e7a64]
mov byte [eax + 0xe], 1
mov eax, 0x7ffd
cmp si, ax
jne 0x40f6cd
test byte [0x4e4c43], 0x30
jne 0x40f6c2
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.004189d0
add esp, 0x10
mov eax, dword [0x4e7a64]
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 + 0x13c], 0
jne 0x40f704
push 0xffc3d44d
push 0
push 0
push ebp
mov dl, bl
mov ecx, 1
call fcn.004189d0
add esp, 0x10
test byte [0x4e4c43], 0x10
je 0x40f727
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa0
mov ecx, 1
call fcn.004189d0
add esp, 0x10
test byte [0x4e4c43], 0x20
je 0x40f74a
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa1
mov ecx, 1
call fcn.004189d0
add esp, 0x10
test byte [0x4e4c43], 1
je 0x40f76d
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa2
mov ecx, 1
call fcn.004189d0
add esp, 0x10
test byte [0x4e4c43], 2
je 0x40f790
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa3
mov ecx, 1
call fcn.004189d0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.004189d0
mov eax, 0x7ffd
add esp, 0x10
cmp si, ax
jne 0x40f7f1
mov eax, dword [0x4e7a64]
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.004189d0
mov eax, dword [0x4e7a64]
add esp, 0x10
mov byte [eax + 0xf], 0
mov eax, dword [esp + 0x44]
mov ecx, 0x68
mov word [eax], cx
mov eax, dword [esp + 0x13c]
test al, al
jne 0x40f80c
mov byte [edi + 0x11], 1
push 0
push SysReAllocString
push 0x7fff
jmp 0x410110
mov ecx, 0x7fff
cmp bp, cx
jne 0x40fa96
mov al, byte [edi + 8]
mov dl, byte [0x4e4c42]
test al, al
je 0x40f83c
not al
and dl, al
mov eax, dword [esp + 0x28]
mov dh, byte [esp + 0x27]
cmp eax, dword [0x4e4bb4]
jne 0x40f864
test dh, dh
je 0x40f864
mov eax, dword [0x4e7a6c]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x3c]
movzx ebp, bl
jmp 0x40f874
mov eax, dword [0x4e7a68]
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 + 0x34], ecx
mov ecx, esi
cmp ax, word [esp + 0x50]
jne 0x40f90a
cmp byte [0x4e7a62], 0
je 0x40f90a
cmp bl, 9
je 0x40f90a
mov eax, dword [esp + 0x28]
and dl, 0xf3
cmp eax, dword [0x4e4bb4]
jne 0x40f8c1
test dh, dh
je 0x40f8c1
mov eax, dword [0x4e7a6c]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x3c]
jmp 0x40f8ce
mov eax, dword [0x4e7a68]
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 + 0x34], 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 + 0x34], ebp
jmp 0x40f90e
mov ebp, dword [esp + 0x20]
movzx eax, cx
test ax, ax
jns 0x40f94e
mov edx, dword [esp + 0x13c]
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 + 0x28]
push 0x7fff
push dword [esp + 0x1c]
push 0
jmp 0x40ece4
mov ecx, 0x7fff
cmp ax, cx
je 0x40fa0c
mov edx, dword [esp + 0x13c]
and eax, ecx
test dl, dl
je 0x40f9dc
cmp ax, word [0x4e56e4]
jae 0x40f9cf
mov esi, eax
mov eax, dword [0x4e7a70]
cmp word [eax + esi*2], cx
je 0x40f9cf
cmp byte [esp + 0x13], 0
jne 0x40f9c0
push dword [esp + 0x44]
lea eax, [esp + 0x15]
push eax
lea eax, [edi + 0xc]
push eax
push dword [esp + 0x14c]
lea ecx, [esp + 0x44]
call fcn.00413f40
mov edx, dword [esp + 0x14c]
add esp, 0x10
mov dword [esp + 0x38], eax
mov ecx, 0x7fff
test eax, eax
je 0x40f9c0
mov ebp, dword [esp + 0x34]
jmp 0x40fa03
mov eax, dword [0x4e7a70]
movzx ebp, word [eax + esi*2]
mov dword [esp + 0x34], 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 [0x4e56e4]
jae 0x40fa03
mov ecx, eax
mov eax, dword [0x4e7a70]
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 + 0x13c]
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 0x410110
mov ecx, dword [esp + 0x28]
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.00413f40
mov ebp, dword [esp + 0x24]
add esp, 0x10
cmp byte [esp + 0x11], 0
mov ecx, dword [esp + 0x28]
je 0x40fb7f
push 0x7fff
push dword [esp + 0x1c]
push 0
jmp 0x40ece8
mov edx, dword [esp + 0x13c]
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 [0x4e56e4]
jae 0x40fb9b
cmp dword [esp + 0x38], 0
jne 0x40fb9b
push dword [esp + 0x44]
lea eax, [esp + 0x15]
push eax
push esi
push dword [esp + 0x14c]
lea ecx, [esp + 0x44]
call fcn.00413f40
add esp, 0x10
mov dword [esp + 0x38], eax
test eax, eax
jne 0x40fb97
mov eax, dword [esp + 0x13c]
test al, al
je 0x40fb3b
cmp byte [edi + 0x11], 0
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
je 0x40fb2c
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x24]
push eax
push ebp
jmp 0x41011a
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.00413f40
mov ebp, dword [esp + 0x24]
add esp, 0x10
cmp byte [esp + 0x11], 0
mov ecx, dword [esp + 0x28]
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 0x41011a
mov ebp, dword [esp + 0x34]
and ebp, 0x7fff
test byte [0x4e4c43], 0xcc
je 0x40fc41
cmp byte [esp + 0x11], 0
jne 0x40fc41
cmp byte [0x4e7a61], 0
jne 0x40fbce
mov eax, dword [esp + 0x28]
cmp eax, dword [0x4e4bb0]
jne 0x40fc41
test byte [0x4e4c43], 0xc0
mov dh, byte [0x4e4c3f]
je 0x40fbf8
test dh, 0xc0
jne 0x40fbef
mov dl, 0xc0
mov ecx, ebp
call fcn.004141c0
test al, al
je 0x40fbf8
mov byte [0x4e7a60], 1
jmp 0x40fc41
cmp byte [0x4e7a60], 0
jne 0x40fc41
mov al, byte [0x4e4c43]
test al, 0xc
je 0x40fc41
test al, 3
jne 0x40fc41
test dh, 0xc
jne 0x40fc20
mov dl, 0xc
mov ecx, ebp
call fcn.004141c0
test al, al
je 0x40fc41
cmp dword [0x4e4bb4], 0
je 0x40fc32
mov byte [0x4e7a60], 1
jmp 0x40fc41
mov edx, 0xffc3d44d
mov ecx, 2
call fcn.00418f90
movzx ecx, bp
lea eax, [ecx - 0x7ffa]
cmp eax, 4
ja case.default.0x40fc53
jmp dword [eax*4 + 0x4101f4]
cmp byte [0x4e7a62], 0
je 0x40f5db
xor al, al
test byte [0x4e4c43], 4
je 0x40fc79
mov edx, 0xa4
jmp 0x40fc8b
test byte [0x4e4c43], 8
movzx edx, al
mov eax, 0xa5
cmovne edx, eax
cmp byte [0x4e7a62], 0
mov dword [esp + 0x40], edx
je 0x40fd12
mov eax, 0x7ffb
cmp bp, ax
je case.0x40fc53.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.004189d0
add esp, 0x10
cmp byte [edi + 8], 0
je 0x40fd01
cmp bl, 0x5b
je 0x40fd01
cmp bl, 0x5c
je 0x40fd01
cmp byte [esp + 0x13c], 0
jne 0x40fd01
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.004189d0
add esp, 0x10
mov byte [0x4e7a62], 0
mov ebp, 0x7fff
jmp 0x40ffb4
cmp bl, 0xa4
je 0x40fd21
mov byte [esp + 0x2f], 0
cmp bl, 0xa5
jne 0x40fd26
mov byte [esp + 0x2f], 1
cmp bl, 0xa0
je 0x40fd34
cmp bl, 0xa1
je 0x40fd34
xor cl, cl
jmp 0x40fd36
mov cl, 1
mov byte [esp + 0x13], cl
cmp bl, 0xa2
je 0x40fd49
mov byte [esp + 0x12], 0
cmp bl, 0xa3
jne 0x40fd4e
mov byte [esp + 0x12], 1
xor dl, dl
test byte [0x4e4c43], 0x10
mov dword [esp + 0x38], edx
je 0x40fd64
mov edx, 0xa0
jmp 0x40fd87
test byte [0x4e4c43], 0x20
mov eax, dword [esp + 0x13c]
je 0x40fd78
mov dl, 0xa1
jmp 0x40fd8e
test al, al
jne 0x40fd92
test cl, cl
movzx edx, dl
movzx eax, bl
cmovne edx, eax
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x38], edx
xor cl, cl
test byte [0x4e4c43], 1
mov dword [esp + 0x3c], ecx
je 0x40fda8
mov byte [esp + 0x3c], 0xa2
jmp 0x40fdce
test byte [0x4e4c43], 2
je 0x40fdb8
mov byte [esp + 0x3c], 0xa3
jmp 0x40fdce
test al, al
jne 0x40fdce
cmp byte [esp + 0x12], 0
movzx ecx, cl
movzx eax, bl
cmovne ecx, eax
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x12], 0
test dl, dl
je 0x40fdf4
push 0xffc3d44d
push 0
push 0
push 0
mov ecx, 1
call fcn.004189d0
add esp, 0x10
mov byte [esp + 0x12], 1
mov eax, dword [esp + 0x3c]
test al, al
je 0x40fe16
push 0xffc3d44d
push 0
push 0
push 0
mov dl, al
mov ecx, 1
call fcn.004189d0
add esp, 0x10
cmp byte [esp + 0x2f], 0
je 0x40fe2b
cmp byte [esp + 0x13c], 0
jne 0x40fe33
mov al, bl
jmp 0x40fe2f
mov eax, dword [esp + 0x40]
test al, al
jne 0x40fe4a
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.004189d0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.004189d0
add esp, 0x10
cmp byte [esp + 0x12], 0
je 0x40fe8b
cmp byte [esp + 0x13], 0
jne 0x40fe8b
mov dl, byte [esp + 0x38]
xor ecx, ecx
push 0xffc3d44d
push 0
push 0
push 0
call fcn.004189d0
add esp, 0x10
mov byte [0x4e7a62], 1
mov ebp, 0x7fff
jmp 0x40ffb4
cmp byte [0x4e7a62], 0
je 0x40f5db
mov eax, dword [esp + 0x13c]
test al, al
jne 0x40fee9
cmp bl, 0xa2
je 0x40fec8
cmp bl, 0xa3
je 0x40fec8
cmp bl, 0xa0
je 0x40fec8
cmp bl, 0xa1
jne 0x40fee9
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.004189d0
mov eax, dword [esp + 0x14c]
add esp, 0x10
test byte [0x4e4c43], 0xc
je 0x40ff00
test al, al
je 0x40ff17
cmp bl, 0xa4
je 0x40ff00
cmp bl, 0xa5
jne 0x40ff17
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.004189d0
add esp, 0x10
mov eax, 0x7ffd
mov byte [esp + 0x12], 0
cmp bp, ax
jne 0x40ff4b
test byte [0x4e4c43], 0x30
jne 0x40ff4b
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.004189d0
add esp, 0x10
mov byte [esp + 0x12], 1
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.004189d0
add esp, 0x10
cmp byte [esp + 0x12], 0
je 0x40fd08
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.004189d0
add esp, 0x10
mov ebp, 0x7fff
jmp 0x40ffb4
mov ebp, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x48], ebp
mov eax, dword [ecx + 4]
test eax, eax
je 0x40ffb4
cmp byte [eax], 5
jb 0x40ffb4
movzx eax, word [ecx + 0x14]
shl eax, 0x10
or ebp, eax
mov dword [esp + 0x48], ebp
cmp byte [esp + 0x1f], 0
mov ecx, 0x68
mov eax, dword [esp + 0x44]
mov word [eax], cx
mov eax, dword [esp + 0x13c]
je 0x410043
test al, al
je 0x410097
cmp byte [edi + 9], 0
je 0x410043
mov ebp, dword [esp + 0x14]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push ebp
mov ecx, 1
call fcn.004189d0
push 0xffc3d44d
push 0
push 0
push ebp
mov dl, bl
mov ecx, 2
call fcn.004189d0
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x150]
push 0
push SysReAllocString
push ecx
push dword [esp + 0x44]
mov ecx, dword [esp + 0x58]
push dword [esp + 0x16c]
push ebp
push ebx
call fcn.00410210
add esp, 0x3c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
test al, al
je 0x410097
cmp byte [edi + 8], 0
je 0x410074
cmp byte [edi + 0x11], 0
mov ecx, dword [esp + 0x28]
je 0x41006e
push 0
push SysReAllocString
push ebp
push dword [esp + 0x24]
mov ebp, dword [esp + 0x24]
push eax
push ebp
jmp 0x41011a
push ebp
jmp 0x40ecdf
cmp byte [esp + 0x11], 0
je 0x4100f8
mov ecx, dword [esp + 0x28]
push ebp
push dword [esp + 0x1c]
mov ebp, dword [esp + 0x1c]
push eax
push ebp
push ebx
push dword [esp + 0x144]
jmp 0x40e95d
mov edx, dword [0x4e7a64]
mov byte [edi + 0x10], 1
test edx, edx
je 0x4100af
cmp byte [edx + 8], 0
je 0x4100af
mov byte [edx + 0x12], 2
cmp byte [esp + 0x11], 0
je 0x4100c8
or byte [esi], 8
mov ecx, dword [esp + 0x28]
push ebp
push dword [esp + 0x1c]
push eax
jmp 0x40ece4
cmp bl, 0xa4
je 0x4100d2
cmp bl, 0xa5
jne 0x4100f8
mov ebp, dword [esp + 0x14]
mov dl, bl
push 0xffc3d450
push 0
push 0
push ebp
mov ecx, 1
call fcn.004189d0
mov eax, dword [esp + 0x14c]
add esp, 0x10
jmp 0x4100fc
mov ebp, dword [esp + 0x14]
test al, al
jne 0x410104
mov byte [edi + 0x11], 1
mov ecx, dword [esp + 0x48]
push 0
push SysReAllocString
push ecx
push dword [esp + 0x24]
push eax
push ebp
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x148]
push ebx
call fcn.00410210
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret