Function at 0x40eb00
Capabilities:
Encrypt data using speck

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
mov di, word [esp + 0x134]
mov esi, ecx
mov dword [esp + 0x2c], edx
mov eax, 0x7fff
mov edx, dword [esp + 0x13c]
mov dword [esp + 0x1c], esi
movzx ebp, di
mov dword [esp + 0x48], eax
cmp edx, 0xffc3d44f
je 0x40eb4c
cmp edx, 0xffc3d44e
je 0x40eb4c
mov byte [esp + 0x22], 0
cmp edx, 0xffc3d44d
jne 0x40eb51
mov byte [esp + 0x22], 1
mov ecx, dword [0x4e6a00]
mov ebx, dword [esp + 0x130]
test ecx, ecx
jne 0x40eb6f
lea eax, [esp + 0x50]
mov dword [esp + 0x14], eax
jmp 0x40ec35
mov eax, dword [0x4e6a78]
imul esi, eax, 0xd4
inc eax
add esi, ecx
xor ecx, ecx
cmp eax, dword [0x4e40f8]
mov dword [esp + 0x14], esi
cmovge eax, ecx
mov dword [0x4e6a78], 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 [0x4e6a74], eax
sub ecx, dword [0x4e96f4]
mov dword [0x4e96f4], eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4de2a0]
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4de1d4]
movss dword [esi + 8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [esp + 0x14]
lea ecx, [eax + 0xc]
test esi, esi
je 0x40ec11
cmp esi, dword [0x4e6a70]
je 0x40ec0a
push esi
push ecx
push 0x418
push dword [0x4e69e8]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40ec20
xor edx, edx
mov word [ecx], dx
jmp 0x40ec24
mov eax, dword [0x4d07fc]
mov dword [ecx], eax
mov eax, dword [0x4d0800]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x13c]
mov dword [0x4e6a70], esi
mov esi, dword [esp + 0x1c]
cmp bl, 0xe7
jne 0x40ec8c
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x12c]
push 0x7fff
push ebx
push edx
push dword [esp + 0x144]
mov ax, word [ecx + 4]
push 0
mov word [ebx + 2], ax
mov eax, 0x55
push 0xe7
push ecx
mov word [ebx + 4], ax
mov ecx, esi
push dword [esp + 0x144]
mov edx, dword [esp + 0x4c]
call fcn.00410580
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov word [eax + 2], di
mov cl, 3
mov al, bl
add al, 0x64
cmp cl, al
sbb eax, eax
and eax, ebp
mov ebp, dword [0x4e98a8]
movzx eax, ax
mov dword [esp + 0x24], eax
cmp esi, dword [0x4e6a04]
jne 0x40ecd4
mov dl, byte [esp + 0x140]
and dl, 1
jne 0x40ed34
mov al, byte [esp + 0x138]
movzx ecx, bl
xor al, 1
shl al, 7
mov byte [ecx + 0x4e73e0], al
jmp 0x40ed34
mov ecx, dword [esp + 0x140]
mov edx, ecx
movzx esi, bl
shr edx, 4
and edx, 0xffffff01
mov dword [esp + 0x34], edx
lea eax, [esi + esi*4]
cmp byte [ebp + eax*4 + 8], 0
jne 0x40ed30
push dword [esp + 0x138]
mov dl, bl
call fcn.00411970
mov ecx, dword [esp + 0x13c]
add esp, 4
mov ebp, dword [0x4e98a8]
mov edx, dword [esp + 0x34]
test al, al
je 0x40ed2a
mov al, cl
xor al, 1
shl al, 7
mov byte [esi + 0x4e73e0], al
mov esi, dword [esp + 0x1c]
jmp 0x40ed3b
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x138]
cmp byte [esp + 0x22], 0
je 0x40ed49
mov eax, 0x69
jmp 0x40ed5b
test dl, dl
mov eax, 0x20
mov edi, 0x61
cmovne eax, edi
movzx eax, ax
cmp byte [0x4e6a9f], 0
mov edi, dword [esp + 0x14]
lea edx, [edi + 4]
mov word [edx], ax
mov dword [esp + 0x40], edx
je 0x40ed9f
cmp bl, 0x5b
je 0x40ed7c
cmp bl, 0x5c
jne 0x40ed9f
test cl, cl
jne 0x40ed9f
mov ebp, dword [esp + 0x13c]
push 0
push SysReAllocString
push 0x7fff
push edi
push ebp
push 0
push ecx
mov ecx, esi
jmp 0x4103d7
cmp byte [0x4e989a], 0
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [sym.imp.USER32.dll_FindWindowW]
je 0x40ee57
cmp bl, 0x1b
jne 0x40ee57
test cl, cl
jne 0x40ee57
push 0
push str.32771
call edx
test eax, eax
je 0x40ee4b
push 0
push eax
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
jne 0x40ee45
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
xor ecx, ecx
call fcn.00419e30
mov dl, byte [0x4e73de]
mov ecx, 1
push 0xffc3d44d
shr dl, 3
push 0
and dl, 1
push 0
push 0
or dl, 0xa4
call fcn.00419e30
mov ebp, dword [esp + 0x15c]
add esp, 0x20
push 0
push SysReAllocString
push 0x7fff
push edi
push ebp
push 0
push ecx
mov ecx, dword [esp + 0x38]
push 0x1b
jmp 0x4103d8
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, dword [0x4e98a8]
mov edx, dword [sym.imp.USER32.dll_FindWindowW]
mov eax, dword [esp + 0x24]
movzx eax, ax
mov dword [esp + 0x34], eax
lea ecx, [eax + eax*4]
mov eax, dword [0x4e98ac]
lea edi, [eax + ecx*4]
mov eax, dword [esp + 0x1c]
mov cl, byte [edi + 0x13]
mov byte [esp + 0x1b], cl
cmp eax, dword [0x4e6a08]
jne 0x40ee84
test cl, cl
jne 0x40ee97
movzx eax, bl
lea eax, [eax + eax*4]
lea edi, [eax*4]
mov eax, dword [esp + 0x1c]
add edi, ebp
cmp byte [esp + 0x22], 0
je 0x40ef0b
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0x138]
cmp ecx, 0xffc3d44e
jne 0x40eed2
test al, al
je 0x40eed2
cmp dword [0x4e752c], edi
jne 0x40eed2
mov byte [edi + 0xd], 0
mov byte [edi + 0x10], 0
mov dword [0x4e752c], 0
push 0x7fff
push dword [esp + 0x18]
push ecx
push eax
mov ecx, dword [esp + 0x2c]
push dword [esp + 0x34]
mov edx, dword [esp + 0x40]
push ebx
push dword [esp + 0x144]
push dword [esp + 0x144]
call fcn.00410580
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov ecx, dword [esp + 0x138]
mov dword [esp + 0x44], 0x7fff
test cl, cl
jne 0x40ef31
mov byte [edi + 0x11], cl
mov ecx, 0x7fff
mov word [edi + 4], cx
mov ecx, dword [esp + 0x138]
cmp eax, dword [0x4e6a04]
jne 0x40efb6
test bl, bl
jne 0x40ef7c
mov ebp, dword [esp + 0x13c]
mov edx, dword [esp + 0x2c]
push 0x7fff
push dword [esp + 0x18]
push ebp
push ecx
push dword [esp + 0x34]
mov ecx, eax
push 0
push dword [esp + 0x144]
push dword [esp + 0x144]
call fcn.00410580
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
cmp bl, 1
je 0x40ef86
cmp bl, 2
jne 0x40efb6
cmp dword [0x4e69b8], 0
jne 0x40efe4
push 0
push str.32768
call edx
test eax, eax
je 0x40efa9
push 0
push eax
call esi
cmp eax, dword [0x4e82ec]
je 0x40efdd
mov ebp, dword [0x4e98a8]
mov ecx, dword [esp + 0x138]
mov eax, dword [0x4e752c]
mov esi, dword [esp + 0x1c]
test eax, eax
je 0x40f01c
cmp eax, edi
je 0x40f01c
test cl, cl
jne 0x40f01c
cmp esi, dword [0x4e6a08]
jne 0x40f006
xor eax, eax
cmp byte [edi + 8], al
sete al
jmp 0x40f00f
mov ecx, dword [esp + 0x138]
mov ebp, dword [esp + 0x13c]
mov al, cl
push 0x7fff
push dword [esp + 0x18]
xor al, 1
mov byte [edi + 0x10], 0
push ebp
mov byte [edi + 0xd], al
push ecx
jmp 0x40eedd
mov eax, dword [0x4e752c]
movzx eax, byte [eax + 8]
test eax, eax
je 0x40f01c
mov eax, dword [0x4e752c]
mov byte [eax + 0x12], 1
cmp byte [edi + 9], 0
jne 0x40f048
cmp byte [edi + 0xa], 0
jne 0x40f048
mov ebp, dword [esp + 0x13c]
mov al, cl
push 0x7fff
push dword [esp + 0x18]
xor al, 1
push ebp
push ecx
mov byte [edi + 0xd], al
mov ecx, esi
jmp 0x40eee1
mov dword [esp + 0x38], 0
mov edx, 0x7fff
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], edx
test cl, cl
je 0x40f08f
mov dl, byte [edi + 0x10]
mov dh, byte [edi + 0xd]
movzx eax, word [edi + 4]
mov byte [esp + 0x13], dh
mov byte [esp + 0x12], dl
mov edx, 0x7fff
mov byte [edi + 0x10], 0
cmp ax, dx
je 0x40f09f
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov word [edi + 4], dx
jmp 0x40f09f
mov al, byte [esp + 0x13]
mov byte [esp + 0x13], al
mov al, byte [esp + 0x13]
mov byte [esp + 0x12], al
mov al, cl
xor cl, cl
xor al, 1
mov byte [edi + 0xd], al
cmp esi, dword [0x4e6a08]
jne 0x40f119
cmp byte [edi + 8], cl
je 0x40f13b
cmp byte [ebp + 0xcb5], cl
jne 0x40f0cd
cmp byte [ebp + 0xcc9], cl
jne 0x40f0cd
xor al, al
jmp 0x40f0cf
mov al, 1
cmp byte [ebp + 0xcdd], 0
mov byte [ebp + 0x161], al
jne 0x40f0eb
cmp byte [ebp + 0xcf1], 0
jne 0x40f0eb
xor al, al
jmp 0x40f0ed
mov al, 1
cmp byte [ebp + 0xc8d], 0
mov byte [ebp + 0x175], al
jne 0x40f10f
cmp byte [ebp + 0xca1], 0
jne 0x40f10f
xor al, al
mov byte [ebp + 0x14d], al
jmp 0x40f13b
mov al, 1
mov byte [ebp + 0x14d], al
jmp 0x40f13b
cmp dword [0x4e6a08], 0
jne 0x40f13b
mov cl, 1
call fcn.0041c400
mov ebp, dword [0x4e98a8]
mov cl, 1
mov byte [0x4e73dd], al
mov byte [0x4e73de], al
mov eax, dword [edi]
test eax, eax
je 0x40f14b
cmp dword [eax], 7
mov byte [esp + 0x22], 1
je 0x40f150
mov byte [esp + 0x22], 0
test cl, cl
jne 0x40f161
mov cl, 1
call fcn.0041c400
mov ebp, dword [0x4e98a8]
mov cl, byte [edi + 9]
mov eax, dword [esp + 0x138]
test cl, cl
je 0x40f3ff
test al, al
jne 0x40f3ff
mov eax, dword [0x4e752c]
test eax, eax
je 0x40f192
cmp byte [edi + 0xa], 0
je 0x40f192
cmp edi, eax
jne 0x40f3f8
cmp cl, 1
jne 0x40f243
cmp byte [esp + 0x1b], 0
mov ecx, dword [esp + 0x34]
movzx eax, bl
cmove ecx, eax
xor edx, edx
cmp byte [esp + 0x1b], dl
movzx eax, cx
cmovne edx, eax
mov dword [esp + 0x4c], ecx
movzx eax, cl
xor ecx, ecx
cmp byte [esp + 0x1b], cl
push 0
cmovne eax, ecx
mov cl, al
call fcn.0041c610
mov ch, al
xor edx, edx
xor eax, eax
mov byte [esp + 0x27], ch
add esp, 4
mov dword [esp + 0x3c], edx
cmp ax, word [0x4e755c]
jae 0x40f333
mov cl, byte [0x4e6a6c]
cmp byte [esp + 0x1b], 0
mov eax, dword [0x4e754c]
mov ebp, dword [eax + edx*4]
je 0x40f208
movzx eax, word [ebp + 0xa]
jmp 0x40f20c
movzx eax, byte [ebp + 0x11]
cmp dword [esp + 0x4c], eax
je 0x40f21b
test byte [ebp + 0xe], ch
je 0x40f315
cmp word [ebp + 6], 0
je 0x40f2ae
mov al, byte [ebp + 0x19]
test al, al
je 0x40f315
test cl, cl
jne 0x40f315
mov ebp, dword [0x4e98a8]
mov esi, dword [esp + 0x1c]
xor dl, dl
cmp edi, dword [0x4e752c]
je 0x40f256
mov dword [0x4e752c], edi
mov byte [edi + 0x12], dl
cmp byte [edi + 0xa], 0
je 0x40f381
mov al, byte [edi + 8]
mov cl, byte [0x4e73dd]
test al, al
je 0x40f271
not al
and cl, al
test cl, cl
jne 0x40f283
test dl, dl
jne 0x40f283
test byte [edi + 0xc], 1
je 0x40f381
cmp esi, dword [0x4e6a08]
jne 0x40f33a
cmp byte [esp + 0x1b], 0
je 0x40f33a
mov eax, dword [0x4e98a0]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x34]
jmp 0x40f34a
mov esi, dword [ebp + 0x20]
mov eax, esi
test eax, eax
je 0x40f315
cmp byte [eax + 0x1c], 0
jne 0x40f2c6
mov eax, dword [eax + 8]
test eax, eax
jne 0x40f2b7
jmp 0x40f315
test esi, esi
je 0x40f315
nop word [eax + eax]
cmp byte [esi + 0x1c], 0
je 0x40f306
test cl, cl
je 0x40f2e5
mov ecx, esi
call fcn.00490110
test al, al
je 0x40f300
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40f239
mov edx, dword [ebp + 0x1c]
call fcn.00413740
test eax, eax
jne 0x40f239
mov cl, byte [0x4e6a6c]
mov esi, dword [esi + 8]
test esi, esi
jne 0x40f2d0
mov edx, dword [esp + 0x3c]
mov ch, byte [esp + 0x23]
movzx eax, word [0x4e755c]
inc edx
mov dword [esp + 0x3c], edx
cmp edx, eax
jl 0x40f1f3
mov ebp, dword [0x4e98a8]
mov esi, dword [esp + 0x1c]
mov dl, 1
jmp 0x40f256
movzx ecx, cl
movzx eax, bl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4e989c]
movzx eax, word [eax + ecx*2]
movzx ecx, ax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ecx
test ax, ax
jns 0x40f364
mov word [edi + 4], ax
jmp 0x40f38d
and eax, 0x7fff
cmp ax, word [0x4e755c]
jae 0x40f381
mov ecx, eax
mov eax, dword [0x4e98a4]
mov ax, word [eax + ecx*2]
mov word [edi + 4], ax
mov eax, 0x7fff
cmp word [esp + 0x28], ax
jne 0x40f3f8
test dl, dl
je 0x40f3a1
mov eax, dword [esp + 0x40]
mov ecx, 0x23
or byte [edi + 0xc], 8
mov word [eax], cx
cmp byte [edi + 8], 0
jne 0x40f3de
test byte [edi + 0xc], 1
jne 0x40f3de
cmp byte [esp + 0x22], 0
jne 0x40f3de
test dl, dl
jne 0x40f3de
mov ebp, dword [esp + 0x13c]
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x20]
mov byte [edi + 0x11], 1
push ebp
push 0
push ecx
mov ecx, esi
jmp 0x4103d7
mov ebp, dword [esp + 0x13c]
mov ecx, esi
push 0x7fff
push dword [esp + 0x18]
push ebp
push 0
jmp 0x40eee1
mov eax, dword [esp + 0x138]
cmp byte [edi + 0xa], 0
mov byte [esp + 0x23], 0
je 0x40f489
test al, al
je 0x40f489
mov ch, byte [esp + 0x12]
cmp dword [0x4e752c], edi
jne 0x40f428
test ch, ch
je 0x40f489
mov dword [0x4e752c], 0
cmp byte [edi + 0xb], 0
jne 0x40f484
mov cl, byte [edi + 0xc]
test cl, 8
je 0x40f440
xor dl, dl
and cl, 0xf7
mov byte [edi + 0xc], cl
jmp 0x40f442
mov dl, 1
test ch, ch
je 0x40f46b
test dl, dl
je 0x40f46b
mov ebp, dword [esp + 0x13c]
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x20]
push ebp
push eax
push ecx
mov ecx, esi
jmp 0x4103d7
mov ebp, dword [esp + 0x13c]
mov ecx, esi
push 0x7fff
push dword [esp + 0x18]
push ebp
push eax
jmp 0x40eee1
mov byte [esp + 0x23], 1
cmp byte [edi + 9], 0
je 0x40f624
test al, al
je 0x40f624
mov eax, dword [0x4e752c]
xor ecx, ecx
cmp eax, edi
cmove eax, ecx
mov dword [0x4e752c], eax
cmp byte [edi + 0xe], cl
je 0x40f4d1
push 0xffc3d44d
push ecx
push ecx
mov byte [edi + 0xe], cl
mov dl, 0x12
push ecx
mov ecx, 1
call fcn.00419e30
mov ebp, dword [0x4e98a8]
add esp, 0x10
cmp byte [edi + 0xf], 0
je 0x40f4fb
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov byte [edi + 0xf], 0
mov ecx, 1
call fcn.00419e30
mov ebp, dword [0x4e98a8]
add esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, 0x7fff
cmp dx, ax
jne 0x40f534
mov al, byte [edi + 0xc]
test al, 8
je 0x40f534
and al, 0xf7
mov byte [edi + 0xc], al
mov ebp, dword [esp + 0x13c]
push 0x7fff
push dword [esp + 0x18]
mov ecx, esi
push ebp
push dword [esp + 0x144]
jmp 0x40eee1
mov cl, byte [esp + 0x22]
mov al, byte [edi + 0x12]
test cl, cl
je 0x40f5cd
cmp al, 2
jne 0x40f5a1
mov ebp, dword [esp + 0x24]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push ebp
mov ecx, 1
call fcn.00419e30
push 0xffc3d44d
push 0
push 0
push ebp
mov dl, bl
mov ecx, 2
call fcn.00419e30
add esp, 0x20
mov ebp, dword [esp + 0x13c]
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x20]
push ebp
push dword [esp + 0x14c]
push ecx
mov ecx, esi
jmp 0x4103d7
cmp al, 1
je 0x40f515
cmp byte [edi + 0xa], 0
jne 0x40f612
cmp byte [edi + 8], 0
jne 0x40f515
test byte [edi + 0xc], 1
jne 0x40f515
test cl, cl
jne 0x40f515
jmp 0x40f57a
test al, al
je 0x40f5a9
mov eax, 0x7fff
cmp dx, ax
jne 0x40f5a9
cmp byte [edi + 8], 0
jne 0x40f515
test byte [edi + 0xc], 1
mov ebp, dword [esp + 0x13c]
jne 0x40f51c
push 0
push SysReAllocString
push eax
push dword [esp + 0x20]
push ebp
push dword [esp + 0x14c]
push ecx
mov ecx, esi
jmp 0x4103d7
cmp byte [esp + 0x13], 0
jne 0x40f628
cmp byte [edi + 0xb], 0
jne 0x40f628
jmp 0x40f515
mov edx, dword [esp + 0x28]
cmp dword [0x4e752c], 0
mov byte [esp + 0x12], 0
je 0x40fa29
mov ecx, dword [esp + 0x138]
test cl, cl
je 0x40f64f
cmp byte [edi + 0xb], 0
je 0x40fa29
mov eax, 0x7fff
cmp dx, ax
jne 0x40fd97
movzx eax, word [edi + 6]
xor esi, esi
mov dword [esp + 0x3c], eax
cmp ax, word [esp + 0x44]
je 0x40f80f
mov ecx, eax
mov eax, dword [0x4e754c]
movzx ecx, cx
mov edx, dword [eax + ecx*4]
mov al, byte [edx + 0x11]
test al, al
jne 0x40f68d
cmp word [edx + 0xa], 0
je 0x40f702
movzx ecx, word [edx + 0xc]
mov dword [esp + 0x3c], ecx
test al, al
je 0x40f6aa
movzx eax, al
lea eax, [eax + eax*4]
lea eax, [eax*4]
add eax, ebp
jmp 0x40f6bd
movzx eax, word [edx + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4e98ac]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x3c]
cmp byte [eax + 0xd], 0
je 0x40f6f0
cmp byte [edx + 0x16], 0
je 0x40f6e1
cmp byte [esp + 0x138], 0
jne 0x40f700
mov ax, word [edx + 4]
mov word [edi + 4], ax
test esi, esi
jne 0x40f70a
jmp 0x40f6f0
cmp byte [esp + 0x138], 0
jne 0x40f6f0
test esi, esi
cmove esi, edx
mov eax, 0x7fff
cmp cx, ax
jne 0x40f674
jmp 0x40f702
mov esi, edx
test esi, esi
je 0x40f804
movzx ecx, byte [esi + 0x11]
cmp ecx, 0x12
ja case.0x40f71a.1
movzx eax, byte [ecx + 0x410408]
jmp dword [eax*4 + 0x4103f4]
cmp byte [ebp + 0xca1], 0
mov eax, 0xc80
mov ecx, 0xc94
cmovne eax, ecx
jmp 0x40f77e
cmp byte [ebp + 0xcc9], 0
mov eax, 0xca8
mov ecx, 0xcbc
cmovne eax, ecx
jmp 0x40f77e
cmp byte [ebp + 0xcf1], 0
mov eax, 0xcd0
mov ecx, 0xce4
cmovne eax, ecx
jmp 0x40f77e
movzx eax, word [esi + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4e98ac]
lea eax, [eax + ecx*4]
jmp 0x40f780
lea eax, [ecx + ecx*4]
lea eax, [eax*4]
add eax, ebp
mov dword [0x4e752c], eax
movzx eax, word [esi + 6]
test ax, ax
je 0x40f794
mov dword [esp + 0x30], eax
jmp 0x40f7e7
movzx eax, word [esi + 4]
lea ecx, [esp + 0x30]
mov ebp, dword [esp + 0x13c]
mov dl, byte [esp + 0x138]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
push eax
lea eax, [esp + 0x16]
push eax
lea eax, [edi + 0xc]
push eax
push ebp
call fcn.00414260
add esp, 0x10
mov dword [esp + 0x38], eax
test eax, eax
jne 0x40f7e3
push 0x7fff
push dword [esp + 0x18]
push ebp
push dword [esp + 0x144]
jmp 0x40eedd
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x138]
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x28]
movzx ebp, ax
mov eax, dword [0x4e752c]
mov byte [eax + 0x12], 2
jmp 0x40f813
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x3c]
mov eax, 0x7ffe
cmp bp, ax
je 0x40f82b
mov eax, 0x7ffd
cmp bp, ax
jne 0x40fa29
test cl, cl
jne 0x40f833
mov byte [edi + 0x10], 1
test byte [0x4e73de], 0xc
jne 0x40f85a
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00419e30
mov ecx, dword [esp + 0x148]
add esp, 0x10
cmp bl, 0xa2
je 0x40f864
cmp bl, 0xa3
jne 0x40f887
mov esi, dword [esp + 0x24]
test cl, cl
jne 0x40f88b
push 0xffc3d44d
push 0
push 0
push esi
mov dl, bl
mov ecx, 1
call fcn.00419e30
add esp, 0x10
jmp 0x40f88b
mov esi, dword [esp + 0x24]
mov eax, dword [0x4e752c]
mov byte [eax + 0xe], 1
mov eax, 0x7ffd
cmp bp, ax
jne 0x40f8cc
test byte [0x4e73de], 0x30
jne 0x40f8be
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.00419e30
add esp, 0x10
mov eax, dword [0x4e752c]
mov byte [eax + 0xf], 1
jmp 0x40f949
mov eax, 0x7ffe
cmp bp, ax
jne 0x40f949
cmp bl, 0xa0
je 0x40f8e0
cmp bl, 0xa1
jne 0x40f903
cmp byte [esp + 0x138], 0
jne 0x40f903
push 0xffc3d44d
push 0
push 0
push esi
mov dl, bl
mov ecx, 1
call fcn.00419e30
add esp, 0x10
test byte [0x4e73de], 0x10
je 0x40f926
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa0
mov ecx, 1
call fcn.00419e30
add esp, 0x10
test byte [0x4e73de], 0x20
je 0x40f949
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa1
mov ecx, 1
call fcn.00419e30
add esp, 0x10
test byte [0x4e73de], 1
je 0x40f96c
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa2
mov ecx, 1
call fcn.00419e30
add esp, 0x10
test byte [0x4e73de], 2
je 0x40f98f
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa3
mov ecx, 1
call fcn.00419e30
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00419e30
mov eax, 0x7ffd
add esp, 0x10
cmp bp, ax
jne 0x40f9f0
mov eax, dword [0x4e752c]
cmp byte [eax + 0xf], 0
je 0x40f9f0
cmp bl, 0x60
jb 0x40f9c8
cmp bl, 0x69
jbe 0x40f9cd
cmp bl, 0x6e
jne 0x40f9f0
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.00419e30
mov eax, dword [0x4e752c]
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 0x40fa0b
mov byte [edi + 0x11], 1
mov ebp, dword [esp + 0x13c]
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x20]
push ebp
push eax
jmp 0x4103d2
mov eax, 0x7fff
cmp dx, ax
jne 0x40fd90
mov al, byte [edi + 8]
mov dl, byte [0x4e73dd]
test al, al
je 0x40fa48
not al
and dl, al
mov eax, dword [esp + 0x1c]
mov dh, byte [esp + 0x1b]
cmp eax, dword [0x4e6a08]
jne 0x40fa70
test dh, dh
je 0x40fa70
mov eax, dword [0x4e98a0]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x34]
movzx ebp, bl
jmp 0x40fa80
mov eax, dword [0x4e989c]
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 + 0x30], ecx
mov ecx, esi
cmp ax, word [esp + 0x44]
jne 0x40fb16
cmp byte [0x4e989a], 0
je 0x40fb16
cmp bl, 9
je 0x40fb16
mov eax, dword [esp + 0x1c]
and dl, 0xf3
cmp eax, dword [0x4e6a08]
jne 0x40facd
test dh, dh
je 0x40facd
mov eax, dword [0x4e98a0]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x34]
jmp 0x40fada
mov eax, dword [0x4e989c]
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 + 0x30], edx
cmp ax, si
jbe 0x40fb05
mov ebp, 0x7fff
cmp ax, bp
jb 0x40fb1a
mov edx, 0x7fff
mov dword [esp + 0x28], edx
mov ecx, edx
mov dword [esp + 0x30], edx
jmp 0x40fb1a
mov edx, dword [esp + 0x28]
movzx eax, cx
test ax, ax
jns 0x40fc1c
mov ecx, dword [esp + 0x138]
test cl, cl
jne 0x40fce0
mov ah, byte [0x4e73dd]
mov al, ah
mov word [edi + 4], dx
and al, 0xc0
movzx ecx, al
mov al, ah
neg ecx
sbb ecx, ecx
and ecx, 8
mov edx, ecx
or edx, 1
and al, 0xc
mov al, ah
cmove edx, ecx
mov ecx, edx
or ecx, 4
and al, 0x30
mov al, ah
cmove ecx, edx
movzx edx, word [edi + 6]
mov esi, ecx
or esi, 2
and al, 3
mov eax, 0x7fff
cmove esi, ecx
cmp dx, ax
je 0x40fbe5
mov ebp, dword [0x4e754c]
movzx eax, dx
mov ecx, dword [ebp + eax*4]
cmp byte [ecx + 0x15], 0
movzx edx, word [ecx + 0xc]
jne 0x40fbab
movzx eax, byte [ecx + 0xf]
mov ebx, dword [esp + 0x130]
not eax
test byte [0x4e73dd], al
jne 0x40fbdb
cmp byte [ecx + 0x16], 0
jne 0x40fbdb
cmp byte [ecx + 0x11], 0
jne 0x40fbdb
cmp word [ecx + 0xa], 0
jne 0x40fbdb
cmp word [ecx + 6], 0
jne 0x40fbdb
mov eax, esi
not eax
test dword [ecx], eax
jne 0x40fbdb
movzx eax, byte [0x4e73dd]
not eax
test byte [ecx + 0xe], al
je 0x40fc01
mov eax, 0x7fff
cmp dx, ax
jne 0x40fb85
mov ecx, dword [esp + 0x138]
mov eax, 0x7fff
movzx edx, ax
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], edx
jmp 0x40fce4
movzx eax, word [ecx + 4]
mov ecx, dword [esp + 0x138]
movzx edx, ax
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], edx
jmp 0x40fce4
mov edx, 0x7fff
cmp ax, dx
je 0x40fd36
mov ecx, dword [esp + 0x138]
and eax, edx
test cl, cl
je 0x40fcbb
cmp ax, word [0x4e755c]
jae 0x40fca7
mov esi, eax
mov eax, dword [0x4e98a4]
cmp word [eax + esi*2], dx
je 0x40fca7
cmp byte [esp + 0x23], 0
mov ebp, dword [esp + 0x13c]
jne 0x40fc94
push dword [esp + 0x40]
lea eax, [esp + 0x16]
mov dl, cl
push eax
lea eax, [edi + 0xc]
push eax
push ebp
lea ecx, [esp + 0x40]
call fcn.00414260
mov ecx, dword [esp + 0x148]
add esp, 0x10
mov dword [esp + 0x38], eax
test eax, eax
je 0x40fc94
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], edx
jmp 0x40fceb
mov eax, dword [0x4e98a4]
movzx edx, word [eax + esi*2]
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], edx
jmp 0x40fceb
cmp byte [esp + 0x23], 0
mov ebp, dword [esp + 0x13c]
jne 0x40fcfb
mov edx, dword [esp + 0x28]
jmp 0x40fceb
mov edx, dword [esp + 0x28]
cmp ax, word [0x4e755c]
jae 0x40fce4
mov ecx, eax
mov eax, dword [0x4e98a4]
mov ax, word [eax + ecx*2]
mov ecx, dword [esp + 0x138]
mov word [edi + 4], ax
jmp 0x40fce4
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x13c]
mov eax, 0x7fff
cmp dx, ax
jne 0x40fd97
mov edx, eax
mov eax, dword [esp + 0x138]
test al, al
je 0x40fd4e
cmp byte [edi + 8], 0
jne 0x40fd3f
test byte [edi + 0xc], 1
jne 0x40fd3f
cmp byte [edi + 9], 0
je 0x40fd3f
cmp byte [esp + 0x22], 0
jne 0x40fd3f
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x20]
push ebp
push eax
jmp 0x4103d2
mov ebp, dword [esp + 0x13c]
jmp 0x40fcfb
push 0x7fff
push dword [esp + 0x18]
push ebp
jmp 0x40eedc
cmp word [edi + 4], dx
lea ecx, [edi + 4]
je 0x40fd7f
mov ebp, dword [esp + 0x13c]
lea eax, [esp + 0x12]
push 0
push eax
lea eax, [edi + 0xc]
mov dl, 1
push eax
push ebp
call fcn.00414260
add esp, 0x10
cmp byte [esp + 0x12], 0
je 0x40fe5c
push 0x7fff
push dword [esp + 0x18]
push ebp
push 0
jmp 0x40eedd
mov ecx, dword [esp + 0x138]
mov al, byte [edi + 0xc]
lea esi, [edi + 0xc]
test al, 8
je 0x40fdae
test cl, cl
je 0x40fdae
and al, 0xf7
mov byte [esp + 0x12], 1
mov byte [esi], al
mov ebp, dword [esp + 0x13c]
mov eax, edx
and eax, 0x7fff
cmp ax, word [0x4e755c]
jae 0x40fe7a
cmp dword [esp + 0x38], 0
jne 0x40fe7a
push dword [esp + 0x40]
lea eax, [esp + 0x16]
mov dl, cl
push eax
push esi
push ebp
lea ecx, [esp + 0x40]
call fcn.00414260
add esp, 0x10
mov dword [esp + 0x38], eax
test eax, eax
jne 0x40fe74
mov eax, dword [esp + 0x40]
cmp word [eax], 0x69
je 0x40f7cd
mov eax, dword [esp + 0x138]
test al, al
je 0x40fe21
cmp byte [edi + 0x11], 0
je 0x40fd3f
jmp 0x40fd1f
lea ecx, [edi + 4]
mov eax, 0x7fff
cmp word [ecx], ax
je 0x40fd7f
push 0
lea eax, [esp + 0x16]
mov byte [esp + 0x16], 0
push eax
push esi
push ebp
mov dl, 1
call fcn.00414260
add esp, 0x10
cmp byte [esp + 0x12], 0
jne 0x40fd7f
and byte [esi], 0xf7
mov byte [edi + 0x11], 1
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x20]
push ebp
push 0
jmp 0x4103d2
mov ecx, dword [esp + 0x30]
jmp 0x40fe7e
mov ecx, dword [esp + 0x28]
and ecx, 0x7fff
test byte [0x4e73de], 0xcc
mov dword [esp + 0x28], ecx
je 0x40ff28
cmp byte [esp + 0x12], 0
jne 0x40ff28
cmp byte [0x4e9899], 0
jne 0x40feb5
mov eax, dword [esp + 0x1c]
cmp eax, dword [0x4e6a04]
jne 0x40ff28
test byte [0x4e73de], 0xc0
mov dh, byte [0x4e73dc]
je 0x40fee1
test dh, 0xc0
jne 0x40fed4
mov dl, 0xc0
call fcn.004144b0
test al, al
je 0x40fedd
mov byte [0x4e9898], 1
jmp 0x40ff28
mov ecx, dword [esp + 0x28]
cmp byte [0x4e9898], 0
jne 0x40ff28
mov al, byte [0x4e73de]
test al, 0xc
je 0x40ff28
test al, 3
jne 0x40ff28
test dh, 0xc
jne 0x40ff07
mov dl, 0xc
call fcn.004144b0
test al, al
je 0x40ff28
cmp dword [0x4e6a08], 0
je 0x40ff19
mov byte [0x4e9898], 1
jmp 0x40ff28
mov edx, 0xffc3d44d
mov ecx, 2
call fcn.0041a400
mov eax, dword [esp + 0x28]
movzx ecx, ax
lea eax, [ecx - 0x7ffa]
cmp eax, 4
ja case.default.0x40ff3e
jmp dword [eax*4 + 0x41041c]
cmp byte [0x4e989a], 0
je 0x40f7cd
xor al, al
test byte [0x4e73de], 4
je 0x40ff64
mov edx, 0xa4
jmp 0x40ff76
test byte [0x4e73de], 8
movzx edx, al
mov eax, 0xa5
cmovne edx, eax
cmp byte [0x4e989a], 0
mov dword [esp + 0x44], edx
je 0x410003
mov eax, 0x7ffb
cmp word [esp + 0x28], ax
je case.0x40ff3e.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.00419e30
add esp, 0x10
cmp byte [edi + 8], 0
je 0x40fff2
cmp bl, 0x5b
je 0x40fff2
cmp bl, 0x5c
je 0x40fff2
cmp byte [esp + 0x138], 0
jne 0x40fff2
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.00419e30
add esp, 0x10
mov byte [0x4e989a], 0
mov edx, 0x7fff
jmp 0x4102a4
cmp bl, 0xa4
je 0x410012
mov byte [esp + 0x23], 0
cmp bl, 0xa5
jne 0x410017
mov byte [esp + 0x23], 1
cmp bl, 0xa0
je 0x410025
cmp bl, 0xa1
je 0x410025
xor cl, cl
jmp 0x410027
mov cl, 1
mov byte [esp + 0x1b], cl
cmp bl, 0xa2
je 0x41003a
mov byte [esp + 0x13], 0
cmp bl, 0xa3
jne 0x41003f
mov byte [esp + 0x13], 1
xor dl, dl
test byte [0x4e73de], 0x10
mov dword [esp + 0x38], edx
je 0x410052
mov dl, 0xa0
jmp 0x410075
test byte [0x4e73de], 0x20
mov eax, dword [esp + 0x138]
je 0x410066
mov dl, 0xa1
jmp 0x41007c
test al, al
jne 0x410080
test cl, cl
movzx edx, dl
movzx eax, bl
cmovne edx, eax
mov eax, dword [esp + 0x138]
mov dword [esp + 0x38], edx
xor cl, cl
test byte [0x4e73de], 1
mov dword [esp + 0x34], ecx
je 0x410096
mov byte [esp + 0x34], 0xa2
jmp 0x4100bc
test byte [0x4e73de], 2
je 0x4100a6
mov byte [esp + 0x34], 0xa3
jmp 0x4100bc
test al, al
jne 0x4100bc
cmp byte [esp + 0x13], 0
movzx ecx, cl
movzx eax, bl
cmovne ecx, eax
mov dword [esp + 0x34], ecx
mov byte [esp + 0x13], 0
test dl, dl
je 0x4100e2
push 0xffc3d44d
push 0
push 0
push 0
mov ecx, 1
call fcn.00419e30
add esp, 0x10
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x34]
test al, al
je 0x410104
push 0xffc3d44d
push 0
push 0
push 0
mov dl, al
mov ecx, 1
call fcn.00419e30
add esp, 0x10
cmp byte [esp + 0x23], 0
je 0x410119
cmp byte [esp + 0x138], 0
jne 0x410121
mov al, bl
jmp 0x41011d
mov eax, dword [esp + 0x44]
test al, al
jne 0x410138
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00419e30
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00419e30
add esp, 0x10
cmp byte [esp + 0x13], 0
je 0x410179
cmp byte [esp + 0x1b], 0
jne 0x410179
mov dl, byte [esp + 0x38]
xor ecx, ecx
push 0xffc3d44d
push 0
push 0
push 0
call fcn.00419e30
add esp, 0x10
mov byte [0x4e989a], 1
mov edx, 0x7fff
jmp 0x4102a4
cmp byte [0x4e989a], 0
je 0x40f7cd
mov eax, dword [esp + 0x138]
test al, al
jne 0x4101d7
cmp bl, 0xa2
je 0x4101b6
cmp bl, 0xa3
je 0x4101b6
cmp bl, 0xa0
je 0x4101b6
cmp bl, 0xa1
jne 0x4101d7
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.00419e30
mov eax, dword [esp + 0x148]
add esp, 0x10
test byte [0x4e73de], 0xc
je 0x4101ee
test al, al
je 0x410205
cmp bl, 0xa4
je 0x4101ee
cmp bl, 0xa5
jne 0x410205
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00419e30
add esp, 0x10
mov eax, 0x7ffd
mov byte [esp + 0x13], 0
cmp word [esp + 0x28], ax
jne 0x41023b
test byte [0x4e73de], 0x30
jne 0x41023b
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.00419e30
add esp, 0x10
mov byte [esp + 0x13], 1
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00419e30
add esp, 0x10
cmp byte [esp + 0x13], 0
je 0x40fff9
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.00419e30
add esp, 0x10
mov edx, 0x7fff
jmp 0x4102a4
mov edx, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x48], edx
mov eax, dword [ecx + 4]
test eax, eax
je 0x4102a4
cmp byte [eax], 5
jb 0x4102a4
movzx eax, word [ecx + 0x14]
shl eax, 0x10
or edx, eax
mov dword [esp + 0x48], edx
cmp byte [esp + 0x22], 0
mov ecx, 0x68
mov eax, dword [esp + 0x40]
mov word [eax], cx
mov ecx, dword [esp + 0x138]
je 0x41031c
test cl, cl
je 0x41035e
cmp byte [edi + 9], 0
je 0x41031c
mov esi, dword [esp + 0x24]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push esi
mov ecx, 1
call fcn.00419e30
push 0xffc3d44d
push 0
push 0
push esi
mov dl, bl
mov ecx, 2
call fcn.00419e30
mov eax, dword [esp + 0x68]
add esp, 0x20
push 0
push SysReAllocString
push eax
push dword [esp + 0x20]
push ebp
push dword [esp + 0x14c]
jmp 0x4103d2
test cl, cl
je 0x41035e
cmp byte [edi + 8], 0
je 0x410339
cmp byte [edi + 0x11], 0
je 0x41037f
push 0
push SysReAllocString
push edx
jmp 0x4103cc
cmp byte [esp + 0x12], 0
je 0x4103b8
mov eax, dword [esp + 0x1c]
push edx
push dword [esp + 0x18]
push ebp
push ecx
push dword [esp + 0x34]
mov ecx, eax
push ebx
push dword [esp + 0x144]
jmp 0x40ec6e
mov eax, dword [0x4e752c]
mov byte [edi + 0x10], 1
test eax, eax
je 0x410375
cmp byte [eax + 8], 0
je 0x410375
mov byte [eax + 0x12], 2
cmp byte [esp + 0x12], 0
je 0x41038b
or byte [esi], 8
push edx
push dword [esp + 0x18]
push ebp
push ecx
jmp 0x40eedd
cmp bl, 0xa4
je 0x410395
cmp bl, 0xa5
jne 0x4103b8
push 0xffc3d450
push 0
push 0
push dword [esp + 0x30]
mov dl, bl
mov ecx, 1
call fcn.00419e30
mov ecx, dword [esp + 0x148]
add esp, 0x10
test cl, cl
jne 0x4103c0
mov byte [edi + 0x11], 1
mov eax, dword [esp + 0x48]
push 0
push SysReAllocString
push eax
push dword [esp + 0x20]
push ebp
push ecx
push ecx
mov ecx, dword [esp + 0x38]
push ebx
mov edx, dword [esp + 0x14c]
call fcn.00410430
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret