Function at 0x40ea90
Capabilities:
Encrypt data using speck

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
mov eax, 0x7fff
mov dword [esp + 0x20], edx
push edi
mov di, word [esp + 0x130]
mov esi, ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x138]
mov dword [esp + 0x18], esi
movzx ebp, di
cmp eax, 0xffc3d44f
je 0x40ead9
cmp eax, 0xffc3d44e
je 0x40ead9
mov byte [esp + 0x1e], 0
cmp eax, 0xffc3d44d
jne 0x40eade
mov byte [esp + 0x1e], 1
mov ecx, dword [0x4e5a00]
mov ebx, dword [esp + 0x12c]
test ecx, ecx
jne 0x40eafc
lea edx, [esp + 0x4c]
mov dword [esp + 0x14], edx
jmp 0x40ebbb
mov eax, dword [0x4e5a6c]
imul esi, eax, 0xd4
inc eax
add esi, ecx
xor ecx, ecx
cmp eax, dword [0x4e30f8]
mov dword [esp + 0x14], esi
cmovge eax, ecx
mov dword [0x4e5a6c], eax
mov eax, dword [esp + 0x134]
mov byte [esi], bl
mov byte [esi + 6], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [0x4e5a68], eax
sub ecx, dword [0x4e86ec]
mov dword [0x4e86ec], eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4dd110]
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4dd04c]
movss dword [esi + 8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, dword [esp + 0x14]
mov esi, eax
lea ecx, [edx + 0xc]
test esi, esi
je 0x40eba2
cmp esi, dword [0x4e5a64]
je 0x40eb9b
push esi
push ecx
push 0x418
push dword [0x4e59e8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [esp + 0x14]
jmp 0x40ebb1
xor eax, eax
mov word [ecx], ax
jmp 0x40ebb1
mov eax, dword [0x4cf7cc]
mov dword [ecx], eax
mov eax, dword [0x4cf7d0]
mov dword [ecx + 4], eax
mov dword [0x4e5a64], esi
mov esi, dword [esp + 0x18]
cmp bl, 0xe7
jne 0x40ec0d
mov ecx, dword [esp + 0x128]
push 0x7fff
push edx
push dword [esp + 0x13c]
mov ax, word [ecx + 4]
push 0
mov word [edx + 2], ax
mov eax, 0x55
push 0xe7
push ecx
mov word [edx + 4], ax
mov ecx, esi
push dword [esp + 0x13c]
mov edx, dword [esp + 0x40]
call fcn.00410330
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
mov al, bl
mov word [edx + 2], di
add al, 0x64
mov cl, 3
cmp cl, al
sbb eax, eax
and eax, ebp
mov ebp, dword [0x4e88a0]
movzx eax, ax
mov dword [esp + 0x20], eax
cmp esi, dword [0x4e5a04]
jne 0x40ec55
mov dl, byte [esp + 0x13c]
and dl, 1
jne 0x40ecb5
mov al, byte [esp + 0x134]
movzx ecx, bl
xor al, 1
shl al, 7
mov byte [ecx + 0x4e63d0], al
jmp 0x40ecb5
mov ecx, dword [esp + 0x13c]
mov edx, ecx
movzx esi, bl
shr edx, 4
and edx, 0xffffff01
mov dword [esp + 0x30], edx
lea eax, [esi + esi*4]
cmp byte [ebp + eax*4 + 8], 0
jne 0x40ecb1
push dword [esp + 0x134]
mov dl, bl
call fcn.004116e0
mov ecx, dword [esp + 0x138]
add esp, 4
mov ebp, dword [0x4e88a0]
mov edx, dword [esp + 0x30]
test al, al
je 0x40ecab
mov al, cl
xor al, 1
shl al, 7
mov byte [esi + 0x4e63d0], al
mov esi, dword [esp + 0x18]
jmp 0x40ecbc
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x134]
cmp byte [esp + 0x1e], 0
je 0x40ecca
mov eax, 0x69
jmp 0x40ecdc
test dl, dl
mov eax, 0x20
mov edi, 0x61
cmovne eax, edi
movzx eax, ax
cmp byte [0x4e5a93], 0
mov edi, dword [esp + 0x14]
lea edx, [edi + 4]
mov word [edx], ax
mov dword [esp + 0x3c], edx
je 0x40ed18
cmp bl, 0x5b
je 0x40ecfd
cmp bl, 0x5c
jne 0x40ed18
test cl, cl
jne 0x40ed18
push 0
push SysReAllocString
push 0x7fff
push edi
push 0
push ecx
mov ecx, esi
jmp 0x4101a6
cmp byte [0x4e8892], 0
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [sym.imp.USER32.dll_FindWindowW]
je 0x40edc8
cmp bl, 0x1b
jne 0x40edc8
test cl, cl
jne 0x40edc8
push 0
push str.32771
call edx
test eax, eax
je 0x40edbc
push 0
push eax
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
jne 0x40edb6
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
xor ecx, ecx
call fcn.00419ad0
mov dl, byte [0x4e64d2]
mov ecx, 1
push 0xffc3d44d
shr dl, 3
push 0
and dl, 1
push 0
push 0
or dl, 0xa4
call fcn.00419ad0
add esp, 0x20
push 0
push SysReAllocString
push 0x7fff
push edi
push 0
push ecx
mov ecx, dword [esp + 0x30]
push 0x1b
jmp 0x4101a7
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, dword [0x4e88a0]
mov edx, dword [sym.imp.USER32.dll_FindWindowW]
mov eax, dword [esp + 0x20]
movzx eax, ax
mov dword [esp + 0x30], eax
lea ecx, [eax + eax*4]
mov eax, dword [0x4e88a4]
lea edi, [eax + ecx*4]
mov eax, dword [esp + 0x18]
mov cl, byte [edi + 0x13]
mov byte [esp + 0x13], cl
cmp eax, dword [0x4e5a08]
jne 0x40edf5
test cl, cl
jne 0x40ee08
movzx eax, bl
lea eax, [eax + eax*4]
lea edi, [eax*4]
mov eax, dword [esp + 0x18]
add edi, ebp
cmp byte [esp + 0x1e], 0
je 0x40ee79
cmp dword [esp + 0x138], 0xffc3d44e
mov eax, dword [esp + 0x134]
jne 0x40ee41
test al, al
je 0x40ee41
cmp dword [0x4e6520], edi
jne 0x40ee41
mov byte [edi + 0xd], 0
mov byte [edi + 0x10], 0
mov dword [0x4e6520], 0
push 0x7fff
push dword [esp + 0x18]
push eax
mov ecx, dword [esp + 0x24]
push dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
push ebx
push dword [esp + 0x13c]
push dword [esp + 0x13c]
call fcn.00410330
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
mov ecx, dword [esp + 0x134]
mov dword [esp + 0x48], 0x7fff
test cl, cl
jne 0x40ee9e
mov ebp, 0x7fff
mov byte [edi + 0x11], cl
mov word [edi + 4], bp
mov ebp, dword [0x4e88a0]
cmp eax, dword [0x4e5a04]
jne 0x40ef1b
test bl, bl
jne 0x40eee1
mov edx, dword [esp + 0x24]
push 0x7fff
push dword [esp + 0x18]
push ecx
push dword [esp + 0x2c]
mov ecx, eax
push 0
push dword [esp + 0x13c]
push dword [esp + 0x13c]
call fcn.00410330
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
cmp bl, 1
je 0x40eeeb
cmp bl, 2
jne 0x40ef1b
cmp dword [0x4e59b8], 0
jne 0x40ef49
push 0
push str.32768
call edx
test eax, eax
je 0x40ef0e
push 0
push eax
call esi
cmp eax, dword [0x4e72e4]
je 0x40ef42
mov ebp, dword [0x4e88a0]
mov ecx, dword [esp + 0x134]
mov eax, dword [0x4e6520]
mov esi, dword [esp + 0x18]
test eax, eax
je 0x40ef79
cmp eax, edi
je 0x40ef79
test cl, cl
jne 0x40ef79
cmp esi, dword [0x4e5a08]
jne 0x40ef63
xor eax, eax
cmp byte [edi + 8], al
sete al
jmp 0x40ef6c
mov ecx, dword [esp + 0x134]
push 0x7fff
push dword [esp + 0x18]
mov al, cl
mov byte [edi + 0x10], 0
xor al, 1
mov byte [edi + 0xd], al
push ecx
jmp 0x40ee4b
mov eax, dword [0x4e6520]
movzx eax, byte [eax + 8]
test eax, eax
je 0x40ef79
mov eax, dword [0x4e6520]
mov byte [eax + 0x12], 1
cmp byte [edi + 9], 0
jne 0x40ef9d
cmp byte [edi + 0xa], 0
jne 0x40ef9d
push 0x7fff
push dword [esp + 0x18]
mov al, cl
xor al, 1
push ecx
mov byte [edi + 0xd], al
mov ecx, esi
jmp 0x40ee4f
mov dword [esp + 0x38], 0
mov edx, 0x7fff
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
test cl, cl
je 0x40efe4
mov dl, byte [edi + 0x10]
mov dh, byte [edi + 0xd]
movzx eax, word [edi + 4]
mov byte [esp + 0x12], dh
mov byte [esp + 0x11], dl
mov edx, 0x7fff
mov byte [edi + 0x10], 0
cmp ax, dx
je 0x40eff4
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov word [edi + 4], dx
jmp 0x40eff4
mov al, byte [esp + 0x12]
mov byte [esp + 0x12], al
mov al, byte [esp + 0x12]
mov byte [esp + 0x11], al
mov al, cl
xor cl, cl
xor al, 1
mov byte [edi + 0xd], al
cmp esi, dword [0x4e5a08]
jne 0x40f06e
cmp byte [edi + 8], cl
je 0x40f090
cmp byte [ebp + 0xcb5], cl
jne 0x40f022
cmp byte [ebp + 0xcc9], cl
jne 0x40f022
xor al, al
jmp 0x40f024
mov al, 1
cmp byte [ebp + 0xcdd], 0
mov byte [ebp + 0x161], al
jne 0x40f040
cmp byte [ebp + 0xcf1], 0
jne 0x40f040
xor al, al
jmp 0x40f042
mov al, 1
cmp byte [ebp + 0xc8d], 0
mov byte [ebp + 0x175], al
jne 0x40f064
cmp byte [ebp + 0xca1], 0
jne 0x40f064
xor al, al
mov byte [ebp + 0x14d], al
jmp 0x40f090
mov al, 1
mov byte [ebp + 0x14d], al
jmp 0x40f090
cmp dword [0x4e5a08], 0
jne 0x40f090
mov cl, 1
call fcn.0041c0a0
mov ebp, dword [0x4e88a0]
mov cl, 1
mov byte [0x4e64d1], al
mov byte [0x4e64d2], al
mov eax, dword [edi]
test eax, eax
je 0x40f0a0
cmp dword [eax], 7
mov byte [esp + 0x1e], 1
je 0x40f0a5
mov byte [esp + 0x1e], 0
test cl, cl
jne 0x40f0b6
mov cl, 1
call fcn.0041c0a0
mov ebp, dword [0x4e88a0]
mov cl, byte [edi + 9]
mov eax, dword [esp + 0x134]
test cl, cl
je 0x40f346
test al, al
jne 0x40f346
mov eax, dword [0x4e6520]
test eax, eax
je 0x40f0e7
cmp byte [edi + 0xa], 0
je 0x40f0e7
cmp edi, eax
jne 0x40f33f
cmp cl, 1
jne 0x40f1a0
cmp byte [esp + 0x13], 0
mov ecx, dword [esp + 0x30]
movzx eax, bl
cmove ecx, eax
xor edx, edx
cmp byte [esp + 0x13], dl
movzx eax, cx
cmovne edx, eax
mov dword [esp + 0x44], ecx
movzx eax, cl
xor ecx, ecx
cmp byte [esp + 0x13], cl
push 0
cmovne eax, ecx
mov cl, al
call fcn.0041c2b0
mov ch, al
xor edx, edx
xor eax, eax
mov byte [esp + 0x23], ch
add esp, 4
mov dword [esp + 0x34], edx
cmp ax, word [0x4e6550]
jae 0x40f28a
mov cl, byte [0x4e5a60]
nop dword [eax + eax]
cmp byte [esp + 0x13], 0
mov eax, dword [0x4e6540]
mov ebp, dword [eax + edx*4]
je 0x40f165
movzx eax, word [ebp + 0xa]
jmp 0x40f169
movzx eax, byte [ebp + 0x11]
cmp dword [esp + 0x44], eax
je 0x40f178
test byte [ebp + 0xe], ch
je 0x40f26c
cmp word [ebp + 6], 0
je 0x40f20b
mov al, byte [ebp + 0x19]
test al, al
je 0x40f26c
test cl, cl
jne 0x40f26c
mov ebp, dword [0x4e88a0]
mov esi, dword [esp + 0x18]
xor dl, dl
cmp edi, dword [0x4e6520]
je 0x40f1b3
mov dword [0x4e6520], edi
mov byte [edi + 0x12], dl
cmp byte [edi + 0xa], 0
je 0x40f2d8
mov al, byte [edi + 8]
mov cl, byte [0x4e64d1]
test al, al
je 0x40f1ce
not al
and cl, al
test cl, cl
jne 0x40f1e0
test dl, dl
jne 0x40f1e0
test byte [edi + 0xc], 1
je 0x40f2d8
cmp esi, dword [0x4e5a08]
jne 0x40f291
cmp byte [esp + 0x13], 0
je 0x40f291
mov eax, dword [0x4e8898]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x30]
jmp 0x40f2a1
mov esi, dword [ebp + 0x20]
mov eax, esi
test eax, eax
je 0x40f26c
cmp byte [eax + 0x1c], 0
jne 0x40f223
mov eax, dword [eax + 8]
test eax, eax
jne 0x40f214
jmp 0x40f26c
test esi, esi
je 0x40f26c
cmp byte [esi + 0x1c], 0
je 0x40f25d
test cl, cl
je 0x40f23c
mov ecx, esi
call fcn.0048f3f0
test al, al
je 0x40f257
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40f196
mov edx, dword [ebp + 0x1c]
call fcn.00413430
test eax, eax
jne 0x40f196
mov cl, byte [0x4e5a60]
mov esi, dword [esi + 8]
test esi, esi
jne 0x40f227
mov edx, dword [esp + 0x34]
mov ch, byte [esp + 0x1f]
movzx eax, word [0x4e6550]
inc edx
mov dword [esp + 0x34], edx
cmp edx, eax
jl 0x40f150
mov ebp, dword [0x4e88a0]
mov esi, dword [esp + 0x18]
mov dl, 1
jmp 0x40f1b3
movzx ecx, cl
movzx eax, bl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4e8894]
movzx eax, word [eax + ecx*2]
movzx ecx, ax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
test ax, ax
jns 0x40f2bb
mov word [edi + 4], ax
jmp 0x40f2e4
and eax, 0x7fff
cmp ax, word [0x4e6550]
jae 0x40f2d8
mov ecx, eax
mov eax, dword [0x4e889c]
mov ax, word [eax + ecx*2]
mov word [edi + 4], ax
mov eax, 0x7fff
cmp word [esp + 0x28], ax
jne 0x40f33f
test dl, dl
je 0x40f2f8
mov eax, dword [esp + 0x3c]
mov ecx, 0x23
or byte [edi + 0xc], 8
mov word [eax], cx
cmp byte [edi + 8], 0
jne 0x40f32d
test byte [edi + 0xc], 1
jne 0x40f32d
cmp byte [esp + 0x1e], 0
jne 0x40f32d
test dl, dl
jne 0x40f32d
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x20]
mov byte [edi + 0x11], 1
push 0
push ecx
mov ecx, esi
jmp 0x4101a6
push 0x7fff
push dword [esp + 0x18]
mov ecx, esi
push 0
jmp 0x40ee4f
mov eax, dword [esp + 0x134]
cmp byte [edi + 0xa], 0
mov byte [esp + 0x1f], 0
je 0x40f3c0
test al, al
je 0x40f3c0
mov ch, byte [esp + 0x11]
cmp dword [0x4e6520], edi
jne 0x40f36f
test ch, ch
je 0x40f3c0
mov dword [0x4e6520], 0
cmp byte [edi + 0xb], 0
jne 0x40f3bb
mov cl, byte [edi + 0xc]
test cl, 8
je 0x40f387
xor dl, dl
and cl, 0xf7
mov byte [edi + 0xc], cl
jmp 0x40f389
mov dl, 1
test ch, ch
je 0x40f3aa
test dl, dl
je 0x40f3aa
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x20]
push eax
push ecx
mov ecx, esi
jmp 0x4101a6
push 0x7fff
push dword [esp + 0x18]
mov ecx, esi
push eax
jmp 0x40ee4f
mov byte [esp + 0x1f], 1
cmp byte [edi + 9], 0
je 0x40f541
test al, al
je 0x40f541
mov eax, dword [0x4e6520]
xor ecx, ecx
cmp eax, edi
cmove eax, ecx
mov dword [0x4e6520], eax
cmp byte [edi + 0xe], cl
je 0x40f408
push 0xffc3d44d
push ecx
push ecx
mov byte [edi + 0xe], cl
mov dl, 0x12
push ecx
mov ecx, 1
call fcn.00419ad0
mov ebp, dword [0x4e88a0]
add esp, 0x10
cmp byte [edi + 0xf], 0
je 0x40f432
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov byte [edi + 0xf], 0
mov ecx, 1
call fcn.00419ad0
mov ebp, dword [0x4e88a0]
add esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, 0x7fff
cmp dx, ax
jne 0x40f463
mov al, byte [edi + 0xc]
test al, 8
je 0x40f463
and al, 0xf7
mov byte [edi + 0xc], al
push 0x7fff
push dword [esp + 0x18]
mov ecx, esi
push dword [esp + 0x13c]
jmp 0x40ee4f
mov cl, byte [esp + 0x1e]
mov al, byte [edi + 0x12]
test cl, cl
je 0x40f4ec
cmp al, 2
jne 0x40f4c4
mov ebp, dword [esp + 0x20]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push ebp
mov ecx, 1
call fcn.00419ad0
push 0xffc3d44d
push 0
push 0
push ebp
mov dl, bl
mov ecx, 2
call fcn.00419ad0
add esp, 0x20
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x20]
push dword [esp + 0x144]
push ecx
mov ecx, esi
jmp 0x4101a6
cmp al, 1
je 0x40f44c
cmp byte [edi + 0xa], 0
jne 0x40f51d
cmp byte [edi + 8], 0
jne 0x40f44c
test byte [edi + 0xc], 1
jne 0x40f44c
test cl, cl
jne 0x40f44c
jmp 0x40f4a5
test al, al
je 0x40f4c8
mov eax, 0x7fff
cmp dx, ax
jne 0x40f4c8
cmp byte [edi + 8], 0
jne 0x40f44c
test byte [edi + 0xc], 1
je 0x40f4a5
push eax
push dword [esp + 0x18]
mov ecx, esi
push dword [esp + 0x13c]
jmp 0x40ee4f
cmp byte [esp + 0x12], 0
jne 0x40f545
cmp byte [edi + 0xb], 0
jne 0x40f545
push 0x7fff
push dword [esp + 0x18]
mov ecx, esi
push dword [esp + 0x13c]
jmp 0x40ee4f
mov edx, dword [esp + 0x28]
cmp dword [0x4e6520], 0
mov byte [esp + 0x11], 0
je 0x40f938
mov ecx, dword [esp + 0x134]
test cl, cl
je 0x40f56c
cmp byte [edi + 0xb], 0
je 0x40f938
mov eax, 0x7fff
cmp dx, ax
jne 0x40fb8c
movzx eax, word [edi + 6]
mov edx, 0x7fff
xor esi, esi
mov dword [esp + 0x34], eax
cmp ax, dx
je 0x40f726
mov ecx, eax
mov eax, dword [0x4e6540]
movzx ecx, cx
mov edx, dword [eax + ecx*4]
mov al, byte [edx + 0x11]
test al, al
jne 0x40f5ad
cmp word [edx + 0xa], 0
je 0x40f622
movzx ecx, word [edx + 0xc]
mov dword [esp + 0x34], ecx
test al, al
je 0x40f5ca
movzx eax, al
lea eax, [eax + eax*4]
lea eax, [eax*4]
add eax, ebp
jmp 0x40f5dd
movzx eax, word [edx + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4e88a4]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x34]
cmp byte [eax + 0xd], 0
je 0x40f610
cmp byte [edx + 0x16], 0
je 0x40f601
cmp byte [esp + 0x134], 0
jne 0x40f620
mov ax, word [edx + 4]
mov word [edi + 4], ax
test esi, esi
jne 0x40f62a
jmp 0x40f610
cmp byte [esp + 0x134], 0
jne 0x40f610
test esi, esi
cmove esi, edx
mov eax, 0x7fff
cmp cx, ax
jne 0x40f594
jmp 0x40f622
mov esi, edx
test esi, esi
je 0x40f71f
movzx ecx, byte [esi + 0x11]
cmp ecx, 0x12
ja case.0x40f63a.1
movzx eax, byte [ecx + 0x4101d8]
jmp dword [eax*4 + 0x4101c4]
cmp byte [ebp + 0xca1], 0
mov eax, 0xc80
mov ecx, 0xc94
cmovne eax, ecx
jmp 0x40f69e
cmp byte [ebp + 0xcc9], 0
mov eax, 0xca8
mov ecx, 0xcbc
cmovne eax, ecx
jmp 0x40f69e
cmp byte [ebp + 0xcf1], 0
mov eax, 0xcd0
mov ecx, 0xce4
cmovne eax, ecx
jmp 0x40f69e
movzx eax, word [esi + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4e88a4]
lea eax, [eax + ecx*4]
jmp 0x40f6a0
lea eax, [ecx + ecx*4]
lea eax, [eax*4]
add eax, ebp
mov dword [0x4e6520], eax
movzx eax, word [esi + 6]
test ax, ax
je 0x40f6b4
mov dword [esp + 0x2c], eax
jmp 0x40f706
movzx eax, word [esi + 4]
lea ecx, [esp + 0x2c]
mov dl, byte [esp + 0x134]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
push eax
lea eax, [esp + 0x15]
push eax
lea eax, [edi + 0xc]
push eax
mov eax, dword [esp + 0x144]
push eax
call fcn.00413f00
add esp, 0x10
mov dword [esp + 0x38], eax
test eax, eax
jne 0x40f702
push 0x7fff
push dword [esp + 0x18]
push dword [esp + 0x13c]
jmp 0x40ee4b
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x134]
mov dword [esp + 0x28], eax
movzx ebp, ax
mov eax, dword [0x4e6520]
mov byte [eax + 0x12], 2
jmp 0x40f72a
mov ecx, dword [esp + 0x134]
mov ebp, dword [esp + 0x34]
mov eax, 0x7ffe
cmp bp, ax
je 0x40f742
mov eax, 0x7ffd
cmp bp, ax
jne 0x40f938
test cl, cl
jne 0x40f74a
mov byte [edi + 0x10], 1
test byte [0x4e64d2], 0xc
jne 0x40f771
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00419ad0
mov ecx, dword [esp + 0x144]
add esp, 0x10
cmp bl, 0xa2
je 0x40f77b
cmp bl, 0xa3
jne 0x40f79e
mov esi, dword [esp + 0x20]
test cl, cl
jne 0x40f7a2
push 0xffc3d44d
push 0
push 0
push esi
mov dl, bl
mov ecx, 1
call fcn.00419ad0
add esp, 0x10
jmp 0x40f7a2
mov esi, dword [esp + 0x20]
mov eax, dword [0x4e6520]
mov byte [eax + 0xe], 1
mov eax, 0x7ffd
cmp bp, ax
jne 0x40f7e3
test byte [0x4e64d2], 0x30
jne 0x40f7d5
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.00419ad0
add esp, 0x10
mov eax, dword [0x4e6520]
mov byte [eax + 0xf], 1
jmp 0x40f860
mov eax, 0x7ffe
cmp bp, ax
jne 0x40f860
cmp bl, 0xa0
je 0x40f7f7
cmp bl, 0xa1
jne 0x40f81a
cmp byte [esp + 0x134], 0
jne 0x40f81a
push 0xffc3d44d
push 0
push 0
push esi
mov dl, bl
mov ecx, 1
call fcn.00419ad0
add esp, 0x10
test byte [0x4e64d2], 0x10
je 0x40f83d
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa0
mov ecx, 1
call fcn.00419ad0
add esp, 0x10
test byte [0x4e64d2], 0x20
je 0x40f860
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa1
mov ecx, 1
call fcn.00419ad0
add esp, 0x10
test byte [0x4e64d2], 1
je 0x40f883
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa2
mov ecx, 1
call fcn.00419ad0
add esp, 0x10
test byte [0x4e64d2], 2
je 0x40f8a6
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa3
mov ecx, 1
call fcn.00419ad0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00419ad0
mov eax, 0x7ffd
add esp, 0x10
cmp bp, ax
jne 0x40f907
mov eax, dword [0x4e6520]
cmp byte [eax + 0xf], 0
je 0x40f907
cmp bl, 0x60
jb 0x40f8df
cmp bl, 0x69
jbe 0x40f8e4
cmp bl, 0x6e
jne 0x40f907
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.00419ad0
mov eax, dword [0x4e6520]
add esp, 0x10
mov byte [eax + 0xf], 0
mov eax, dword [esp + 0x3c]
mov ecx, 0x68
mov word [eax], cx
mov eax, dword [esp + 0x134]
test al, al
jne 0x40f922
mov byte [edi + 0x11], 1
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x20]
push eax
jmp 0x4101a1
mov ebp, dword [esp + 0x28]
mov edx, 0x7fff
cmp bp, dx
jne 0x40fb83
mov al, byte [edi + 8]
mov dl, byte [0x4e64d1]
test al, al
je 0x40f95b
not al
and dl, al
mov eax, dword [esp + 0x18]
mov dh, byte [esp + 0x13]
cmp eax, dword [0x4e5a08]
jne 0x40f983
test dh, dh
je 0x40f983
mov eax, dword [0x4e8898]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x30]
movzx ebp, bl
jmp 0x40f993
mov eax, dword [0x4e8894]
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 + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov ecx, esi
cmp ax, word [esp + 0x48]
jne 0x40fa29
cmp byte [0x4e8892], 0
je 0x40fa29
cmp bl, 9
je 0x40fa29
mov eax, dword [esp + 0x18]
and dl, 0xf3
cmp eax, dword [0x4e5a08]
jne 0x40f9e0
test dh, dh
je 0x40f9e0
mov eax, dword [0x4e8898]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x30]
jmp 0x40f9ed
mov eax, dword [0x4e8894]
movzx ecx, dl
shl ecx, 8
add ecx, ebp
movzx eax, word [eax + ecx*2]
mov esi, 0x7ff9
movzx edx, ax
movzx ecx, ax
and eax, 0x7fff
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
cmp ax, si
jbe 0x40fa18
mov ebp, 0x7fff
cmp ax, bp
jb 0x40fa2d
mov edx, 0x7fff
mov dword [esp + 0x28], edx
mov ecx, edx
mov dword [esp + 0x2c], edx
jmp 0x40fa2d
mov edx, dword [esp + 0x28]
movzx eax, cx
test ax, ax
jns 0x40fa87
mov ecx, dword [esp + 0x134]
test cl, cl
jne 0x40fb38
mov word [edi + 4], dx
lea ecx, [edi + 4]
mov eax, 0x7fff
cmp word [ecx], ax
je 0x40fa77
push 0
lea eax, [esp + 0x15]
mov dl, 1
push eax
lea eax, [edi + 0xc]
push eax
push 0
call fcn.00413f00
add esp, 0x10
cmp byte [esp + 0x11], 0
je 0x40fc4f
push 0x7fff
push dword [esp + 0x18]
push 0
jmp 0x40ee4b
mov edx, 0x7fff
cmp ax, dx
je 0x40fb46
mov ecx, dword [esp + 0x134]
and eax, edx
test cl, cl
je 0x40fb13
cmp ax, word [0x4e6550]
jae 0x40fb0a
mov esi, eax
mov eax, dword [0x4e889c]
cmp word [eax + esi*2], dx
je 0x40fb0a
cmp byte [esp + 0x1f], 0
jne 0x40fafb
push dword [esp + 0x3c]
lea eax, [esp + 0x15]
mov dl, cl
push eax
lea eax, [edi + 0xc]
push eax
push dword [esp + 0x144]
lea ecx, [esp + 0x3c]
call fcn.00413f00
mov ecx, dword [esp + 0x144]
add esp, 0x10
mov dword [esp + 0x38], eax
mov edx, 0x7fff
test eax, eax
je 0x40fafb
mov ebp, dword [esp + 0x2c]
jmp 0x40fb41
mov eax, dword [0x4e889c]
movzx ebp, word [eax + esi*2]
mov dword [esp + 0x2c], ebp
jmp 0x40fb41
cmp byte [esp + 0x1f], 0
je 0x40fb3d
jmp 0x40fb46
mov ebp, dword [esp + 0x28]
cmp ax, word [0x4e6550]
jae 0x40fb41
mov ecx, eax
mov eax, dword [0x4e889c]
mov ax, word [eax + ecx*2]
mov ecx, dword [esp + 0x134]
mov word [edi + 4], ax
jmp 0x40fb41
mov edx, 0x7fff
mov ebp, dword [esp + 0x28]
cmp bp, dx
jne 0x40fb90
mov eax, dword [esp + 0x134]
test al, al
je 0x40fa48
cmp byte [edi + 8], 0
jne 0x40ee41
test byte [edi + 0xc], 1
jne 0x40ee41
cmp byte [edi + 9], 0
je 0x40ee41
cmp byte [esp + 0x1e], 0
jne 0x40ee41
jmp 0x40f922
mov ecx, dword [esp + 0x134]
jmp 0x40fb90
mov ebp, dword [esp + 0x28]
mov al, byte [edi + 0xc]
lea esi, [edi + 0xc]
test al, 8
je 0x40fba7
test cl, cl
je 0x40fba7
and al, 0xf7
mov byte [esp + 0x11], 1
mov byte [esi], al
mov eax, ebp
and eax, 0x7fff
cmp ax, word [0x4e6550]
jae 0x40fc6a
cmp dword [esp + 0x38], 0
jne 0x40fc6a
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x11]
push ebp
push eax
push esi
push dword [esp + 0x144]
mov dl, cl
lea ecx, [esp + 0x3c]
call fcn.00413f00
add esp, 0x10
mov dword [esp + 0x38], eax
test eax, eax
jne 0x40fc66
cmp word [ebp], 0x69
je 0x40f6ed
mov eax, dword [esp + 0x134]
test al, al
je 0x40fc13
cmp byte [edi + 0x11], 0
je 0x40ee41
jmp 0x40f922
lea ecx, [edi + 4]
mov eax, 0x7fff
cmp word [ecx], ax
je 0x40fa77
push 0
lea eax, [esp + 0x15]
mov byte [esp + 0x15], 0
push eax
push esi
push 0
mov dl, 1
call fcn.00413f00
add esp, 0x10
cmp byte [esp + 0x11], 0
jne 0x40fa77
and byte [esi], 0xf7
mov byte [edi + 0x11], 1
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x20]
push 0
jmp 0x4101a1
mov ebp, dword [esp + 0x2c]
and ebp, 0x7fff
test byte [0x4e64d2], 0xcc
je 0x40fd10
cmp byte [esp + 0x11], 0
jne 0x40fd10
cmp byte [0x4e8891], 0
jne 0x40fc9d
mov eax, dword [esp + 0x18]
cmp eax, dword [0x4e5a04]
jne 0x40fd10
test byte [0x4e64d2], 0xc0
mov dh, byte [0x4e64d0]
je 0x40fcc7
test dh, 0xc0
jne 0x40fcbe
mov dl, 0xc0
mov ecx, ebp
call fcn.00414150
test al, al
je 0x40fcc7
mov byte [0x4e8890], 1
jmp 0x40fd10
cmp byte [0x4e8890], 0
jne 0x40fd10
mov al, byte [0x4e64d2]
test al, 0xc
je 0x40fd10
test al, 3
jne 0x40fd10
test dh, 0xc
jne 0x40fcef
mov dl, 0xc
mov ecx, ebp
call fcn.00414150
test al, al
je 0x40fd10
cmp dword [0x4e5a08], 0
je 0x40fd01
mov byte [0x4e8890], 1
jmp 0x40fd10
mov edx, 0xffc3d44d
mov ecx, 2
call fcn.0041a0a0
movzx ecx, bp
lea eax, [ecx - 0x7ffa]
cmp eax, 4
ja case.default.0x40fd22
jmp dword [eax*4 + 0x4101ec]
cmp byte [0x4e8892], 0
je 0x40f6ed
xor al, al
test byte [0x4e64d2], 4
je 0x40fd48
mov edx, 0xa4
jmp 0x40fd5a
test byte [0x4e64d2], 8
movzx edx, al
mov eax, 0xa5
cmovne edx, eax
cmp byte [0x4e8892], 0
mov dword [esp + 0x34], edx
je 0x40fde1
mov eax, 0x7ffb
cmp bp, ax
je case.0x40fd22.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.00419ad0
add esp, 0x10
cmp byte [edi + 8], 0
je 0x40fdd0
cmp bl, 0x5b
je 0x40fdd0
cmp bl, 0x5c
je 0x40fdd0
cmp byte [esp + 0x134], 0
jne 0x40fdd0
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.00419ad0
add esp, 0x10
mov byte [0x4e8892], 0
mov ebp, 0x7fff
jmp 0x410083
cmp bl, 0xa4
je 0x40fdf0
mov byte [esp + 0x1f], 0
cmp bl, 0xa5
jne 0x40fdf5
mov byte [esp + 0x1f], 1
cmp bl, 0xa0
je 0x40fe03
cmp bl, 0xa1
je 0x40fe03
xor cl, cl
jmp 0x40fe05
mov cl, 1
mov byte [esp + 0x13], cl
cmp bl, 0xa2
je 0x40fe18
mov byte [esp + 0x12], 0
cmp bl, 0xa3
jne 0x40fe1d
mov byte [esp + 0x12], 1
xor dl, dl
test byte [0x4e64d2], 0x10
mov dword [esp + 0x38], edx
je 0x40fe33
mov edx, 0xa0
jmp 0x40fe56
test byte [0x4e64d2], 0x20
mov eax, dword [esp + 0x134]
je 0x40fe47
mov dl, 0xa1
jmp 0x40fe5d
test al, al
jne 0x40fe61
test cl, cl
movzx edx, dl
movzx eax, bl
cmovne edx, eax
mov eax, dword [esp + 0x134]
mov dword [esp + 0x38], edx
xor cl, cl
test byte [0x4e64d2], 1
mov dword [esp + 0x30], ecx
je 0x40fe77
mov byte [esp + 0x30], 0xa2
jmp 0x40fe9d
test byte [0x4e64d2], 2
je 0x40fe87
mov byte [esp + 0x30], 0xa3
jmp 0x40fe9d
test al, al
jne 0x40fe9d
cmp byte [esp + 0x12], 0
movzx ecx, cl
movzx eax, bl
cmovne ecx, eax
mov dword [esp + 0x30], ecx
mov byte [esp + 0x12], 0
test dl, dl
je 0x40fec3
push 0xffc3d44d
push 0
push 0
push 0
mov ecx, 1
call fcn.00419ad0
add esp, 0x10
mov byte [esp + 0x12], 1
mov eax, dword [esp + 0x30]
test al, al
je 0x40fee5
push 0xffc3d44d
push 0
push 0
push 0
mov dl, al
mov ecx, 1
call fcn.00419ad0
add esp, 0x10
cmp byte [esp + 0x1f], 0
je 0x40fefa
cmp byte [esp + 0x134], 0
jne 0x40ff02
mov al, bl
jmp 0x40fefe
mov eax, dword [esp + 0x34]
test al, al
jne 0x40ff19
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00419ad0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00419ad0
add esp, 0x10
cmp byte [esp + 0x12], 0
je 0x40ff5a
cmp byte [esp + 0x13], 0
jne 0x40ff5a
mov dl, byte [esp + 0x38]
xor ecx, ecx
push 0xffc3d44d
push 0
push 0
push 0
call fcn.00419ad0
add esp, 0x10
mov byte [0x4e8892], 1
mov ebp, 0x7fff
jmp 0x410083
cmp byte [0x4e8892], 0
je 0x40f6ed
mov eax, dword [esp + 0x134]
test al, al
jne 0x40ffb8
cmp bl, 0xa2
je 0x40ff97
cmp bl, 0xa3
je 0x40ff97
cmp bl, 0xa0
je 0x40ff97
cmp bl, 0xa1
jne 0x40ffb8
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.00419ad0
mov eax, dword [esp + 0x144]
add esp, 0x10
test byte [0x4e64d2], 0xc
je 0x40ffcf
test al, al
je 0x40ffe6
cmp bl, 0xa4
je 0x40ffcf
cmp bl, 0xa5
jne 0x40ffe6
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00419ad0
add esp, 0x10
mov eax, 0x7ffd
mov byte [esp + 0x12], 0
cmp bp, ax
jne 0x41001a
test byte [0x4e64d2], 0x30
jne 0x41001a
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.00419ad0
add esp, 0x10
mov byte [esp + 0x12], 1
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00419ad0
add esp, 0x10
cmp byte [esp + 0x12], 0
je 0x40fdd7
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.00419ad0
add esp, 0x10
mov ebp, 0x7fff
jmp 0x410083
mov ebp, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x40], ebp
mov eax, dword [ecx + 4]
test eax, eax
je 0x410083
cmp byte [eax], 5
jb 0x410083
movzx eax, word [ecx + 0x14]
shl eax, 0x10
or ebp, eax
mov dword [esp + 0x40], ebp
cmp byte [esp + 0x1e], 0
mov ecx, 0x68
mov eax, dword [esp + 0x3c]
mov word [eax], cx
mov ecx, dword [esp + 0x134]
je 0x4100fa
test cl, cl
je 0x410133
cmp byte [edi + 9], 0
je 0x4100fa
mov ebp, dword [esp + 0x20]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push ebp
mov ecx, 1
call fcn.00419ad0
push 0xffc3d44d
push 0
push 0
push ebp
mov dl, bl
mov ecx, 2
call fcn.00419ad0
mov eax, dword [esp + 0x60]
add esp, 0x20
push 0
push SysReAllocString
push eax
push dword [esp + 0x20]
push dword [esp + 0x144]
jmp 0x4101a1
test cl, cl
je 0x410133
cmp byte [edi + 8], 0
je 0x41010f
cmp byte [edi + 0x11], 0
je 0x410154
jmp 0x410194
cmp byte [esp + 0x11], 0
je 0x41018c
mov eax, dword [esp + 0x18]
push ebp
push dword [esp + 0x18]
push ecx
push dword [esp + 0x2c]
mov ecx, eax
push ebx
push dword [esp + 0x13c]
jmp 0x40ebef
mov eax, dword [0x4e6520]
mov byte [edi + 0x10], 1
test eax, eax
je 0x41014a
cmp byte [eax + 8], 0
je 0x41014a
mov byte [eax + 0x12], 2
cmp byte [esp + 0x11], 0
je 0x41015f
or byte [esi], 8
push ebp
push dword [esp + 0x18]
push ecx
jmp 0x40ee4b
cmp bl, 0xa4
je 0x410169
cmp bl, 0xa5
jne 0x41018c
push 0xffc3d450
push 0
push 0
push dword [esp + 0x2c]
mov dl, bl
mov ecx, 1
call fcn.00419ad0
mov ecx, dword [esp + 0x144]
add esp, 0x10
test cl, cl
jne 0x410194
mov byte [edi + 0x11], 1
push 0
push SysReAllocString
push ebp
push dword [esp + 0x20]
push ecx
push ecx
mov ecx, dword [esp + 0x30]
push ebx
mov edx, dword [esp + 0x144]
call fcn.00410200
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret