Function at 0x40f790
Capabilities:
Check for time delay via gettickcount
Encrypt data using speck

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov di, word [esp + 0x130]
mov esi, ecx
mov dword [esp + 0x28], edx
mov eax, 0x7fff
mov edx, dword [esp + 0x138]
mov dword [esp + 0x1c], esi
movzx ebp, di
mov dword [esp + 0x40], eax
cmp edx, 0xffc3d44f
je 0x40f7dc
cmp edx, 0xffc3d44e
je 0x40f7dc
mov byte [esp + 0x1a], 0
cmp edx, 0xffc3d44d
jne 0x40f7e1
mov byte [esp + 0x1a], 1
mov ecx, dword [0x4f9a00]
mov ebx, dword [esp + 0x12c]
test ecx, ecx
jne 0x40f7ff
lea eax, [esp + 0x4c]
mov dword [esp + 0x14], eax
jmp 0x40f8c3
mov eax, dword [0x4f9a78]
imul esi, eax, 0xd4
inc eax
add esi, ecx
xor ecx, ecx
cmp eax, dword [0x4f70f8]
mov dword [esp + 0x14], esi
cmovge eax, ecx
mov dword [0x4f9a78], 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 [0x4f9a74], eax
sub ecx, dword [0x4fc6f4]
mov dword [0x4fc6f4], eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4f1170]
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4f10ac]
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 0x40f8a5
cmp esi, dword [0x4f9a70]
je 0x40f89e
push esi
push ecx
push 0x418
push dword [0x4f99e8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x14]
jmp 0x40f8b2
xor edx, edx
mov word [ecx], dx
jmp 0x40f8b2
mov dword [ecx], 0x2f004e
mov dword [ecx + 4], 0x41
mov edx, dword [esp + 0x138]
mov dword [0x4f9a70], esi
mov esi, dword [esp + 0x1c]
cmp bl, 0xe7
jne 0x40f91a
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x128]
push 0x7fff
push ebx
push edx
push dword [esp + 0x140]
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 + 0x140]
mov edx, dword [esp + 0x48]
call fcn.00411260
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
mov word [eax + 2], di
mov cl, 3
mov al, bl
mov edi, 0x20
add al, 0x64
cmp cl, al
sbb eax, eax
and eax, ebp
cmp esi, dword [0x4f9a04]
mov esi, dword [0x4fc8a8]
movzx eax, ax
mov dword [esp + 0x20], eax
jne 0x40f978
mov cl, byte [esp + 0x13c]
mov edx, dword [esp + 0x134]
and cl, 1
mov dword [esp + 0x30], ecx
jne 0x40fa0c
movzx ecx, bl
mov al, dl
xor al, 1
shl al, 7
mov byte [ecx + 0x4fa3e0], al
mov ecx, dword [esp + 0x30]
jmp 0x40fa0c
mov edx, dword [esp + 0x13c]
mov ecx, edx
movzx ebp, bl
shr ecx, 4
and ecx, 0xffffff01
mov dword [esp + 0x30], ecx
lea eax, [ebp*4]
add eax, ebp
cmp byte [esi + eax*4 + 8], 0
jne 0x40fa05
test dl, 0x10
jne 0x40fa05
cmp bl, 0xa0
je 0x40f9b0
cmp bl, 0xa1
jne 0x40f9d5
mov edx, dword [esp + 0x134]
test dl, dl
jne 0x40f9d5
cmp bl, 0xa0
mov dword [esp + 0x3c], 0x10
mov eax, edi
cmove eax, dword [esp + 0x3c]
test byte [0x4f9aa3], al
jne 0x40fa0c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x134]
mov ecx, dword [esp + 0x30]
mov esi, dword [0x4fc8a8]
mov dword [0x4fc864], eax
mov dword [0x4fc860], eax
mov al, dl
xor al, 1
shl al, 7
mov byte [ebp + 0x4fa3e0], al
jmp 0x40fa0c
mov edx, dword [esp + 0x134]
cmp byte [esp + 0x1a], 0
je 0x40fa1a
mov eax, 0x69
jmp 0x40fa27
mov eax, 0x61
test cl, cl
cmovne edi, eax
movzx eax, di
cmp byte [0x4f9a9f], 0
mov edi, dword [esp + 0x14]
lea ecx, [edi + 4]
mov word [ecx], ax
mov dword [esp + 0x38], ecx
je 0x40fa68
cmp bl, 0x5b
je 0x40fa48
cmp bl, 0x5c
jne 0x40fa68
test dl, dl
jne 0x40fa68
mov ebp, dword [esp + 0x138]
push 0
push SysReAllocString
push 0x7fff
push edi
push ebp
push 0
jmp 0x4110ae
cmp byte [0x4fc89a], 0
mov ebp, dword [sym.imp.USER32.dll_FindWindowW]
je 0x40fb0e
cmp bl, 0x1b
jne 0x40fb0e
test dl, dl
jne 0x40fb0e
push 0
push str.32771
call ebp
test eax, eax
je 0x40fb08
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 0x40fb08
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
xor ecx, ecx
call fcn.0041b1a0
mov dl, byte [0x4fa3de]
mov ecx, 1
push 0xffc3d44d
shr dl, 3
push 0
and dl, 1
push 0
push 0
or dl, 0xa4
call fcn.0041b1a0
mov ebp, dword [esp + 0x158]
add esp, 0x20
push 0
push SysReAllocString
push 0x7fff
push edi
push ebp
push 0
push ecx
push 0x1b
jmp 0x4110b0
mov esi, dword [0x4fc8a8]
mov edx, dword [esp + 0x20]
movzx eax, dx
mov dword [esp + 0x30], eax
lea ecx, [eax + eax*4]
mov eax, dword [0x4fc8ac]
lea edi, [eax + ecx*4]
mov eax, dword [esp + 0x1c]
mov cl, byte [edi + 0x13]
mov byte [esp + 0x19], cl
cmp eax, dword [0x4f9a08]
jne 0x40fb3b
test cl, cl
jne 0x40fb44
movzx eax, bl
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp byte [esp + 0x1a], 0
je 0x40fbb5
mov ecx, dword [esp + 0x138]
mov eax, dword [esp + 0x134]
cmp ecx, 0xffc3d44e
jne 0x40fb7f
test al, al
je 0x40fb7f
cmp dword [0x4fa52c], edi
jne 0x40fb7f
mov byte [edi + 0xd], 0
mov byte [edi + 0x10], 0
mov dword [0x4fa52c], 0
push 0x7fff
push dword [esp + 0x18]
push ecx
push eax
push edx
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
push ebx
push dword [esp + 0x140]
push dword [esp + 0x140]
call fcn.00411260
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
mov ecx, dword [esp + 0x134]
mov eax, 0x7fff
mov dword [esp + 0x48], eax
test cl, cl
jne 0x40fbd0
mov byte [edi + 0x11], cl
mov word [edi + 4], ax
mov esi, dword [esp + 0x1c]
cmp esi, dword [0x4f9a04]
jne 0x40fc58
test bl, bl
jne 0x40fc1c
mov ebp, dword [esp + 0x138]
push 0x7fff
push dword [esp + 0x18]
push ebp
push ecx
push edx
push 0
push dword [esp + 0x140]
mov edx, dword [esp + 0x44]
mov ecx, esi
push dword [esp + 0x140]
call fcn.00411260
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
cmp bl, 1
je 0x40fc26
cmp bl, 2
jne 0x40fc58
cmp dword [0x4f99b8], 0
jne 0x40fc86
push 0
push str.32768
call ebp
test eax, eax
je 0x40fc4d
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4fb2ec]
je 0x40fc7b
mov ecx, dword [esp + 0x134]
mov edx, dword [esp + 0x20]
mov eax, dword [0x4fa52c]
test eax, eax
je 0x40fcc0
cmp eax, edi
je 0x40fcc0
test cl, cl
jne 0x40fcc0
cmp esi, dword [0x4f9a08]
jne 0x40fcaa
xor eax, eax
cmp byte [edi + 8], al
sete al
jmp 0x40fcb3
mov ecx, dword [esp + 0x134]
mov edx, dword [esp + 0x20]
mov byte [edi + 0x10], 0
mov ebp, dword [esp + 0x138]
mov al, cl
push 0x7fff
push dword [esp + 0x18]
xor al, 1
push ebp
push ecx
push edx
mov byte [edi + 0xd], al
push ebx
jmp 0x40fbf5
mov eax, dword [0x4fa52c]
movzx eax, byte [eax + 8]
test eax, eax
je 0x40fcc0
mov eax, dword [0x4fa52c]
mov byte [eax + 0x12], 1
cmp byte [edi + 9], 0
jne 0x40fccc
cmp byte [edi + 0xa], 0
je 0x40fc8a
mov dword [esp + 0x34], 0
mov ebp, 0x7fff
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
test cl, cl
je 0x40fd12
mov dh, byte [edi + 0x10]
mov al, byte [edi + 0xd]
mov byte [esp + 0x13], al
movzx eax, word [edi + 4]
mov byte [esp + 0x12], dh
mov edx, ebp
mov byte [edi + 0x10], 0
cmp ax, dx
je 0x40fd22
mov ebp, eax
mov word [edi + 4], dx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
jmp 0x40fd22
mov al, byte [esp + 0x13]
mov byte [esp + 0x13], al
mov al, byte [esp + 0x13]
mov byte [esp + 0x12], al
mov al, cl
xor dl, dl
xor al, 1
mov byte [edi + 0xd], al
cmp esi, dword [0x4f9a08]
jne 0x40fda1
cmp byte [edi + 8], dl
je 0x40fdbd
mov eax, dword [0x4fc8a8]
cmp byte [eax + 0xcb5], dl
jne 0x40fd55
cmp byte [eax + 0xcc9], dl
jne 0x40fd55
xor cl, cl
jmp 0x40fd57
mov cl, 1
cmp byte [eax + 0xcdd], 0
mov byte [eax + 0x161], cl
jne 0x40fd73
cmp byte [eax + 0xcf1], 0
jne 0x40fd73
xor cl, cl
jmp 0x40fd75
mov cl, 1
cmp byte [eax + 0xc8d], 0
mov byte [eax + 0x175], cl
jne 0x40fd97
cmp byte [eax + 0xca1], 0
jne 0x40fd97
xor cl, cl
mov byte [eax + 0x14d], cl
jmp 0x40fdbd
mov cl, 1
mov byte [eax + 0x14d], cl
jmp 0x40fdbd
cmp dword [0x4f9a08], 0
jne 0x40fdbd
mov cl, 1
call fcn.0041da40
mov byte [0x4fa3dd], al
mov dl, 1
mov byte [0x4fa3de], al
mov eax, dword [edi]
test eax, eax
je 0x40fdcd
cmp dword [eax], 7
mov byte [esp + 0x1a], 1
je 0x40fdd2
mov byte [esp + 0x1a], 0
test dl, dl
jne 0x40fddd
mov cl, 1
call fcn.0041da40
mov cl, byte [edi + 9]
mov eax, dword [esp + 0x134]
test cl, cl
je 0x410071
test al, al
jne 0x410071
mov eax, dword [0x4fa52c]
test eax, eax
je 0x40fe0e
cmp byte [edi + 0xa], 0
je 0x40fe0e
cmp edi, eax
jne 0x41006a
cmp cl, 1
jne 0x40feb9
cmp byte [esp + 0x19], 0
mov ecx, dword [esp + 0x30]
jne 0x40fe25
movzx ecx, bl
xor edx, edx
movzx eax, cx
cmp byte [esp + 0x19], dl
mov dword [esp + 0x44], ecx
cmovne edx, eax
movzx eax, cl
xor ecx, ecx
cmp byte [esp + 0x19], cl
push 0
cmovne eax, ecx
mov cl, al
call fcn.0041dc50
mov ch, al
xor edx, edx
xor eax, eax
mov byte [esp + 0x1f], ch
add esp, 4
mov dword [esp + 0x3c], edx
cmp ax, word [0x4fa55c]
jae 0x40ff9d
mov cl, byte [0x4f9a6c]
nop
cmp byte [esp + 0x19], 0
mov eax, dword [0x4fa54c]
mov ebp, dword [eax + edx*4]
je 0x40fe85
movzx eax, word [ebp + 0xa]
jmp 0x40fe89
movzx eax, byte [ebp + 0x11]
cmp dword [esp + 0x44], eax
je 0x40fe98
test byte [ebp + 0xe], ch
je 0x40ff85
cmp word [ebp + 6], 0
je 0x40ff24
cmp byte [ebp + 0x19], 0
je 0x40ff85
test cl, cl
jne 0x40ff85
mov esi, dword [esp + 0x1c]
xor dl, dl
cmp edi, dword [0x4fa52c]
je 0x40fecc
mov dword [0x4fa52c], edi
mov byte [edi + 0x12], dl
cmp byte [edi + 0xa], 0
je 0x40ffed
mov al, byte [edi + 8]
mov cl, byte [0x4fa3dd]
test al, al
je 0x40fee7
not al
and cl, al
test cl, cl
jne 0x40fef9
test dl, dl
jne 0x40fef9
test byte [edi + 0xc], 1
je 0x40ffed
cmp esi, dword [0x4f9a08]
jne 0x40ffa4
cmp byte [esp + 0x19], 0
je 0x40ffa4
mov eax, dword [0x4fc8a0]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x30]
jmp 0x40ffb4
mov esi, dword [ebp + 0x20]
mov eax, esi
test eax, eax
je 0x40ff85
nop dword [eax]
cmp byte [eax + 0x1c], 0
jne 0x40ff40
mov eax, dword [eax + 8]
test eax, eax
jne 0x40ff30
jmp 0x40ff85
cmp byte [esi + 0x1c], 0
je 0x40ff76
test cl, cl
je 0x40ff55
mov ecx, esi
call fcn.0049f390
test al, al
je 0x40ff70
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40feb5
mov edx, dword [ebp + 0x1c]
call fcn.004142f0
test eax, eax
jne 0x40feb5
mov cl, byte [0x4f9a6c]
mov esi, dword [esi + 8]
test esi, esi
jne 0x40ff40
mov edx, dword [esp + 0x3c]
mov ch, byte [esp + 0x1b]
movzx eax, word [0x4fa55c]
inc edx
mov dword [esp + 0x3c], edx
cmp edx, eax
jl 0x40fe70
mov esi, dword [esp + 0x1c]
mov dl, 1
jmp 0x40fecc
movzx ecx, cl
movzx eax, bl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4fc89c]
movzx eax, word [eax + ecx*2]
movzx ebp, ax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
test ax, ax
jns 0x40ffce
mov word [edi + 4], ax
jmp 0x40fffb
and eax, 0x7fff
cmp ax, word [0x4fa55c]
jae 0x40fff1
mov ecx, eax
mov eax, dword [0x4fc8a4]
mov ax, word [eax + ecx*2]
mov word [edi + 4], ax
jmp 0x40fff1
mov ebp, dword [esp + 0x24]
mov eax, 0x7fff
cmp bp, ax
jne 0x41006a
test dl, dl
je 0x41000f
mov eax, dword [esp + 0x38]
mov ecx, 0x23
or byte [edi + 0xc], 8
mov word [eax], cx
cmp byte [edi + 8], 0
jne 0x41004d
test byte [edi + 0xc], 1
jne 0x41004d
cmp byte [esp + 0x1a], 0
jne 0x41004d
test dl, dl
jne 0x41004d
mov ebp, dword [esp + 0x138]
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x20]
mov byte [edi + 0x11], 1
push ebp
push 0
push ecx
push ebx
mov ecx, esi
jmp 0x4110b4
mov ebp, dword [esp + 0x138]
push 0x7fff
push dword [esp + 0x18]
push ebp
push 0
push dword [esp + 0x30]
push ebx
jmp 0x40fbf5
mov eax, dword [esp + 0x134]
cmp byte [edi + 0xa], 0
mov byte [esp + 0x1b], 0
je 0x410107
test al, al
je 0x410107
mov ch, byte [esp + 0x12]
cmp dword [0x4fa52c], edi
jne 0x4100a2
test ch, ch
je 0x410107
mov dword [0x4fa52c], 0
cmp byte [edi + 0xb], 0
jne 0x410102
mov cl, byte [edi + 0xc]
test cl, 8
je 0x4100ba
xor dl, dl
and cl, 0xf7
mov byte [edi + 0xc], cl
jmp 0x4100bc
mov dl, 1
test ch, ch
je 0x4100e6
test dl, dl
je 0x4100e6
mov ebp, dword [esp + 0x138]
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x20]
push ebp
push eax
push ecx
push ebx
mov ecx, esi
jmp 0x4110b4
mov ebp, dword [esp + 0x138]
push 0x7fff
push dword [esp + 0x18]
push ebp
push eax
push dword [esp + 0x30]
push ebx
jmp 0x40fbf5
mov byte [esp + 0x1b], 1
cmp byte [edi + 9], 0
je 0x410295
test al, al
je 0x410295
mov eax, dword [0x4fa52c]
xor ecx, ecx
cmp eax, edi
cmove eax, ecx
mov dword [0x4fa52c], eax
cmp byte [edi + 0xe], cl
je 0x410149
push 0xffc3d44d
push ecx
push ecx
mov byte [edi + 0xe], cl
mov dl, 0x12
push ecx
mov ecx, 1
call fcn.0041b1a0
add esp, 0x10
cmp byte [edi + 0xf], 0
je 0x41016d
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov byte [edi + 0xf], 0
mov ecx, 1
call fcn.0041b1a0
add esp, 0x10
mov edx, 0x7fff
cmp bp, dx
jne 0x4101a5
mov al, byte [edi + 0xc]
test al, 8
je 0x4101a5
and al, 0xf7
mov byte [edi + 0xc], al
mov ebp, dword [esp + 0x138]
push 0x7fff
push dword [esp + 0x18]
push ebp
push dword [esp + 0x140]
push dword [esp + 0x30]
push ebx
jmp 0x40fbf5
mov cl, byte [esp + 0x1a]
mov al, byte [edi + 0x12]
test cl, cl
je 0x41023f
cmp al, 2
jne 0x410213
mov ebp, dword [esp + 0x20]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push ebp
mov ecx, 1
call fcn.0041b1a0
push 0xffc3d44d
push 0
push 0
push ebp
mov dl, bl
mov ecx, 2
call fcn.0041b1a0
add esp, 0x20
mov ebp, dword [esp + 0x138]
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x20]
push ebp
push dword [esp + 0x148]
push ecx
push ebx
mov ecx, esi
jmp 0x4110b4
cmp al, 1
je 0x410183
cmp byte [edi + 0xa], 0
jne 0x410284
cmp byte [edi + 8], 0
jne 0x410183
test byte [edi + 0xc], 1
jne 0x410183
test cl, cl
jne 0x410183
jmp 0x4101eb
test al, al
je 0x41021b
cmp bp, dx
jne 0x41021b
cmp byte [edi + 8], 0
jne 0x410183
test byte [edi + 0xc], 1
mov ebp, dword [esp + 0x138]
jne 0x41018a
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x20]
push ebp
push dword [esp + 0x148]
push ecx
push ebx
mov ecx, esi
jmp 0x4110b4
cmp byte [esp + 0x13], 0
jne 0x410295
cmp byte [edi + 0xb], 0
je 0x410183
cmp dword [0x4fa52c], 0
mov edx, 0x7ffd
mov byte [esp + 0x12], 0
je 0x4106a0
mov ecx, dword [esp + 0x134]
test cl, cl
je 0x4102c1
cmp byte [edi + 0xb], 0
je 0x4106a0
mov eax, 0x7fff
cmp bp, ax
jne 0x4109b0
movzx ebp, word [edi + 6]
xor esi, esi
cmp bp, ax
je 0x41048b
nop
mov eax, dword [0x4fa54c]
movzx ecx, bp
mov edx, dword [eax + ecx*4]
mov al, byte [edx + 0x11]
test al, al
jne 0x410330
cmp word [edx + 0xa], 0
je 0x41036a
movzx ebp, word [edx + 0xc]
movzx eax, word [edx + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4fc8ac]
lea eax, [eax + ecx*4]
cmp byte [eax + 0xd], 0
je 0x410358
cmp byte [edx + 0x16], 0
je 0x410349
cmp byte [esp + 0x134], 0
jne 0x410368
mov ax, word [edx + 4]
mov word [edi + 4], ax
test esi, esi
jne 0x410372
jmp 0x410358
movzx ebp, word [edx + 0xc]
test al, al
je 0x4102fd
mov ecx, dword [0x4fc8a8]
movzx eax, al
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
jmp 0x41030c
cmp byte [esp + 0x134], 0
jne 0x410358
test esi, esi
cmove esi, edx
mov eax, 0x7fff
cmp bp, ax
jne 0x4102e0
jmp 0x41036a
mov esi, edx
test esi, esi
je 0x41047f
movzx ecx, byte [esi + 0x11]
cmp ecx, 0x12
ja case.0x410386.1
movzx eax, byte [ecx + 0x4110e4]
jmp dword [eax*4 + 0x4110d0]
mov ecx, dword [0x4fc8a8]
mov eax, 0xc80
mov edx, 0xc94
cmp byte [ecx + 0xca1], 0
cmovne eax, edx
add eax, ecx
jmp 0x410404
mov ecx, dword [0x4fc8a8]
mov eax, 0xca8
mov edx, 0xcbc
cmp byte [ecx + 0xcc9], 0
cmovne eax, edx
add eax, ecx
jmp 0x410404
mov ecx, dword [0x4fc8a8]
mov eax, 0xcd0
mov edx, 0xce4
cmp byte [ecx + 0xcf1], 0
cmovne eax, edx
add eax, ecx
jmp 0x410404
movzx eax, word [esi + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4fc8ac]
lea eax, [eax + ecx*4]
jmp 0x410404
lea eax, [ecx + ecx*4]
mov ecx, dword [0x4fc8a8]
lea eax, [ecx + eax*4]
mov dword [0x4fa52c], eax
movzx eax, word [esi + 6]
test ax, ax
je 0x410418
mov dword [esp + 0x2c], eax
jmp 0x41046f
movzx eax, word [esi + 4]
lea ecx, [esp + 0x2c]
mov ebp, dword [esp + 0x138]
mov dl, byte [esp + 0x134]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push eax
lea eax, [esp + 0x16]
push eax
lea eax, [edi + 0xc]
push eax
push ebp
call fcn.00414d20
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
jne 0x41046b
push 0x7fff
push dword [esp + 0x18]
push ebp
push dword [esp + 0x140]
push dword [esp + 0x30]
jmp 0x40fb8b
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
movzx ebp, ax
mov eax, dword [0x4fa52c]
mov byte [eax + 0x12], 2
mov ecx, dword [esp + 0x134]
mov edx, 0x7ffd
mov eax, 0x7ffe
cmp bp, ax
je 0x41049e
cmp bp, dx
jne 0x41069c
test cl, cl
jne 0x4104a6
mov byte [edi + 0x10], 1
test byte [0x4fa3de], 0xc
jne 0x4104cd
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.0041b1a0
mov ecx, dword [esp + 0x144]
add esp, 0x10
cmp bl, 0xa2
je 0x4104d7
cmp bl, 0xa3
jne 0x4104fa
mov esi, dword [esp + 0x20]
test cl, cl
jne 0x4104fe
push 0xffc3d44d
push 0
push 0
push esi
mov dl, bl
mov ecx, 1
call fcn.0041b1a0
add esp, 0x10
jmp 0x4104fe
mov esi, dword [esp + 0x20]
mov eax, dword [0x4fa52c]
mov byte [eax + 0xe], 1
mov eax, 0x7ffd
cmp bp, ax
jne 0x41053f
test byte [0x4fa3de], 0x30
jne 0x410531
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.0041b1a0
add esp, 0x10
mov eax, dword [0x4fa52c]
mov byte [eax + 0xf], 1
jmp 0x4105bc
mov eax, 0x7ffe
cmp bp, ax
jne 0x4105bc
cmp bl, 0xa0
je 0x410553
cmp bl, 0xa1
jne 0x410576
cmp byte [esp + 0x134], 0
jne 0x410576
push 0xffc3d44d
push 0
push 0
push esi
mov dl, bl
mov ecx, 1
call fcn.0041b1a0
add esp, 0x10
test byte [0x4fa3de], 0x10
je 0x410599
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa0
mov ecx, 1
call fcn.0041b1a0
add esp, 0x10
test byte [0x4fa3de], 0x20
je 0x4105bc
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa1
mov ecx, 1
call fcn.0041b1a0
add esp, 0x10
test byte [0x4fa3de], 1
je 0x4105df
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa2
mov ecx, 1
call fcn.0041b1a0
add esp, 0x10
test byte [0x4fa3de], 2
je 0x410602
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa3
mov ecx, 1
call fcn.0041b1a0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.0041b1a0
mov eax, 0x7ffd
add esp, 0x10
cmp bp, ax
jne 0x410663
mov eax, dword [0x4fa52c]
cmp byte [eax + 0xf], 0
je 0x410663
cmp bl, 0x60
jb 0x41063b
cmp bl, 0x69
jbe 0x410640
cmp bl, 0x6e
jne 0x410663
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.0041b1a0
mov eax, dword [0x4fa52c]
add esp, 0x10
mov byte [eax + 0xf], 0
mov eax, dword [esp + 0x38]
mov ecx, 0x68
mov word [eax], cx
mov eax, dword [esp + 0x134]
test al, al
jne 0x41067e
mov byte [edi + 0x11], 1
mov ebp, dword [esp + 0x138]
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x20]
push ebp
push eax
jmp 0x4110ae
mov ebp, dword [esp + 0x24]
mov edx, 0x7fff
cmp bp, dx
jne 0x410aa2
mov al, byte [edi + 8]
mov dl, byte [0x4fa3dd]
test al, al
je 0x4106bf
not al
and dl, al
mov eax, dword [esp + 0x1c]
mov dh, byte [esp + 0x19]
cmp eax, dword [0x4f9a08]
jne 0x4106e7
test dh, dh
je 0x4106e7
mov eax, dword [0x4fc8a0]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x30]
movzx ebp, bl
jmp 0x4106f7
mov eax, dword [0x4fc89c]
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 + 0x24], ecx
mov dword [esp + 0x2c], ecx
mov ecx, esi
cmp ax, word [esp + 0x48]
jne 0x4107dd
cmp byte [0x4fc89a], 0
je 0x4107dd
cmp bl, 9
je 0x4107dd
mov eax, dword [esp + 0x1c]
and dl, 0xf3
cmp eax, dword [0x4f9a08]
jne 0x410750
test dh, dh
je 0x410750
mov eax, dword [0x4fc8a0]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x30]
jmp 0x41075d
mov eax, dword [0x4fc89c]
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 + 0x24], edx
mov dword [esp + 0x2c], edx
cmp ax, si
jbe 0x410788
mov ebp, 0x7fff
cmp ax, bp
jb 0x4107e6
mov ecx, dword [esp + 0x134]
mov ebp, dword [esp + 0x138]
mov edx, 0x7fff
test cl, cl
je 0x410a60
cmp byte [edi + 8], 0
jne 0x410a4c
test byte [edi + 0xc], 1
jne 0x410a4c
cmp byte [edi + 9], 0
je 0x410a4c
cmp byte [esp + 0x1a], 0
jne 0x410a4c
push 0
push SysReAllocString
push 0x7fff
jmp 0x4110a8
mov edx, dword [esp + 0x24]
mov ebp, 0x7fff
movzx eax, cx
mov ecx, dword [esp + 0x134]
test ax, ax
jns 0x4108d8
test cl, cl
jne 0x410993
mov ah, byte [0x4fa3dd]
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
cmove esi, ecx
cmp dx, bp
je 0x4108af
nop word [eax + eax]
mov eax, dword [0x4fa54c]
movzx ecx, dx
mov ecx, dword [eax + ecx*4]
cmp byte [ecx + 0x15], 0
movzx edx, word [ecx + 0xc]
jne 0x41087a
movzx eax, byte [ecx + 0xf]
mov ebx, dword [esp + 0x12c]
not eax
test byte [0x4fa3dd], al
jne 0x4108aa
cmp byte [ecx + 0x16], 0
jne 0x4108aa
cmp byte [ecx + 0x11], 0
jne 0x4108aa
cmp word [ecx + 0xa], 0
jne 0x4108aa
cmp word [ecx + 6], 0
jne 0x4108aa
mov eax, esi
not eax
test dword [ecx], eax
jne 0x4108aa
movzx eax, byte [0x4fa3dd]
not eax
test byte [ecx + 0xe], al
je 0x4108c4
cmp dx, bp
jne 0x410850
mov eax, 0x7fff
movzx ecx, ax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
jmp 0x41098c
movzx eax, word [ecx + 4]
movzx ecx, ax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
jmp 0x41098c
cmp ax, bp
je 0x41078f
and eax, 0x7fff
test cl, cl
je 0x410974
cmp ax, word [0x4fa55c]
jae 0x410961
mov esi, eax
mov eax, dword [0x4fc8a4]
cmp word [eax + esi*2], bp
je 0x410961
cmp byte [esp + 0x1b], 0
mov ebp, dword [esp + 0x138]
jne 0x41094e
push dword [esp + 0x38]
lea eax, [esp + 0x16]
mov dl, cl
push eax
lea eax, [edi + 0xc]
push eax
push ebp
lea ecx, [esp + 0x3c]
call fcn.00414d20
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
je 0x410947
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x134]
jmp 0x41099a
mov ecx, dword [esp + 0x134]
mov eax, dword [0x4fc8a4]
movzx eax, word [eax + esi*2]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
jmp 0x41099e
cmp byte [esp + 0x1b], 0
mov ebp, dword [esp + 0x138]
je 0x41099a
jmp 0x4107a3
cmp ax, word [0x4fa55c]
jae 0x410993
mov ecx, eax
mov eax, dword [0x4fc8a4]
mov ax, word [eax + ecx*2]
mov word [edi + 4], ax
mov ecx, dword [esp + 0x134]
mov ebp, dword [esp + 0x138]
mov eax, dword [esp + 0x24]
mov edx, 0x7fff
cmp ax, dx
je 0x41079b
mov ebp, dword [esp + 0x24]
mov al, byte [edi + 0xc]
lea esi, [edi + 0xc]
test al, 8
je 0x4109c7
test cl, cl
je 0x4109c7
and al, 0xf7
mov byte [esp + 0x12], 1
mov byte [esi], al
mov eax, ebp
mov ebp, dword [esp + 0x138]
and eax, 0x7fff
cmp ax, word [0x4fa55c]
jae 0x410b13
cmp dword [esp + 0x34], 0
jne 0x410b13
push dword [esp + 0x38]
lea eax, [esp + 0x16]
mov dl, cl
push eax
push esi
push ebp
lea ecx, [esp + 0x3c]
call fcn.00414d20
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
jne 0x410b0d
mov eax, dword [esp + 0x38]
cmp word [eax], 0x69
je 0x410451
mov eax, dword [esp + 0x134]
test al, al
je 0x410ac2
cmp byte [edi + 0x11], 0
je 0x410aae
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x20]
push ebp
push eax
jmp 0x4110ae
push 0x7fff
push dword [esp + 0x18]
push ebp
push ecx
push dword [esp + 0x30]
jmp 0x40fb8b
cmp word [edi + 4], dx
lea ecx, [edi + 4]
je 0x410a8d
mov ebp, dword [esp + 0x138]
lea eax, [esp + 0x12]
push 0
push eax
lea eax, [edi + 0xc]
mov dl, 1
push eax
push ebp
call fcn.00414d20
add esp, 0x10
cmp byte [esp + 0x12], 0
je 0x410af5
push 0x7fff
push dword [esp + 0x18]
push ebp
push 0
push dword [esp + 0x30]
jmp 0x40fb8b
mov ecx, dword [esp + 0x134]
jmp 0x4109b0
push 0x7fff
push dword [esp + 0x18]
push ebp
push eax
push dword [esp + 0x30]
jmp 0x40fb8b
lea ecx, [edi + 4]
mov eax, 0x7fff
cmp word [ecx], ax
je 0x410a8d
push 0
lea eax, [esp + 0x16]
mov byte [esp + 0x16], 0
push eax
push esi
push ebp
mov dl, 1
call fcn.00414d20
add esp, 0x10
cmp byte [esp + 0x12], 0
jne 0x410a8d
and byte [esi], 0xf7
mov byte [edi + 0x11], 1
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x20]
push ebp
push 0
jmp 0x4110ae
mov ecx, dword [esp + 0x2c]
jmp 0x410b17
mov ecx, dword [esp + 0x24]
and ecx, 0x7fff
test byte [0x4fa3de], 0xcc
mov dword [esp + 0x24], ecx
je 0x410bfa
cmp byte [esp + 0x12], 0
jne 0x410bfa
cmp byte [0x4fc899], 0
jne 0x410b52
mov eax, dword [esp + 0x1c]
cmp eax, dword [0x4f9a04]
jne 0x410bfa
test byte [0x4fa3de], 0xc0
mov dl, byte [0x4fa3dc]
je 0x410b8e
test dl, 0xc0
jne 0x410b81
cmp cx, word [0x4fa55c]
jae 0x410b8e
mov eax, dword [0x4fa54c]
movzx ecx, cx
mov eax, dword [eax + ecx*4]
mov al, byte [eax + 0xf]
and al, 0xc0
je 0x410b8a
mov byte [0x4fc898], 1
jmp 0x410bfa
mov ecx, dword [esp + 0x24]
cmp byte [0x4fc898], 0
jne 0x410bfa
mov al, byte [0x4fa3de]
test al, 0xc
je 0x410bfa
test al, 3
jne 0x410bfa
test dl, 0xc
jne 0x410bc4
cmp cx, word [0x4fa55c]
jae 0x410bfa
mov eax, dword [0x4fa54c]
movzx ecx, cx
mov eax, dword [eax + ecx*4]
mov al, byte [eax + 0xf]
and al, 0xc
je 0x410bfa
cmp dword [0x4f9a08], 0
je 0x410bd6
mov byte [0x4fc898], 1
jmp 0x410bfa
movzx eax, word [0x4f8364]
mov ecx, 2
mov dl, byte [0x4f8342]
push 0xffc3d44d
push 0
push 0
push eax
call fcn.0041b1a0
add esp, 0x10
mov eax, dword [esp + 0x24]
movzx ecx, ax
lea eax, [ecx - 0x7ffa]
cmp eax, 4
ja case.default.0x410c10
jmp dword [eax*4 + 0x4110f8]
cmp byte [0x4fc89a], 0
je 0x410451
xor al, al
test byte [0x4fa3de], 4
je 0x410c36
mov edx, 0xa4
jmp 0x410c48
test byte [0x4fa3de], 8
movzx edx, al
mov eax, 0xa5
cmovne edx, eax
cmp byte [0x4fc89a], 0
mov dword [esp + 0x3c], edx
je 0x410cd5
mov eax, 0x7ffb
cmp word [esp + 0x24], ax
je case.0x410c10.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.0041b1a0
add esp, 0x10
cmp byte [edi + 8], 0
je 0x410cc4
cmp bl, 0x5b
je 0x410cc4
cmp bl, 0x5c
je 0x410cc4
cmp byte [esp + 0x134], 0
jne 0x410cc4
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.0041b1a0
add esp, 0x10
mov byte [0x4fc89a], 0
mov edx, 0x7fff
jmp 0x410f7c
cmp bl, 0xa4
je 0x410ce4
mov byte [esp + 0x1b], 0
cmp bl, 0xa5
jne 0x410ce9
mov byte [esp + 0x1b], 1
cmp bl, 0xa0
je 0x410cf7
cmp bl, 0xa1
je 0x410cf7
xor cl, cl
jmp 0x410cf9
mov cl, 1
mov byte [esp + 0x19], cl
cmp bl, 0xa2
je 0x410d0c
mov byte [esp + 0x13], 0
cmp bl, 0xa3
jne 0x410d11
mov byte [esp + 0x13], 1
xor dl, dl
test byte [0x4fa3de], 0x10
mov dword [esp + 0x34], edx
je 0x410d24
mov dl, 0xa0
jmp 0x410d47
test byte [0x4fa3de], 0x20
mov eax, dword [esp + 0x134]
je 0x410d38
mov dl, 0xa1
jmp 0x410d4e
test al, al
jne 0x410d52
test cl, cl
movzx edx, dl
movzx eax, bl
cmovne edx, eax
mov eax, dword [esp + 0x134]
mov dword [esp + 0x34], edx
xor cl, cl
test byte [0x4fa3de], 1
mov dword [esp + 0x30], ecx
je 0x410d68
mov byte [esp + 0x30], 0xa2
jmp 0x410d8e
test byte [0x4fa3de], 2
je 0x410d78
mov byte [esp + 0x30], 0xa3
jmp 0x410d8e
test al, al
jne 0x410d8e
cmp byte [esp + 0x13], 0
movzx ecx, cl
movzx eax, bl
cmovne ecx, eax
mov dword [esp + 0x30], ecx
mov byte [esp + 0x13], 0
test dl, dl
je 0x410db4
push 0xffc3d44d
push 0
push 0
push 0
mov ecx, 1
call fcn.0041b1a0
add esp, 0x10
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x30]
test al, al
je 0x410dd6
push 0xffc3d44d
push 0
push 0
push 0
mov dl, al
mov ecx, 1
call fcn.0041b1a0
add esp, 0x10
cmp byte [esp + 0x1b], 0
je 0x410deb
cmp byte [esp + 0x134], 0
jne 0x410df3
mov al, bl
jmp 0x410def
mov eax, dword [esp + 0x3c]
test al, al
jne 0x410e0a
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.0041b1a0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.0041b1a0
add esp, 0x10
cmp byte [esp + 0x13], 0
je 0x410e4b
cmp byte [esp + 0x19], 0
jne 0x410e4b
mov dl, byte [esp + 0x34]
xor ecx, ecx
push 0xffc3d44d
push 0
push 0
push 0
call fcn.0041b1a0
add esp, 0x10
mov byte [0x4fc89a], 1
mov edx, 0x7fff
jmp 0x410f7c
cmp byte [0x4fc89a], 0
je 0x410451
mov eax, dword [esp + 0x134]
test al, al
jne 0x410ea9
cmp bl, 0xa2
je 0x410e88
cmp bl, 0xa3
je 0x410e88
cmp bl, 0xa0
je 0x410e88
cmp bl, 0xa1
jne 0x410ea9
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.0041b1a0
mov eax, dword [esp + 0x144]
add esp, 0x10
test byte [0x4fa3de], 0xc
je 0x410ec0
test al, al
je 0x410ed7
cmp bl, 0xa4
je 0x410ec0
cmp bl, 0xa5
jne 0x410ed7
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.0041b1a0
add esp, 0x10
mov eax, 0x7ffd
cmp word [esp + 0x24], ax
jne 0x410f38
test byte [0x4fa3de], 0x30
jne 0x410f38
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.0041b1a0
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.0041b1a0
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.0041b1a0
add esp, 0x30
mov edx, 0x7fff
jmp 0x410f7c
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.0041b1a0
add esp, 0x10
mov edx, 0x7fff
jmp 0x410f7c
mov edx, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x40], edx
mov eax, dword [ecx + 4]
test eax, eax
je 0x410f7c
cmp byte [eax], 5
jb 0x410f7c
movzx eax, word [ecx + 0x14]
shl eax, 0x10
or edx, eax
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x38]
mov ecx, 0x68
mov word [eax], cx
mov ecx, dword [esp + 0x134]
test cl, cl
je 0x411036
cmp byte [esp + 0x1a], 0
je 0x410ff4
cmp byte [edi + 9], 0
je 0x410ff4
mov esi, dword [esp + 0x20]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push esi
mov ecx, 1
call fcn.0041b1a0
push 0xffc3d44d
push 0
push 0
push esi
mov dl, bl
mov ecx, 2
call fcn.0041b1a0
mov eax, dword [esp + 0x60]
add esp, 0x20
push 0
push SysReAllocString
push eax
push dword [esp + 0x20]
push ebp
push dword [esp + 0x148]
jmp 0x4110ae
cmp byte [edi + 8], 0
je 0x41100d
cmp byte [edi + 0x11], 0
je 0x411057
push 0
push SysReAllocString
push edx
jmp 0x4110a8
cmp byte [esp + 0x12], 0
je 0x41109c
mov eax, dword [esp + 0x1c]
push edx
push dword [esp + 0x18]
push ebp
push ecx
push dword [esp + 0x30]
mov ecx, eax
push ebx
push dword [esp + 0x140]
jmp 0x40f8fc
mov eax, dword [0x4fa52c]
mov byte [edi + 0x10], 1
test eax, eax
je 0x41104d
cmp byte [eax + 8], 0
je 0x41104d
mov byte [eax + 0x12], 2
cmp byte [esp + 0x12], 0
je 0x411067
or byte [esi], 8
push edx
push dword [esp + 0x18]
push ebp
push ecx
push dword [esp + 0x30]
jmp 0x40fb8b
cmp bl, 0xa4
je 0x411071
cmp bl, 0xa5
jne 0x411094
push 0xffc3d450
push 0
push 0
push dword [esp + 0x2c]
mov dl, bl
mov ecx, 1
call fcn.0041b1a0
mov ecx, dword [esp + 0x144]
add esp, 0x10
test cl, cl
jne 0x41109c
mov byte [edi + 0x11], 1
mov eax, dword [esp + 0x40]
push 0
push SysReAllocString
push eax
push dword [esp + 0x20]
push ebp
push ecx
push ecx
push ebx
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x148]
call fcn.00411110
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret