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

Disassembly:
sub esp, 0x108
mov ax, word [esp + 0x118]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
mov ecx, 0x7fff
movzx edx, ax
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x130]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], edx
cmp ecx, 0xffc3d44f
je 0x405e1e
cmp ecx, 0xffc3d44e
je 0x405e1e
mov byte [esp + 0x13], 0
cmp ecx, 0xffc3d44d
jne 0x405e23
mov byte [esp + 0x13], 1
mov ecx, dword [0x4dc438]
mov ebx, dword [esp + 0x124]
test ecx, ecx
jne 0x405e41
lea ebp, [esp + 0x44]
mov dword [esp + 0x3c], ebp
jmp 0x405f03
mov eax, dword [0x4dc470]
imul ebp, eax, 0xd4
inc eax
add ebp, ecx
xor ecx, ecx
cmp eax, dword [0x4d98dc]
mov dword [esp + 0x3c], ebp
cmovge eax, ecx
mov dword [0x4dc470], eax
mov eax, dword [esp + 0x12c]
mov byte [ebp], bl
mov byte [ebp + 6], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [0x4dc46c], eax
sub ecx, dword [0x4de7fc]
mov dword [0x4de7fc], eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4d4800]
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4d4734]
movss dword [ebp + 8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
lea ecx, [ebp + 0xc]
test esi, esi
je 0x405ee0
cmp esi, dword [0x4dc468]
je 0x405ed9
push esi
push ecx
push 0x418
push dword [0x4dc424]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x405eed
xor eax, eax
mov word [ecx], ax
jmp 0x405eed
mov dword [ecx], 0x2f004e
mov dword [ecx + 4], 0x41
mov ax, word [esp + 0x128]
mov edx, dword [esp + 0x34]
mov dword [0x4dc468], esi
mov esi, dword [esp + 0x1c]
cmp bl, 0xe7
jne 0x405f53
mov ecx, dword [esp + 0x120]
mov edx, esi
push 0x7fff
push ebp
push dword [esp + 0x134]
mov ax, word [ecx + 4]
push 0
mov word [ebp + 2], ax
mov eax, 0x55
push 0xe7
mov word [ebp + 4], ax
push ecx
push dword [esp + 0x134]
mov ecx, edi
call fcn.00407630
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov word [ebp + 2], ax
mov cl, 3
mov al, bl
mov esi, 0x20
add al, 0x64
cmp cl, al
sbb eax, eax
and eax, edx
movzx eax, ax
mov dword [esp + 0x14], eax
cmp edi, dword [0x4dc43c]
jne 0x405fb4
mov dl, byte [esp + 0x134]
and dl, 1
jne 0x405f98
mov al, byte [esp + 0x12c]
movzx ecx, bl
xor al, 1
shl al, 7
mov byte [ecx + 0x4dcdc8], al
mov ecx, dword [esp + 0x12c]
cmp byte [esp + 0x13], 0
je 0x40604a
mov eax, 0x69
jmp 0x406057
mov ecx, dword [esp + 0x134]
mov edx, ecx
mov ebp, dword [0x4de9a0]
movzx eax, bl
shr edx, 4
mov dword [esp + 0x28], eax
and edx, 0xffffff01
mov dword [esp + 0x30], edx
lea eax, [eax + eax*4]
cmp byte [ebp + eax*4 + 8], 0
mov ebp, dword [esp + 0x3c]
jne 0x405f98
test cl, 0x10
jne 0x405f98
cmp bl, 0xa0
je 0x405ff4
cmp bl, 0xa1
jne 0x406019
mov ecx, dword [esp + 0x12c]
test cl, cl
jne 0x406019
cmp bl, 0xa0
mov dword [esp + 0x34], 0x10
mov eax, esi
cmove eax, dword [esp + 0x34]
test byte [0x4dcdc2], al
jne 0x405f9f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x28]
mov dword [0x4de96c], eax
mov dword [0x4de968], eax
mov al, cl
xor al, 1
shl al, 7
mov byte [edx + 0x4dcdc8], al
mov edx, dword [esp + 0x30]
jmp 0x405f9f
mov eax, 0x61
test dl, dl
cmovne esi, eax
movzx eax, si
cmp byte [0x4dcdc0], 0
lea edx, [ebp + 4]
mov dword [esp + 0x34], edx
mov word [edx], ax
je 0x40607c
cmp bl, 0x5b
je 0x406074
cmp bl, 0x5c
jne 0x40607c
test cl, cl
je 0x406f75
cmp byte [0x4de992], 0
mov edx, dword [sym.imp.USER32.dll_FindWindowW]
je 0x406112
cmp bl, 0x1b
jne 0x406112
test cl, cl
jne 0x406112
push 0
push str.32771
call edx
test eax, eax
je 0x40610c
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 0x40610c
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
xor ecx, ecx
call fcn.00411080
mov dl, byte [0x4dcdc5]
mov ecx, 1
push 0xffc3d44d
shr dl, 3
push 0
and dl, 1
push 0
push 0
or dl, 0xa4
call fcn.00411080
add esp, 0x20
push 0
push SysReAllocString
push 0x7fff
push ebp
push 0
push ecx
push 0x1b
jmp 0x407499
mov edx, dword [sym.imp.USER32.dll_FindWindowW]
mov eax, dword [esp + 0x14]
movzx eax, ax
mov dword [esp + 0x28], eax
lea ecx, [eax + eax*4]
mov eax, dword [0x4de9a4]
lea esi, [eax + ecx*4]
mov al, byte [esi + 0x13]
mov byte [esp + 0x1a], al
cmp edi, dword [0x4dc440]
jne 0x40613b
test al, al
jne 0x40614a
mov ecx, dword [0x4de9a0]
movzx eax, bl
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
cmp byte [esp + 0x13], 0
je 0x4061b6
cmp dword [esp + 0x130], 0xffc3d44e
mov eax, dword [esp + 0x12c]
jne 0x406183
test al, al
je 0x406183
cmp dword [0x4dcee0], esi
jne 0x406183
mov byte [esi + 0xd], 0
mov byte [esi + 0x10], 0
mov dword [0x4dcee0], 0
push 0x7fff
push ebp
push eax
push dword [esp + 0x20]
push ebx
push dword [esp + 0x134]
mov edx, dword [esp + 0x34]
mov ecx, edi
push dword [esp + 0x134]
call fcn.00407630
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov ecx, dword [esp + 0x12c]
mov eax, 0x7fff
test cl, cl
jne 0x4061cd
mov byte [esi + 0x11], cl
mov word [esi + 4], ax
cmp edi, dword [0x4dc43c]
jne 0x406220
test bl, bl
jne 0x4061e8
push 0x7fff
push ebp
push ecx
push dword [esp + 0x20]
push 0
jmp 0x40618f
cmp bl, 1
je 0x4061f2
cmp bl, 2
jne 0x406220
cmp dword [0x4dc2ec], 0
jne 0x40624b
push 0
push str.32768
call edx
test eax, eax
je 0x406219
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ddc88]
je 0x406244
mov ecx, dword [esp + 0x12c]
mov edx, dword [0x4dcee0]
test edx, edx
je 0x406278
cmp edx, esi
je 0x406278
test cl, cl
jne 0x406278
cmp edi, dword [0x4dc440]
jne 0x406262
xor eax, eax
cmp byte [esi + 8], al
sete al
jmp 0x40626b
mov ecx, dword [esp + 0x12c]
mov byte [esi + 0x10], 0
push 0x7fff
mov al, cl
xor al, 1
push ebp
mov byte [esi + 0xd], al
push ecx
jmp 0x40618a
mov eax, dword [0x4dcee0]
movzx eax, byte [eax + 8]
test eax, eax
je 0x406278
mov eax, dword [0x4dcee0]
mov byte [eax + 0x12], 1
cmp byte [esi + 9], 0
jne 0x406284
cmp byte [esi + 0xa], 0
je 0x40624f
mov dword [esp + 0x30], 0
mov eax, 0x7fff
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
test cl, cl
je 0x4062cb
mov dh, byte [esi + 0x10]
mov al, byte [esi + 0xd]
mov byte [esp + 0x12], al
movzx eax, word [esi + 4]
mov byte [esp + 0x11], dh
mov edx, 0x7fff
mov byte [esi + 0x10], 0
cmp ax, dx
je 0x4062db
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov word [esi + 4], dx
jmp 0x4062db
mov al, byte [esp + 0x12]
mov byte [esp + 0x12], al
mov al, byte [esp + 0x12]
mov byte [esp + 0x11], al
mov al, cl
xor dl, dl
xor al, 1
mov byte [esi + 0xd], al
cmp edi, dword [0x4dc440]
jne 0x40635b
cmp byte [esi + 8], dl
je 0x406377
mov ecx, dword [0x4de9a0]
cmp byte [ecx + 0xcb5], dl
jne 0x40630f
cmp byte [ecx + 0xcc9], dl
jne 0x40630f
xor al, al
jmp 0x406311
mov al, 1
cmp byte [ecx + 0xcdd], 0
mov byte [ecx + 0x161], al
jne 0x40632d
cmp byte [ecx + 0xcf1], 0
jne 0x40632d
xor al, al
jmp 0x40632f
mov al, 1
cmp byte [ecx + 0xc8d], 0
mov byte [ecx + 0x175], al
jne 0x406351
cmp byte [ecx + 0xca1], 0
jne 0x406351
xor al, al
mov byte [ecx + 0x14d], al
jmp 0x406377
mov al, 1
mov byte [ecx + 0x14d], al
jmp 0x406377
cmp dword [0x4dc440], 0
jne 0x406377
mov cl, 1
call fcn.00413820
mov byte [0x4dcdc4], al
mov dl, 1
mov byte [0x4dcdc5], al
mov eax, dword [esi]
test eax, eax
je 0x406387
cmp dword [eax], 7
mov byte [esp + 0x13], 1
je 0x40638c
mov byte [esp + 0x13], 0
test dl, dl
jne 0x406397
mov cl, 1
call fcn.00413820
mov cl, byte [esi + 9]
mov eax, dword [esp + 0x12c]
test cl, cl
je 0x4064e1
test al, al
jne 0x4064e1
mov edx, dword [0x4dcee0]
test edx, edx
je 0x4063c8
cmp byte [esi + 0xa], al
je 0x4063c8
cmp esi, edx
jne 0x4064e1
cmp cl, 1
jne 0x4063ea
mov dl, byte [esp + 0x1a]
mov ecx, dword [esp + 0x28]
test dl, dl
movzx eax, bl
cmove ecx, eax
call fcn.0040aef0
test al, al
je 0x4063ea
mov dl, 1
jmp 0x4063fd
xor dl, dl
cmp esi, dword [0x4dcee0]
je 0x4063fd
mov dword [0x4dcee0], esi
mov byte [esi + 0x12], dl
cmp byte [esi + 0xa], 0
je 0x40648d
mov al, byte [esi + 8]
mov cl, byte [0x4dcdc4]
test al, al
je 0x406418
not al
and cl, al
test cl, cl
jne 0x406426
test dl, dl
jne 0x406426
test byte [esi + 0xc], 1
je 0x40648d
cmp edi, dword [0x4dc440]
jne 0x406446
cmp byte [esp + 0x1a], 0
je 0x406446
mov eax, dword [0x4de998]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x28]
jmp 0x406456
movzx ecx, cl
movzx eax, bl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4de994]
movzx eax, word [eax + ecx*2]
movzx ecx, ax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ecx
test ax, ax
jns 0x406470
mov word [esi + 4], ax
jmp 0x40649b
and eax, 0x7fff
cmp ax, word [0x4dcf10]
jae 0x406491
mov ecx, eax
mov eax, dword [0x4de99c]
mov ax, word [eax + ecx*2]
mov word [esi + 4], ax
mov ecx, dword [esp + 0x20]
mov eax, 0x7fff
cmp cx, ax
jne 0x4064d8
test dl, dl
je 0x4064ac
or byte [esi + 0xc], 8
mov ecx, 0x23
mov word [ebp + 4], cx
cmp byte [esi + 8], 0
jne 0x406c81
test byte [esi + 0xc], 1
jne 0x406c81
cmp byte [esp + 0x13], 0
jne 0x406c81
test dl, dl
jne 0x406c81
jmp 0x406f71
mov eax, dword [esp + 0x12c]
jmp 0x4064e5
mov ecx, dword [esp + 0x20]
cmp byte [esi + 0xa], 0
mov byte [esp + 0x1b], 0
je 0x40654e
test al, al
je 0x40654e
mov dh, byte [esp + 0x11]
cmp dword [0x4dcee0], esi
jne 0x40650e
test dh, dh
je 0x40654e
mov dword [0x4dcee0], 0
cmp byte [esi + 0xb], 0
jne 0x406549
mov cl, byte [esi + 0xc]
test cl, 8
je 0x406526
xor dl, dl
and cl, 0xf7
mov byte [esi + 0xc], cl
jmp 0x406528
mov dl, 1
test dh, dh
je 0x406183
test dl, dl
je 0x406183
push 0
push SysReAllocString
push 0x7fff
jmp 0x407495
mov byte [esp + 0x1b], 1
cmp byte [esi + 9], 0
je 0x4066b2
test al, al
je 0x4066b2
mov edx, dword [0x4dcee0]
xor eax, eax
cmp edx, esi
cmove edx, eax
mov dword [0x4dcee0], edx
cmp byte [esi + 0xe], al
je 0x406590
push 0xffc3d44d
push eax
push eax
push eax
mov dl, 0x12
mov byte [esi + 0xe], al
lea ecx, [eax + 1]
call fcn.00411080
add esp, 0x10
cmp byte [esi + 0xf], 0
je 0x4065b4
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov byte [esi + 0xf], 0
mov ecx, 1
call fcn.00411080
add esp, 0x10
mov ecx, dword [esp + 0x20]
mov eax, 0x7fff
cmp cx, ax
jne 0x4065e0
mov al, byte [esi + 0xc]
test al, 8
je 0x4065e0
and al, 0xf7
mov byte [esi + 0xc], al
push 0x7fff
push ebp
push dword [esp + 0x134]
jmp 0x40618a
mov dl, byte [esp + 0x13]
mov al, byte [esi + 0x12]
test dl, dl
je 0x406651
cmp al, 2
jne 0x40663b
mov esi, dword [esp + 0x14]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push esi
mov ecx, 1
call fcn.00411080
push 0xffc3d44d
push 0
push 0
push esi
mov dl, bl
mov ecx, 2
call fcn.00411080
add esp, 0x20
push 0
push SysReAllocString
push 0x7fff
push ebp
push dword [esp + 0x13c]
jmp 0x407497
cmp al, 1
jne 0x40667d
push 0x7fff
push ebp
push dword [esp + 0x134]
jmp 0x40618a
test al, al
je 0x40667d
mov eax, 0x7fff
cmp cx, ax
jne 0x40667d
cmp byte [esi + 8], 0
jne 0x4065ce
test byte [esi + 0xc], 1
je 0x406622
push eax
push ebp
push dword [esp + 0x134]
jmp 0x40618a
cmp byte [esi + 0xa], 0
jne 0x4066a1
cmp byte [esi + 8], 0
jne 0x4065ce
test byte [esi + 0xc], 1
jne 0x4065ce
test dl, dl
jne 0x4065ce
jmp 0x406622
cmp byte [esp + 0x12], 0
jne 0x4066b2
cmp byte [esi + 0xb], 0
je 0x4065ce
cmp dword [0x4dcee0], 0
mov byte [esp + 0x11], 0
je 0x406b26
mov edx, dword [esp + 0x12c]
test dl, dl
je 0x4066d9
cmp byte [esi + 0xb], 0
je 0x406b26
mov eax, 0x7fff
cmp cx, ax
jne 0x406dfb
movzx ecx, word [esi + 6]
mov dword [esp + 0x38], 0
mov dword [esp + 0x24], ecx
cmp cx, ax
je 0x40691a
mov eax, dword [0x4dcf00]
movzx ecx, cx
mov ebp, dword [eax + ecx*4]
mov al, byte [ebp + 0x11]
test al, al
jne 0x40671d
cmp word [ebp + 0xa], 0
je 0x40679f
movzx ecx, word [ebp + 0xc]
mov dword [esp + 0x24], ecx
test al, al
je 0x40673a
mov ecx, dword [0x4de9a0]
movzx eax, al
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
jmp 0x406749
movzx eax, word [ebp + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4de9a4]
lea eax, [eax + ecx*4]
cmp byte [eax + 0xd], 0
je 0x40677e
cmp byte [ebp + 0x16], 0
je 0x40676b
test dl, dl
jne 0x406797
mov ax, word [ebp + 4]
mov ecx, dword [esp + 0x38]
mov word [esi + 4], ax
test ecx, ecx
jne 0x4067ab
jmp 0x406782
mov ecx, dword [esp + 0x38]
test dl, dl
jne 0x406782
test ecx, ecx
cmove ecx, ebp
mov dword [esp + 0x38], ecx
jmp 0x406782
mov ecx, dword [esp + 0x38]
mov eax, 0x7fff
cmp word [esp + 0x24], ax
je 0x4067a3
mov ecx, dword [esp + 0x24]
jmp 0x406700
mov ecx, ebp
mov dword [esp + 0x38], ecx
jmp 0x4067a3
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x406912
movzx ebp, byte [ecx + 0x11]
cmp ebp, 0x12
ja case.0x4067bf.1
movzx eax, byte [ebp + 0x4074cc]
jmp dword [eax*4 + 0x4074b8]
mov ebp, dword [0x4de9a0]
mov eax, 0xc80
mov dword [esp + 0x24], 0xc94
cmp byte [ebp + 0xca1], 0
cmovne eax, dword [esp + 0x24]
add eax, ebp
jmp 0x40685a
mov ebp, dword [0x4de9a0]
mov eax, 0xca8
mov dword [esp + 0x24], 0xcbc
cmp byte [ebp + 0xcc9], 0
cmovne eax, dword [esp + 0x24]
add eax, ebp
jmp 0x40685a
mov ebp, dword [0x4de9a0]
mov eax, 0xcd0
mov dword [esp + 0x24], 0xce4
cmp byte [ebp + 0xcf1], 0
cmovne eax, dword [esp + 0x24]
add eax, ebp
jmp 0x40685a
movzx eax, word [ecx + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4de9a4]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x38]
jmp 0x40685a
lea eax, [ebp*4]
add eax, ebp
lea eax, [eax*4]
add eax, dword [0x4de9a0]
mov dword [0x4dcee0], eax
movzx eax, word [ecx + 6]
test ax, ax
je 0x40686e
mov dword [esp + 0x2c], eax
jmp 0x4068e7
movzx eax, word [ecx + 4]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push eax
lea eax, [esp + 0x15]
push eax
lea eax, [esi + 0xc]
push eax
call fcn.0040b170
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x4068fd
mov eax, dword [esp + 0x130]
lea ecx, [eax + 0x3c2c17]
cmp ecx, 0x66
ja 0x4068cb
movzx edx, byte [ebp + 0x18]
mov ecx, 0xffc3d44d
sub ecx, eax
cmp ecx, edx
jg 0x4068cb
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4068c7
mov ecx, 0x69
mov word [eax], cx
xor al, al
jmp 0x4068cd
mov al, 1
xor ecx, ecx
test al, al
cmovne ecx, ebp
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x4068fd
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x12c]
movzx ecx, ax
mov dword [esp + 0x20], eax
mov eax, dword [0x4dcee0]
mov dword [esp + 0x24], ecx
mov byte [eax + 0x12], 2
jmp 0x406916
push 0x7fff
push dword [esp + 0x40]
push dword [esp + 0x134]
jmp 0x40618a
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x3c]
mov eax, 0x7ffe
cmp cx, ax
je 0x406932
mov eax, 0x7ffd
cmp cx, ax
jne 0x406b22
test dl, dl
jne 0x40693a
mov byte [esi + 0x10], 1
test byte [0x4dcdc5], 0xc
jne 0x406961
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00411080
mov edx, dword [esp + 0x13c]
add esp, 0x10
cmp bl, 0xa2
je 0x40696b
cmp bl, 0xa3
jne 0x40698b
test dl, dl
jne 0x40698b
push 0xffc3d44d
push 0
push 0
push dword [esp + 0x20]
mov dl, bl
mov ecx, 1
call fcn.00411080
add esp, 0x10
mov eax, dword [0x4dcee0]
mov ecx, 0x7ffd
mov byte [eax + 0xe], 1
mov eax, dword [esp + 0x24]
cmp ax, cx
jne 0x4069d0
test byte [0x4dcdc5], 0x30
jne 0x4069c2
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.00411080
add esp, 0x10
mov eax, dword [0x4dcee0]
mov byte [eax + 0xf], 1
jmp 0x406a50
mov ecx, 0x7ffe
cmp ax, cx
jne 0x406a50
cmp bl, 0xa0
je 0x4069e4
cmp bl, 0xa1
jne 0x406a0a
cmp byte [esp + 0x12c], 0
jne 0x406a0a
push 0xffc3d44d
push 0
push 0
push dword [esp + 0x20]
mov dl, bl
mov ecx, 1
call fcn.00411080
add esp, 0x10
test byte [0x4dcdc5], 0x10
je 0x406a2d
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa0
mov ecx, 1
call fcn.00411080
add esp, 0x10
test byte [0x4dcdc5], 0x20
je 0x406a50
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa1
mov ecx, 1
call fcn.00411080
add esp, 0x10
test byte [0x4dcdc5], 1
je 0x406a73
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa2
mov ecx, 1
call fcn.00411080
add esp, 0x10
test byte [0x4dcdc5], 2
je 0x406a96
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa3
mov ecx, 1
call fcn.00411080
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00411080
mov eax, 0x7ffd
add esp, 0x10
cmp word [esp + 0x24], ax
jne 0x406af9
mov eax, dword [0x4dcee0]
cmp byte [eax + 0xf], 0
je 0x406af9
cmp bl, 0x60
jb 0x406ad1
cmp bl, 0x69
jbe 0x406ad6
cmp bl, 0x6e
jne 0x406af9
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.00411080
mov eax, dword [0x4dcee0]
add esp, 0x10
mov byte [eax + 0xf], 0
mov eax, dword [esp + 0x12c]
mov ecx, 0x68
mov word [ebp + 4], cx
test al, al
jne 0x406b11
mov byte [esi + 0x11], 1
push 0
push SysReAllocString
push 0x7fff
jmp 0x407495
mov ecx, dword [esp + 0x20]
mov eax, 0x7fff
cmp cx, ax
jne 0x406df4
mov al, byte [esi + 8]
mov dl, byte [0x4dcdc4]
test al, al
je 0x406b45
not al
and dl, al
mov dh, byte [esp + 0x1a]
cmp edi, dword [0x4dc440]
jne 0x406b71
test dh, dh
je 0x406b71
mov eax, dword [0x4de998]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x28]
movzx eax, word [eax + ecx*2]
movzx ecx, bl
mov dword [esp + 0x24], ecx
jmp 0x406b89
movzx eax, bl
movzx ecx, dl
shl ecx, 8
mov dword [esp + 0x24], eax
add ecx, eax
mov eax, dword [0x4de994]
movzx eax, word [eax + ecx*2]
movzx ecx, ax
mov ebp, 0x7fff
mov dword [esp + 0x34], ecx
cmp ax, bp
mov ebp, dword [esp + 0x3c]
movzx ecx, ax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x34]
movzx ecx, cx
jne 0x406c35
cmp byte [0x4de992], 0
mov eax, dword [esp + 0x34]
movzx ecx, ax
je 0x406c35
movzx ecx, ax
cmp bl, 9
je 0x406c35
and dl, 0xf3
cmp edi, dword [0x4dc440]
jne 0x406bec
test dh, dh
je 0x406bec
mov eax, dword [0x4de998]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x28]
jmp 0x406bfb
mov eax, dword [0x4de994]
movzx ecx, dl
shl ecx, 8
add ecx, dword [esp + 0x24]
movzx eax, word [eax + ecx*2]
movzx edx, ax
movzx ecx, ax
and eax, 0x7fff
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], edx
mov edx, 0x7ff9
cmp ax, dx
jbe 0x406c26
mov edx, 0x7fff
cmp ax, dx
jb 0x406c35
mov eax, 0x7fff
mov dword [esp + 0x20], eax
mov ecx, eax
mov dword [esp + 0x2c], eax
movzx eax, cx
test ax, ax
jns 0x406c8e
mov edx, dword [esp + 0x12c]
test dl, dl
jne 0x406d9d
mov eax, dword [esp + 0x20]
mov word [esi + 4], ax
lea ecx, [esi + 4]
mov eax, 0x7fff
cmp word [ecx], ax
je 0x406c81
push 0
lea eax, [esp + 0x15]
mov dl, 1
push eax
lea eax, [esi + 0xc]
push eax
call fcn.0040b170
add esp, 0xc
cmp byte [esp + 0x11], 0
je 0x406f75
push 0x7fff
push ebp
push 0
jmp 0x40618a
mov ecx, 0x7fff
cmp ax, cx
je 0x406dab
mov edx, dword [esp + 0x12c]
and eax, ecx
test dl, dl
je 0x406d85
cmp ax, word [0x4dcf10]
jae 0x406d7c
add eax, eax
mov ebx, 0x7fff
mov dword [esp + 0x28], eax
mov eax, dword [0x4de99c]
mov ecx, dword [esp + 0x28]
cmp word [ecx + eax], bx
mov ebx, dword [esp + 0x124]
je 0x406d7c
cmp byte [esp + 0x1b], 0
jne 0x406d14
lea eax, [ebp + 4]
push eax
lea eax, [esp + 0x15]
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [esp + 0x38]
call fcn.0040b170
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x406d26
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x12c]
mov eax, dword [0x4de99c]
movzx ecx, word [ecx + eax]
mov dword [esp + 0x2c], ecx
jmp 0x406da1
mov eax, dword [esp + 0x130]
add eax, 0x3c2c17
cmp eax, 0x66
ja 0x406d5e
movzx ecx, byte [edx + 0x18]
mov eax, 0xffc3d44d
sub eax, dword [esp + 0x130]
cmp eax, ecx
jg 0x406d5e
lea eax, [ebp + 4]
test eax, eax
je 0x406d5a
mov ecx, 0x69
mov word [eax], cx
xor al, al
jmp 0x406d60
mov al, 1
xor ecx, ecx
test al, al
cmovne ecx, edx
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x406d09
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x12c]
jmp 0x406da1
cmp byte [esp + 0x1b], 0
je 0x406d9d
jmp 0x406dab
cmp ax, word [0x4dcf10]
jae 0x406d9d
mov ecx, eax
mov eax, dword [0x4de99c]
mov ax, word [eax + ecx*2]
mov word [esi + 4], ax
mov ecx, dword [esp + 0x20]
mov eax, 0x7fff
cmp cx, ax
jne 0x406dfb
mov eax, dword [esp + 0x12c]
test al, al
je 0x406c54
cmp byte [esi + 8], 0
jne 0x406183
test byte [esi + 0xc], 1
jne 0x406183
cmp byte [esi + 9], 0
je 0x406183
cmp byte [esp + 0x13], 0
jne 0x406183
push 0
push SysReAllocString
push 0x7fff
jmp 0x407495
mov edx, dword [esp + 0x12c]
lea eax, [esi + 0xc]
mov dword [esp + 0x3c], eax
mov al, byte [eax]
test al, 8
je 0x406e16
test dl, dl
je 0x406e16
and al, 0xf7
mov byte [esp + 0x11], 1
mov byte [esi + 0xc], al
mov eax, ecx
and eax, 0x7fff
cmp ax, word [0x4dcf10]
jae 0x406e9e
cmp dword [esp + 0x30], 0
jne 0x406e9e
lea eax, [ebp + 4]
push eax
lea eax, [esp + 0x15]
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [esp + 0x38]
call fcn.0040b170
mov edx, eax
add esp, 0xc
test edx, edx
je 0x406f18
mov ecx, dword [esp + 0x130]
add ecx, 0x3c2c17
cmp ecx, 0x66
ja 0x406e89
movzx ecx, byte [edx + 0x18]
mov eax, 0xffc3d44d
sub eax, dword [esp + 0x130]
cmp eax, ecx
jg 0x406e89
lea eax, [ebp + 4]
test eax, eax
je 0x406e85
mov ecx, 0x69
mov word [eax], cx
xor al, al
jmp 0x406e8b
mov al, 1
xor ecx, ecx
test al, al
cmovne ecx, edx
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x406f18
mov ecx, dword [esp + 0x2c]
and ecx, 0x7fff
test byte [0x4dcdc5], 0xcc
mov dword [esp + 0x20], ecx
je 0x406ff9
cmp byte [esp + 0x11], 0
jne 0x406ff9
cmp byte [0x4de991], 0
jne 0x406ed5
cmp edi, dword [0x4dc43c]
jne 0x406ff9
test byte [0x4dcdc5], 0xc0
mov dl, byte [0x4dcdc3]
je 0x406f8d
test dl, 0xc0
jne 0x406f0c
cmp cx, word [0x4dcf10]
jae 0x406f8d
mov eax, dword [0x4dcf00]
movzx ecx, cx
mov eax, dword [eax + ecx*4]
mov al, byte [eax + 0xf]
and al, 0xc0
je 0x406f89
mov byte [0x4de990], 1
jmp 0x406ff9
cmp word [ebp + 4], 0x69
je 0x4065ce
mov eax, dword [esp + 0x12c]
test al, al
je 0x406f37
cmp byte [esi + 0x11], 0
jmp 0x406532
lea ecx, [esi + 4]
mov eax, 0x7fff
cmp word [ecx], ax
je 0x406c81
push 0
lea eax, [esp + 0x15]
mov byte [esp + 0x15], 0
push eax
lea eax, [esi + 0xc]
mov dl, 1
push eax
call fcn.0040b170
add esp, 0xc
cmp byte [esp + 0x11], 0
jne 0x406c81
and byte [esi + 0xc], 0xf7
mov byte [esi + 0x11], 1
push 0
push SysReAllocString
push 0x7fff
push ebp
push 0
jmp 0x407497
mov ecx, dword [esp + 0x20]
cmp byte [0x4de990], 0
jne 0x406ff9
mov al, byte [0x4dcdc5]
test al, 0xc
je 0x406ff9
test al, 3
jne 0x406ff9
test dl, 0xc
jne 0x406fc3
cmp cx, word [0x4dcf10]
jae 0x406ff9
mov eax, dword [0x4dcf00]
movzx ecx, cx
mov eax, dword [eax + ecx*4]
mov al, byte [eax + 0xf]
and al, 0xc
je 0x406ff9
cmp dword [0x4dc440], 0
je 0x406fd5
mov byte [0x4de990], 1
jmp 0x406ff9
movzx eax, word [0x4daaf4]
mov ecx, 2
mov dl, byte [0x4daacf]
push 0xffc3d44d
push 0
push 0
push eax
call fcn.00411080
add esp, 0x10
mov eax, dword [esp + 0x20]
movzx ecx, ax
lea eax, [ecx - 0x7ffa]
cmp eax, 4
ja case.default.0x40700f
jmp dword [eax*4 + 0x4074e0]
cmp byte [0x4de992], 0
je 0x4065ce
xor al, al
test byte [0x4dcdc5], 4
je 0x407035
mov edx, 0xa4
jmp 0x407047
test byte [0x4dcdc5], 8
movzx edx, al
mov eax, 0xa5
cmovne edx, eax
cmp byte [0x4de992], 0
mov dword [esp + 0x34], edx
je 0x4070d0
mov eax, 0x7ffb
cmp word [esp + 0x20], ax
je case.0x40700f.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.00411080
add esp, 0x10
cmp byte [esi + 8], 0
je 0x4070bf
cmp bl, 0x5b
je 0x4070bf
cmp bl, 0x5c
je 0x4070bf
cmp byte [esp + 0x12c], 0
jne 0x4070bf
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.00411080
add esp, 0x10
mov byte [0x4de992], 0
mov edx, 0x7fff
jmp 0x407371
cmp bl, 0xa4
je 0x4070df
mov byte [esp + 0x1b], 0
cmp bl, 0xa5
jne 0x4070e4
mov byte [esp + 0x1b], 1
cmp bl, 0xa0
je 0x4070f2
cmp bl, 0xa1
je 0x4070f2
xor cl, cl
jmp 0x4070f4
mov cl, 1
mov byte [esp + 0x1a], cl
cmp bl, 0xa2
je 0x407107
mov byte [esp + 0x12], 0
cmp bl, 0xa3
jne 0x40710c
mov byte [esp + 0x12], 1
xor dl, dl
test byte [0x4dcdc5], 0x10
mov dword [esp + 0x30], edx
je 0x40711f
mov dl, 0xa0
jmp 0x407142
test byte [0x4dcdc5], 0x20
mov eax, dword [esp + 0x12c]
je 0x407133
mov dl, 0xa1
jmp 0x407149
test al, al
jne 0x40714d
test cl, cl
movzx edx, dl
movzx eax, bl
cmovne edx, eax
mov eax, dword [esp + 0x12c]
mov dword [esp + 0x30], edx
xor cl, cl
test byte [0x4dcdc5], 1
mov dword [esp + 0x28], ecx
je 0x407163
mov byte [esp + 0x28], 0xa2
jmp 0x407189
test byte [0x4dcdc5], 2
je 0x407173
mov byte [esp + 0x28], 0xa3
jmp 0x407189
test al, al
jne 0x407189
cmp byte [esp + 0x12], 0
movzx ecx, cl
movzx eax, bl
cmovne ecx, eax
mov dword [esp + 0x28], ecx
mov byte [esp + 0x12], 0
test dl, dl
je 0x4071af
push 0xffc3d44d
push 0
push 0
push 0
mov ecx, 1
call fcn.00411080
add esp, 0x10
mov byte [esp + 0x12], 1
mov eax, dword [esp + 0x28]
test al, al
je 0x4071d1
push 0xffc3d44d
push 0
push 0
push 0
mov dl, al
mov ecx, 1
call fcn.00411080
add esp, 0x10
cmp byte [esp + 0x1b], 0
je 0x4071e6
cmp byte [esp + 0x12c], 0
jne 0x4071ee
mov al, bl
jmp 0x4071ea
mov eax, dword [esp + 0x34]
test al, al
jne 0x407205
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00411080
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00411080
add esp, 0x10
cmp byte [esp + 0x12], 0
je 0x407246
cmp byte [esp + 0x1a], 0
jne 0x407246
mov dl, byte [esp + 0x30]
xor ecx, ecx
push 0xffc3d44d
push 0
push 0
push 0
call fcn.00411080
add esp, 0x10
mov byte [0x4de992], 1
mov edx, 0x7fff
jmp 0x407371
cmp byte [0x4de992], 0
je 0x4065ce
mov eax, dword [esp + 0x12c]
test al, al
jne 0x4072a4
cmp bl, 0xa2
je 0x407283
cmp bl, 0xa3
je 0x407283
cmp bl, 0xa0
je 0x407283
cmp bl, 0xa1
jne 0x4072a4
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.00411080
mov eax, dword [esp + 0x13c]
add esp, 0x10
test byte [0x4dcdc5], 0xc
je 0x4072bb
test al, al
je 0x4072d2
cmp bl, 0xa4
je 0x4072bb
cmp bl, 0xa5
jne 0x4072d2
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00411080
add esp, 0x10
mov eax, 0x7ffd
mov byte [esp + 0x12], 0
cmp word [esp + 0x20], ax
jne 0x407308
test byte [0x4dcdc5], 0x30
jne 0x407308
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.00411080
add esp, 0x10
mov byte [esp + 0x12], 1
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00411080
add esp, 0x10
cmp byte [esp + 0x12], 0
je 0x4070c6
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.00411080
add esp, 0x10
mov edx, 0x7fff
jmp 0x407371
mov edx, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x40], edx
mov eax, dword [ecx + 4]
test eax, eax
je 0x407371
cmp byte [eax], 5
jb 0x407371
movzx eax, word [ecx + 0x14]
shl eax, 0x10
or edx, eax
mov dword [esp + 0x40], edx
cmp byte [esp + 0x13], 0
mov ecx, 0x68
mov eax, dword [esp + 0x12c]
mov word [ebp + 4], cx
je 0x4073e2
test al, al
je 0x407424
cmp byte [esi + 9], 0
je 0x4073e2
mov esi, dword [esp + 0x14]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push esi
mov ecx, 1
call fcn.00411080
push 0xffc3d44d
push 0
push 0
push esi
mov dl, bl
mov ecx, 2
call fcn.00411080
mov ecx, dword [esp + 0x60]
add esp, 0x20
push 0
push SysReAllocString
push ecx
push ebp
push dword [esp + 0x13c]
jmp 0x407497
test al, al
je 0x407424
cmp byte [esi + 8], 0
je 0x407405
cmp byte [esi + 0x11], 0
je 0x4073ff
push 0
push SysReAllocString
push edx
jmp 0x407495
push edx
jmp 0x406188
cmp byte [esp + 0x11], 0
je 0x407481
push edx
mov edx, dword [esp + 0x20]
push ebp
push eax
push dword [esp + 0x20]
push ebx
push dword [esp + 0x134]
jmp 0x405f37
mov edx, dword [0x4dcee0]
mov byte [esi + 0x10], 1
test edx, edx
je 0x40743c
cmp byte [edx + 8], 0
je 0x40743c
mov byte [edx + 0x12], 2
cmp byte [esp + 0x11], 0
je 0x407454
mov ecx, dword [esp + 0x3c]
or byte [ecx], 8
mov ecx, dword [esp + 0x40]
push ecx
jmp 0x406188
cmp bl, 0xa4
je 0x40745e
cmp bl, 0xa5
jne 0x407481
push 0xffc3d450
push 0
push 0
push dword [esp + 0x20]
mov dl, bl
mov ecx, 1
call fcn.00411080
mov eax, dword [esp + 0x13c]
add esp, 0x10
test al, al
jne 0x407489
mov byte [esi + 0x11], 1
mov ecx, dword [esp + 0x40]
push 0
push SysReAllocString
push ecx
push ebp
push eax
push ecx
push ebx
mov edx, dword [esp + 0x13c]
mov ecx, edi
call fcn.00407500
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret