Function at 0x40f7e0
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 0x40f82c
cmp edx, 0xffc3d44e
je 0x40f82c
mov byte [esp + 0x1a], 0
cmp edx, 0xffc3d44d
jne 0x40f831
mov byte [esp + 0x1a], 1
mov ecx, dword [0x51eaf0]
mov ebx, dword [esp + 0x12c]
test ecx, ecx
jne 0x40f84f
lea eax, [esp + 0x4c]
mov dword [esp + 0x14], eax
jmp 0x40f913
mov eax, dword [0x51eb68]
imul esi, eax, 0xd4
inc eax
add esi, ecx
xor ecx, ecx
cmp eax, dword [0x51b990]
mov dword [esp + 0x14], esi
cmovge eax, ecx
mov dword [0x51eb68], 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 [0x51eb64], eax
sub ecx, dword [0x5217e4]
mov dword [0x5217e4], eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x514b70]
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x514aa4]
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 0x40f8f5
cmp esi, dword [0x51eb60]
je 0x40f8ee
push esi
push ecx
push 0x418
push dword [0x51ead8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x14]
jmp 0x40f902
xor edx, edx
mov word [ecx], dx
jmp 0x40f902
mov dword [ecx], 0x2f004e
mov dword [ecx + 4], 0x41
mov edx, dword [esp + 0x138]
mov dword [0x51eb60], esi
mov esi, dword [esp + 0x1c]
cmp bl, 0xe7
jne 0x40f96a
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.004112b0
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 [0x51eaf4]
mov esi, dword [0x521998]
movzx eax, ax
mov dword [esp + 0x20], eax
jne 0x40f9c8
mov cl, byte [esp + 0x13c]
mov edx, dword [esp + 0x134]
and cl, 1
mov dword [esp + 0x30], ecx
jne 0x40fa5c
movzx ecx, bl
mov al, dl
xor al, 1
shl al, 7
mov byte [ecx + 0x51f4d0], al
mov ecx, dword [esp + 0x30]
jmp 0x40fa5c
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 0x40fa55
test dl, 0x10
jne 0x40fa55
cmp bl, 0xa0
je 0x40fa00
cmp bl, 0xa1
jne 0x40fa25
mov edx, dword [esp + 0x134]
test dl, dl
jne 0x40fa25
cmp bl, 0xa0
mov dword [esp + 0x3c], 0x10
mov eax, edi
cmove eax, dword [esp + 0x3c]
test byte [0x51eb93], al
jne 0x40fa5c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x134]
mov ecx, dword [esp + 0x30]
mov esi, dword [0x521998]
mov dword [0x521954], eax
mov dword [0x521950], eax
mov al, dl
xor al, 1
shl al, 7
mov byte [ebp + 0x51f4d0], al
jmp 0x40fa5c
mov edx, dword [esp + 0x134]
cmp byte [esp + 0x1a], 0
je 0x40fa6a
mov eax, 0x69
jmp 0x40fa77
mov eax, 0x61
test cl, cl
cmovne edi, eax
movzx eax, di
cmp byte [0x51eb8f], 0
mov edi, dword [esp + 0x14]
lea ecx, [edi + 4]
mov word [ecx], ax
mov dword [esp + 0x38], ecx
je 0x40fab8
cmp bl, 0x5b
je 0x40fa98
cmp bl, 0x5c
jne 0x40fab8
test dl, dl
jne 0x40fab8
mov ebp, dword [esp + 0x138]
push 0
push SysReAllocString
push 0x7fff
push edi
push ebp
push 0
jmp 0x4110fe
cmp byte [0x52198a], 0
mov ebp, dword [sym.imp.USER32.dll_FindWindowW]
je 0x40fb5e
cmp bl, 0x1b
jne 0x40fb5e
test dl, dl
jne 0x40fb5e
push 0
push str.32771
call ebp
test eax, eax
je 0x40fb58
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 0x40fb58
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
xor ecx, ecx
call fcn.0041b1b0
mov dl, byte [0x51f4ce]
mov ecx, 1
push 0xffc3d44d
shr dl, 3
push 0
and dl, 1
push 0
push 0
or dl, 0xa4
call fcn.0041b1b0
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 0x411100
mov esi, dword [0x521998]
mov edx, dword [esp + 0x20]
movzx eax, dx
mov dword [esp + 0x30], eax
lea ecx, [eax + eax*4]
mov eax, dword [0x52199c]
lea edi, [eax + ecx*4]
mov eax, dword [esp + 0x1c]
mov cl, byte [edi + 0x13]
mov byte [esp + 0x19], cl
cmp eax, dword [0x51eaf8]
jne 0x40fb8b
test cl, cl
jne 0x40fb94
movzx eax, bl
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp byte [esp + 0x1a], 0
je 0x40fc05
mov ecx, dword [esp + 0x138]
mov eax, dword [esp + 0x134]
cmp ecx, 0xffc3d44e
jne 0x40fbcf
test al, al
je 0x40fbcf
cmp dword [0x51f61c], edi
jne 0x40fbcf
mov byte [edi + 0xd], 0
mov byte [edi + 0x10], 0
mov dword [0x51f61c], 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.004112b0
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 0x40fc20
mov byte [edi + 0x11], cl
mov word [edi + 4], ax
mov esi, dword [esp + 0x1c]
cmp esi, dword [0x51eaf4]
jne 0x40fca8
test bl, bl
jne 0x40fc6c
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.004112b0
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
cmp bl, 1
je 0x40fc76
cmp bl, 2
jne 0x40fca8
cmp dword [0x51eaa8], 0
jne 0x40fcd6
push 0
push str.32768
call ebp
test eax, eax
je 0x40fc9d
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x5203dc]
je 0x40fccb
mov ecx, dword [esp + 0x134]
mov edx, dword [esp + 0x20]
mov eax, dword [0x51f61c]
test eax, eax
je 0x40fd10
cmp eax, edi
je 0x40fd10
test cl, cl
jne 0x40fd10
cmp esi, dword [0x51eaf8]
jne 0x40fcfa
xor eax, eax
cmp byte [edi + 8], al
sete al
jmp 0x40fd03
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 0x40fc45
mov eax, dword [0x51f61c]
movzx eax, byte [eax + 8]
test eax, eax
je 0x40fd10
mov eax, dword [0x51f61c]
mov byte [eax + 0x12], 1
cmp byte [edi + 9], 0
jne 0x40fd1c
cmp byte [edi + 0xa], 0
je 0x40fcda
mov dword [esp + 0x34], 0
mov ebp, 0x7fff
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
test cl, cl
je 0x40fd62
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 0x40fd72
mov ebp, eax
mov word [edi + 4], dx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
jmp 0x40fd72
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 [0x51eaf8]
jne 0x40fdf1
cmp byte [edi + 8], dl
je 0x40fe0d
mov eax, dword [0x521998]
cmp byte [eax + 0xcb5], dl
jne 0x40fda5
cmp byte [eax + 0xcc9], dl
jne 0x40fda5
xor cl, cl
jmp 0x40fda7
mov cl, 1
cmp byte [eax + 0xcdd], 0
mov byte [eax + 0x161], cl
jne 0x40fdc3
cmp byte [eax + 0xcf1], 0
jne 0x40fdc3
xor cl, cl
jmp 0x40fdc5
mov cl, 1
cmp byte [eax + 0xc8d], 0
mov byte [eax + 0x175], cl
jne 0x40fde7
cmp byte [eax + 0xca1], 0
jne 0x40fde7
xor cl, cl
mov byte [eax + 0x14d], cl
jmp 0x40fe0d
mov cl, 1
mov byte [eax + 0x14d], cl
jmp 0x40fe0d
cmp dword [0x51eaf8], 0
jne 0x40fe0d
mov cl, 1
call fcn.0041da40
mov byte [0x51f4cd], al
mov dl, 1
mov byte [0x51f4ce], al
mov eax, dword [edi]
test eax, eax
je 0x40fe1d
cmp dword [eax], 7
mov byte [esp + 0x1a], 1
je 0x40fe22
mov byte [esp + 0x1a], 0
test dl, dl
jne 0x40fe2d
mov cl, 1
call fcn.0041da40
mov cl, byte [edi + 9]
mov eax, dword [esp + 0x134]
test cl, cl
je 0x4100c1
test al, al
jne 0x4100c1
mov eax, dword [0x51f61c]
test eax, eax
je 0x40fe5e
cmp byte [edi + 0xa], 0
je 0x40fe5e
cmp edi, eax
jne 0x4100ba
cmp cl, 1
jne 0x40ff09
cmp byte [esp + 0x19], 0
mov ecx, dword [esp + 0x30]
jne 0x40fe75
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 [0x51f64c]
jae 0x40ffed
mov cl, byte [0x51eb5c]
nop
cmp byte [esp + 0x19], 0
mov eax, dword [0x51f63c]
mov ebp, dword [eax + edx*4]
je 0x40fed5
movzx eax, word [ebp + 0xa]
jmp 0x40fed9
movzx eax, byte [ebp + 0x11]
cmp dword [esp + 0x44], eax
je 0x40fee8
test byte [ebp + 0xe], ch
je 0x40ffd5
cmp word [ebp + 6], 0
je 0x40ff74
cmp byte [ebp + 0x19], 0
je 0x40ffd5
test cl, cl
jne 0x40ffd5
mov esi, dword [esp + 0x1c]
xor dl, dl
cmp edi, dword [0x51f61c]
je 0x40ff1c
mov dword [0x51f61c], edi
mov byte [edi + 0x12], dl
cmp byte [edi + 0xa], 0
je 0x41003d
mov al, byte [edi + 8]
mov cl, byte [0x51f4cd]
test al, al
je 0x40ff37
not al
and cl, al
test cl, cl
jne 0x40ff49
test dl, dl
jne 0x40ff49
test byte [edi + 0xc], 1
je 0x41003d
cmp esi, dword [0x51eaf8]
jne 0x40fff4
cmp byte [esp + 0x19], 0
je 0x40fff4
mov eax, dword [0x521990]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x30]
jmp 0x410004
mov esi, dword [ebp + 0x20]
mov eax, esi
test eax, eax
je 0x40ffd5
nop dword [eax]
cmp byte [eax + 0x1c], 0
jne 0x40ff90
mov eax, dword [eax + 8]
test eax, eax
jne 0x40ff80
jmp 0x40ffd5
cmp byte [esi + 0x1c], 0
je 0x40ffc6
test cl, cl
je 0x40ffa5
mov ecx, esi
call fcn.0049f3c0
test al, al
je 0x40ffc0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40ff05
mov edx, dword [ebp + 0x1c]
call fcn.00414360
test eax, eax
jne 0x40ff05
mov cl, byte [0x51eb5c]
mov esi, dword [esi + 8]
test esi, esi
jne 0x40ff90
mov edx, dword [esp + 0x3c]
mov ch, byte [esp + 0x1b]
movzx eax, word [0x51f64c]
inc edx
mov dword [esp + 0x3c], edx
cmp edx, eax
jl 0x40fec0
mov esi, dword [esp + 0x1c]
mov dl, 1
jmp 0x40ff1c
movzx ecx, cl
movzx eax, bl
shl ecx, 8
add ecx, eax
mov eax, dword [0x52198c]
movzx eax, word [eax + ecx*2]
movzx ebp, ax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
test ax, ax
jns 0x41001e
mov word [edi + 4], ax
jmp 0x41004b
and eax, 0x7fff
cmp ax, word [0x51f64c]
jae 0x410041
mov ecx, eax
mov eax, dword [0x521994]
mov ax, word [eax + ecx*2]
mov word [edi + 4], ax
jmp 0x410041
mov ebp, dword [esp + 0x24]
mov eax, 0x7fff
cmp bp, ax
jne 0x4100ba
test dl, dl
je 0x41005f
mov eax, dword [esp + 0x38]
mov ecx, 0x23
or byte [edi + 0xc], 8
mov word [eax], cx
cmp byte [edi + 8], 0
jne 0x41009d
test byte [edi + 0xc], 1
jne 0x41009d
cmp byte [esp + 0x1a], 0
jne 0x41009d
test dl, dl
jne 0x41009d
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 0x411104
mov ebp, dword [esp + 0x138]
push 0x7fff
push dword [esp + 0x18]
push ebp
push 0
push dword [esp + 0x30]
push ebx
jmp 0x40fc45
mov eax, dword [esp + 0x134]
cmp byte [edi + 0xa], 0
mov byte [esp + 0x1b], 0
je 0x410157
test al, al
je 0x410157
mov ch, byte [esp + 0x12]
cmp dword [0x51f61c], edi
jne 0x4100f2
test ch, ch
je 0x410157
mov dword [0x51f61c], 0
cmp byte [edi + 0xb], 0
jne 0x410152
mov cl, byte [edi + 0xc]
test cl, 8
je 0x41010a
xor dl, dl
and cl, 0xf7
mov byte [edi + 0xc], cl
jmp 0x41010c
mov dl, 1
test ch, ch
je 0x410136
test dl, dl
je 0x410136
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 0x411104
mov ebp, dword [esp + 0x138]
push 0x7fff
push dword [esp + 0x18]
push ebp
push eax
push dword [esp + 0x30]
push ebx
jmp 0x40fc45
mov byte [esp + 0x1b], 1
cmp byte [edi + 9], 0
je 0x4102e5
test al, al
je 0x4102e5
mov eax, dword [0x51f61c]
xor ecx, ecx
cmp eax, edi
cmove eax, ecx
mov dword [0x51f61c], eax
cmp byte [edi + 0xe], cl
je 0x410199
push 0xffc3d44d
push ecx
push ecx
mov byte [edi + 0xe], cl
mov dl, 0x12
push ecx
mov ecx, 1
call fcn.0041b1b0
add esp, 0x10
cmp byte [edi + 0xf], 0
je 0x4101bd
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov byte [edi + 0xf], 0
mov ecx, 1
call fcn.0041b1b0
add esp, 0x10
mov edx, 0x7fff
cmp bp, dx
jne 0x4101f5
mov al, byte [edi + 0xc]
test al, 8
je 0x4101f5
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 0x40fc45
mov cl, byte [esp + 0x1a]
mov al, byte [edi + 0x12]
test cl, cl
je 0x41028f
cmp al, 2
jne 0x410263
mov ebp, dword [esp + 0x20]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push ebp
mov ecx, 1
call fcn.0041b1b0
push 0xffc3d44d
push 0
push 0
push ebp
mov dl, bl
mov ecx, 2
call fcn.0041b1b0
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 0x411104
cmp al, 1
je 0x4101d3
cmp byte [edi + 0xa], 0
jne 0x4102d4
cmp byte [edi + 8], 0
jne 0x4101d3
test byte [edi + 0xc], 1
jne 0x4101d3
test cl, cl
jne 0x4101d3
jmp 0x41023b
test al, al
je 0x41026b
cmp bp, dx
jne 0x41026b
cmp byte [edi + 8], 0
jne 0x4101d3
test byte [edi + 0xc], 1
mov ebp, dword [esp + 0x138]
jne 0x4101da
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x20]
push ebp
push dword [esp + 0x148]
push ecx
push ebx
mov ecx, esi
jmp 0x411104
cmp byte [esp + 0x13], 0
jne 0x4102e5
cmp byte [edi + 0xb], 0
je 0x4101d3
cmp dword [0x51f61c], 0
mov edx, 0x7ffd
mov byte [esp + 0x12], 0
je 0x4106f0
mov ecx, dword [esp + 0x134]
test cl, cl
je 0x410311
cmp byte [edi + 0xb], 0
je 0x4106f0
mov eax, 0x7fff
cmp bp, ax
jne 0x410a00
movzx ebp, word [edi + 6]
xor esi, esi
cmp bp, ax
je 0x4104db
nop
mov eax, dword [0x51f63c]
movzx ecx, bp
mov edx, dword [eax + ecx*4]
mov al, byte [edx + 0x11]
test al, al
jne 0x410380
cmp word [edx + 0xa], 0
je 0x4103ba
movzx ebp, word [edx + 0xc]
movzx eax, word [edx + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x52199c]
lea eax, [eax + ecx*4]
cmp byte [eax + 0xd], 0
je 0x4103a8
cmp byte [edx + 0x16], 0
je 0x410399
cmp byte [esp + 0x134], 0
jne 0x4103b8
mov ax, word [edx + 4]
mov word [edi + 4], ax
test esi, esi
jne 0x4103c2
jmp 0x4103a8
movzx ebp, word [edx + 0xc]
test al, al
je 0x41034d
mov ecx, dword [0x521998]
movzx eax, al
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
jmp 0x41035c
cmp byte [esp + 0x134], 0
jne 0x4103a8
test esi, esi
cmove esi, edx
mov eax, 0x7fff
cmp bp, ax
jne 0x410330
jmp 0x4103ba
mov esi, edx
test esi, esi
je 0x4104cf
movzx ecx, byte [esi + 0x11]
cmp ecx, 0x12
ja case.0x4103d6.1
movzx eax, byte [ecx + 0x411134]
jmp dword [eax*4 + 0x411120]
mov ecx, dword [0x521998]
mov eax, 0xc80
mov edx, 0xc94
cmp byte [ecx + 0xca1], 0
cmovne eax, edx
add eax, ecx
jmp 0x410454
mov ecx, dword [0x521998]
mov eax, 0xca8
mov edx, 0xcbc
cmp byte [ecx + 0xcc9], 0
cmovne eax, edx
add eax, ecx
jmp 0x410454
mov ecx, dword [0x521998]
mov eax, 0xcd0
mov edx, 0xce4
cmp byte [ecx + 0xcf1], 0
cmovne eax, edx
add eax, ecx
jmp 0x410454
movzx eax, word [esi + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x52199c]
lea eax, [eax + ecx*4]
jmp 0x410454
lea eax, [ecx + ecx*4]
mov ecx, dword [0x521998]
lea eax, [ecx + eax*4]
mov dword [0x51f61c], eax
movzx eax, word [esi + 6]
test ax, ax
je 0x410468
mov dword [esp + 0x2c], eax
jmp 0x4104bf
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.00414d90
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
jne 0x4104bb
push 0x7fff
push dword [esp + 0x18]
push ebp
push dword [esp + 0x140]
push dword [esp + 0x30]
jmp 0x40fbdb
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
movzx ebp, ax
mov eax, dword [0x51f61c]
mov byte [eax + 0x12], 2
mov ecx, dword [esp + 0x134]
mov edx, 0x7ffd
mov eax, 0x7ffe
cmp bp, ax
je 0x4104ee
cmp bp, dx
jne 0x4106ec
test cl, cl
jne 0x4104f6
mov byte [edi + 0x10], 1
test byte [0x51f4ce], 0xc
jne 0x41051d
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.0041b1b0
mov ecx, dword [esp + 0x144]
add esp, 0x10
cmp bl, 0xa2
je 0x410527
cmp bl, 0xa3
jne 0x41054a
mov esi, dword [esp + 0x20]
test cl, cl
jne 0x41054e
push 0xffc3d44d
push 0
push 0
push esi
mov dl, bl
mov ecx, 1
call fcn.0041b1b0
add esp, 0x10
jmp 0x41054e
mov esi, dword [esp + 0x20]
mov eax, dword [0x51f61c]
mov byte [eax + 0xe], 1
mov eax, 0x7ffd
cmp bp, ax
jne 0x41058f
test byte [0x51f4ce], 0x30
jne 0x410581
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.0041b1b0
add esp, 0x10
mov eax, dword [0x51f61c]
mov byte [eax + 0xf], 1
jmp 0x41060c
mov eax, 0x7ffe
cmp bp, ax
jne 0x41060c
cmp bl, 0xa0
je 0x4105a3
cmp bl, 0xa1
jne 0x4105c6
cmp byte [esp + 0x134], 0
jne 0x4105c6
push 0xffc3d44d
push 0
push 0
push esi
mov dl, bl
mov ecx, 1
call fcn.0041b1b0
add esp, 0x10
test byte [0x51f4ce], 0x10
je 0x4105e9
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa0
mov ecx, 1
call fcn.0041b1b0
add esp, 0x10
test byte [0x51f4ce], 0x20
je 0x41060c
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa1
mov ecx, 1
call fcn.0041b1b0
add esp, 0x10
test byte [0x51f4ce], 1
je 0x41062f
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa2
mov ecx, 1
call fcn.0041b1b0
add esp, 0x10
test byte [0x51f4ce], 2
je 0x410652
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa3
mov ecx, 1
call fcn.0041b1b0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.0041b1b0
mov eax, 0x7ffd
add esp, 0x10
cmp bp, ax
jne 0x4106b3
mov eax, dword [0x51f61c]
cmp byte [eax + 0xf], 0
je 0x4106b3
cmp bl, 0x60
jb 0x41068b
cmp bl, 0x69
jbe 0x410690
cmp bl, 0x6e
jne 0x4106b3
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.0041b1b0
mov eax, dword [0x51f61c]
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 0x4106ce
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 0x4110fe
mov ebp, dword [esp + 0x24]
mov edx, 0x7fff
cmp bp, dx
jne 0x410af2
mov al, byte [edi + 8]
mov dl, byte [0x51f4cd]
test al, al
je 0x41070f
not al
and dl, al
mov eax, dword [esp + 0x1c]
mov dh, byte [esp + 0x19]
cmp eax, dword [0x51eaf8]
jne 0x410737
test dh, dh
je 0x410737
mov eax, dword [0x521990]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x30]
movzx ebp, bl
jmp 0x410747
mov eax, dword [0x52198c]
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 0x41082d
cmp byte [0x52198a], 0
je 0x41082d
cmp bl, 9
je 0x41082d
mov eax, dword [esp + 0x1c]
and dl, 0xf3
cmp eax, dword [0x51eaf8]
jne 0x4107a0
test dh, dh
je 0x4107a0
mov eax, dword [0x521990]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x30]
jmp 0x4107ad
mov eax, dword [0x52198c]
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 0x4107d8
mov ebp, 0x7fff
cmp ax, bp
jb 0x410836
mov ecx, dword [esp + 0x134]
mov ebp, dword [esp + 0x138]
mov edx, 0x7fff
test cl, cl
je 0x410ab0
cmp byte [edi + 8], 0
jne 0x410a9c
test byte [edi + 0xc], 1
jne 0x410a9c
cmp byte [edi + 9], 0
je 0x410a9c
cmp byte [esp + 0x1a], 0
jne 0x410a9c
push 0
push SysReAllocString
push 0x7fff
jmp 0x4110f8
mov edx, dword [esp + 0x24]
mov ebp, 0x7fff
movzx eax, cx
mov ecx, dword [esp + 0x134]
test ax, ax
jns 0x410928
test cl, cl
jne 0x4109e3
mov ah, byte [0x51f4cd]
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 0x4108ff
nop word [eax + eax]
mov eax, dword [0x51f63c]
movzx ecx, dx
mov ecx, dword [eax + ecx*4]
cmp byte [ecx + 0x15], 0
movzx edx, word [ecx + 0xc]
jne 0x4108ca
movzx eax, byte [ecx + 0xf]
mov ebx, dword [esp + 0x12c]
not eax
test byte [0x51f4cd], al
jne 0x4108fa
cmp byte [ecx + 0x16], 0
jne 0x4108fa
cmp byte [ecx + 0x11], 0
jne 0x4108fa
cmp word [ecx + 0xa], 0
jne 0x4108fa
cmp word [ecx + 6], 0
jne 0x4108fa
mov eax, esi
not eax
test dword [ecx], eax
jne 0x4108fa
movzx eax, byte [0x51f4cd]
not eax
test byte [ecx + 0xe], al
je 0x410914
cmp dx, bp
jne 0x4108a0
mov eax, 0x7fff
movzx ecx, ax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
jmp 0x4109dc
movzx eax, word [ecx + 4]
movzx ecx, ax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
jmp 0x4109dc
cmp ax, bp
je 0x4107df
and eax, 0x7fff
test cl, cl
je 0x4109c4
cmp ax, word [0x51f64c]
jae 0x4109b1
mov esi, eax
mov eax, dword [0x521994]
cmp word [eax + esi*2], bp
je 0x4109b1
cmp byte [esp + 0x1b], 0
mov ebp, dword [esp + 0x138]
jne 0x41099e
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.00414d90
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
je 0x410997
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x134]
jmp 0x4109ea
mov ecx, dword [esp + 0x134]
mov eax, dword [0x521994]
movzx eax, word [eax + esi*2]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
jmp 0x4109ee
cmp byte [esp + 0x1b], 0
mov ebp, dword [esp + 0x138]
je 0x4109ea
jmp 0x4107f3
cmp ax, word [0x51f64c]
jae 0x4109e3
mov ecx, eax
mov eax, dword [0x521994]
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 0x4107eb
mov ebp, dword [esp + 0x24]
mov al, byte [edi + 0xc]
lea esi, [edi + 0xc]
test al, 8
je 0x410a17
test cl, cl
je 0x410a17
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 [0x51f64c]
jae 0x410b63
cmp dword [esp + 0x34], 0
jne 0x410b63
push dword [esp + 0x38]
lea eax, [esp + 0x16]
mov dl, cl
push eax
push esi
push ebp
lea ecx, [esp + 0x3c]
call fcn.00414d90
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
jne 0x410b5d
mov eax, dword [esp + 0x38]
cmp word [eax], 0x69
je 0x4104a1
mov eax, dword [esp + 0x134]
test al, al
je 0x410b12
cmp byte [edi + 0x11], 0
je 0x410afe
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x20]
push ebp
push eax
jmp 0x4110fe
push 0x7fff
push dword [esp + 0x18]
push ebp
push ecx
push dword [esp + 0x30]
jmp 0x40fbdb
cmp word [edi + 4], dx
lea ecx, [edi + 4]
je 0x410add
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.00414d90
add esp, 0x10
cmp byte [esp + 0x12], 0
je 0x410b45
push 0x7fff
push dword [esp + 0x18]
push ebp
push 0
push dword [esp + 0x30]
jmp 0x40fbdb
mov ecx, dword [esp + 0x134]
jmp 0x410a00
push 0x7fff
push dword [esp + 0x18]
push ebp
push eax
push dword [esp + 0x30]
jmp 0x40fbdb
lea ecx, [edi + 4]
mov eax, 0x7fff
cmp word [ecx], ax
je 0x410add
push 0
lea eax, [esp + 0x16]
mov byte [esp + 0x16], 0
push eax
push esi
push ebp
mov dl, 1
call fcn.00414d90
add esp, 0x10
cmp byte [esp + 0x12], 0
jne 0x410add
and byte [esi], 0xf7
mov byte [edi + 0x11], 1
push 0
push SysReAllocString
push 0x7fff
push dword [esp + 0x20]
push ebp
push 0
jmp 0x4110fe
mov ecx, dword [esp + 0x2c]
jmp 0x410b67
mov ecx, dword [esp + 0x24]
and ecx, 0x7fff
test byte [0x51f4ce], 0xcc
mov dword [esp + 0x24], ecx
je 0x410c4a
cmp byte [esp + 0x12], 0
jne 0x410c4a
cmp byte [0x521989], 0
jne 0x410ba2
mov eax, dword [esp + 0x1c]
cmp eax, dword [0x51eaf4]
jne 0x410c4a
test byte [0x51f4ce], 0xc0
mov dl, byte [0x51f4cc]
je 0x410bde
test dl, 0xc0
jne 0x410bd1
cmp cx, word [0x51f64c]
jae 0x410bde
mov eax, dword [0x51f63c]
movzx ecx, cx
mov eax, dword [eax + ecx*4]
mov al, byte [eax + 0xf]
and al, 0xc0
je 0x410bda
mov byte [0x521988], 1
jmp 0x410c4a
mov ecx, dword [esp + 0x24]
cmp byte [0x521988], 0
jne 0x410c4a
mov al, byte [0x51f4ce]
test al, 0xc
je 0x410c4a
test al, 3
jne 0x410c4a
test dl, 0xc
jne 0x410c14
cmp cx, word [0x51f64c]
jae 0x410c4a
mov eax, dword [0x51f63c]
movzx ecx, cx
mov eax, dword [eax + ecx*4]
mov al, byte [eax + 0xf]
and al, 0xc
je 0x410c4a
cmp dword [0x51eaf8], 0
je 0x410c26
mov byte [0x521988], 1
jmp 0x410c4a
movzx eax, word [0x51cbfc]
mov ecx, 2
mov dl, byte [0x51cbda]
push 0xffc3d44d
push 0
push 0
push eax
call fcn.0041b1b0
add esp, 0x10
mov eax, dword [esp + 0x24]
movzx ecx, ax
lea eax, [ecx - 0x7ffa]
cmp eax, 4
ja case.default.0x410c60
jmp dword [eax*4 + 0x411148]
cmp byte [0x52198a], 0
je 0x4104a1
xor al, al
test byte [0x51f4ce], 4
je 0x410c86
mov edx, 0xa4
jmp 0x410c98
test byte [0x51f4ce], 8
movzx edx, al
mov eax, 0xa5
cmovne edx, eax
cmp byte [0x52198a], 0
mov dword [esp + 0x3c], edx
je 0x410d25
mov eax, 0x7ffb
cmp word [esp + 0x24], ax
je case.0x410c60.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.0041b1b0
add esp, 0x10
cmp byte [edi + 8], 0
je 0x410d14
cmp bl, 0x5b
je 0x410d14
cmp bl, 0x5c
je 0x410d14
cmp byte [esp + 0x134], 0
jne 0x410d14
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.0041b1b0
add esp, 0x10
mov byte [0x52198a], 0
mov edx, 0x7fff
jmp 0x410fcc
cmp bl, 0xa4
je 0x410d34
mov byte [esp + 0x1b], 0
cmp bl, 0xa5
jne 0x410d39
mov byte [esp + 0x1b], 1
cmp bl, 0xa0
je 0x410d47
cmp bl, 0xa1
je 0x410d47
xor cl, cl
jmp 0x410d49
mov cl, 1
mov byte [esp + 0x19], cl
cmp bl, 0xa2
je 0x410d5c
mov byte [esp + 0x13], 0
cmp bl, 0xa3
jne 0x410d61
mov byte [esp + 0x13], 1
xor dl, dl
test byte [0x51f4ce], 0x10
mov dword [esp + 0x34], edx
je 0x410d74
mov dl, 0xa0
jmp 0x410d97
test byte [0x51f4ce], 0x20
mov eax, dword [esp + 0x134]
je 0x410d88
mov dl, 0xa1
jmp 0x410d9e
test al, al
jne 0x410da2
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 [0x51f4ce], 1
mov dword [esp + 0x30], ecx
je 0x410db8
mov byte [esp + 0x30], 0xa2
jmp 0x410dde
test byte [0x51f4ce], 2
je 0x410dc8
mov byte [esp + 0x30], 0xa3
jmp 0x410dde
test al, al
jne 0x410dde
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 0x410e04
push 0xffc3d44d
push 0
push 0
push 0
mov ecx, 1
call fcn.0041b1b0
add esp, 0x10
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x30]
test al, al
je 0x410e26
push 0xffc3d44d
push 0
push 0
push 0
mov dl, al
mov ecx, 1
call fcn.0041b1b0
add esp, 0x10
cmp byte [esp + 0x1b], 0
je 0x410e3b
cmp byte [esp + 0x134], 0
jne 0x410e43
mov al, bl
jmp 0x410e3f
mov eax, dword [esp + 0x3c]
test al, al
jne 0x410e5a
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.0041b1b0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.0041b1b0
add esp, 0x10
cmp byte [esp + 0x13], 0
je 0x410e9b
cmp byte [esp + 0x19], 0
jne 0x410e9b
mov dl, byte [esp + 0x34]
xor ecx, ecx
push 0xffc3d44d
push 0
push 0
push 0
call fcn.0041b1b0
add esp, 0x10
mov byte [0x52198a], 1
mov edx, 0x7fff
jmp 0x410fcc
cmp byte [0x52198a], 0
je 0x4104a1
mov eax, dword [esp + 0x134]
test al, al
jne 0x410ef9
cmp bl, 0xa2
je 0x410ed8
cmp bl, 0xa3
je 0x410ed8
cmp bl, 0xa0
je 0x410ed8
cmp bl, 0xa1
jne 0x410ef9
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.0041b1b0
mov eax, dword [esp + 0x144]
add esp, 0x10
test byte [0x51f4ce], 0xc
je 0x410f10
test al, al
je 0x410f27
cmp bl, 0xa4
je 0x410f10
cmp bl, 0xa5
jne 0x410f27
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.0041b1b0
add esp, 0x10
mov eax, 0x7ffd
cmp word [esp + 0x24], ax
jne 0x410f88
test byte [0x51f4ce], 0x30
jne 0x410f88
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.0041b1b0
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.0041b1b0
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.0041b1b0
add esp, 0x30
mov edx, 0x7fff
jmp 0x410fcc
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.0041b1b0
add esp, 0x10
mov edx, 0x7fff
jmp 0x410fcc
mov edx, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x40], edx
mov eax, dword [ecx + 4]
test eax, eax
je 0x410fcc
cmp byte [eax], 5
jb 0x410fcc
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 0x411086
cmp byte [esp + 0x1a], 0
je 0x411044
cmp byte [edi + 9], 0
je 0x411044
mov esi, dword [esp + 0x20]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push esi
mov ecx, 1
call fcn.0041b1b0
push 0xffc3d44d
push 0
push 0
push esi
mov dl, bl
mov ecx, 2
call fcn.0041b1b0
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 0x4110fe
cmp byte [edi + 8], 0
je 0x41105d
cmp byte [edi + 0x11], 0
je 0x4110a7
push 0
push SysReAllocString
push edx
jmp 0x4110f8
cmp byte [esp + 0x12], 0
je 0x4110ec
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 0x40f94c
mov eax, dword [0x51f61c]
mov byte [edi + 0x10], 1
test eax, eax
je 0x41109d
cmp byte [eax + 8], 0
je 0x41109d
mov byte [eax + 0x12], 2
cmp byte [esp + 0x12], 0
je 0x4110b7
or byte [esi], 8
push edx
push dword [esp + 0x18]
push ebp
push ecx
push dword [esp + 0x30]
jmp 0x40fbdb
cmp bl, 0xa4
je 0x4110c1
cmp bl, 0xa5
jne 0x4110e4
push 0xffc3d450
push 0
push 0
push dword [esp + 0x2c]
mov dl, bl
mov ecx, 1
call fcn.0041b1b0
mov ecx, dword [esp + 0x144]
add esp, 0x10
test cl, cl
jne 0x4110ec
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.00411160
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret