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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push esi
mov esi, dword [ebp + 0x1c]
mov eax, 0x7fff
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x44], eax
push edi
mov di, word [ebp + 0x14]
movzx edx, di
cmp esi, 0xffc3d44f
je 0x40ec97
cmp esi, 0xffc3d44e
je 0x40ec97
mov byte [esp + 0x17], 0
cmp esi, 0xffc3d44d
jne 0x40ec9c
mov byte [esp + 0x17], 1
mov ecx, dword [0x4fb980]
mov ebx, dword [ebp + 0x10]
test ecx, ecx
jne 0x40ecb6
lea eax, [esp + 0x50]
mov dword [esp + 0x10], eax
jmp 0x40ed65
mov eax, dword [0x4fb9f4]
imul esi, eax, 0x70
inc eax
add esi, ecx
xor ecx, ecx
cmp eax, dword [0x4f8990]
mov dword [esp + 0x10], esi
cmovge eax, ecx
mov dword [0x4fb9f4], eax
mov eax, dword [ebp + 0x18]
mov byte [esi], bl
mov byte [esi + 5], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [0x4fb9f0], eax
sub ecx, dword [0x4fe268]
mov dword [0x4fe268], eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4f1540]
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4f1484]
movss dword [esi + 8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [esp + 0x10]
add eax, 0xc
test esi, esi
je 0x40ed4f
cmp esi, dword [0x4fb9ec]
je 0x40ed4a
push esi
push eax
push 0x418
push dword [0x4fb968]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40ed55
mov byte [eax], 0
jmp 0x40ed55
mov dword [eax], 0x412f4e
mov eax, dword [esp + 0x10]
mov dword [0x4fb9ec], esi
mov esi, dword [ebp + 0x1c]
movzx edx, di
cmp bl, 0xe7
jne 0x40eda9
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 0xc]
push 0x7fff
push edx
push esi
push dword [ebp + 0x18]
mov ax, word [ecx + 4]
push 0
push 0xe7
push ecx
mov ecx, dword [esp + 0x34]
mov word [edx + 2], ax
mov byte [edx + 4], 0x55
push dword [ebp + 8]
mov edx, dword [esp + 0x48]
call fcn.00410700
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov word [eax + 2], di
mov cl, 3
mov edi, dword [esp + 0x18]
mov al, bl
add al, 0x64
cmp cl, al
sbb eax, eax
and eax, edx
movzx eax, ax
mov dword [esp + 0x20], eax
mov eax, 0x20
cmp edi, dword [0x4fb984]
jne 0x40edfd
mov cl, byte [ebp + 0x20]
mov edx, dword [ebp + 0x18]
and cl, 1
mov dword [esp + 0x30], ecx
jne 0x40ee82
movzx ecx, bl
mov al, dl
xor al, 1
shl al, 7
mov byte [ecx + 0x4fc2d8], al
mov ecx, dword [esp + 0x30]
jmp 0x40ee7d
mov ecx, dword [ebp + 0x20]
mov edx, dword [0x4fe2c8]
movzx esi, bl
shr ecx, 4
and ecx, 0xffffff01
mov dword [esp + 0x30], ecx
lea eax, [esi + esi*4]
cmp byte [edx + eax*4 + 8], 0
jne 0x40ee7a
test byte [ebp + 0x20], 0x10
jne 0x40ee7a
cmp bl, 0xa0
je 0x40ee30
cmp bl, 0xa1
jne 0x40ee54
mov edx, dword [ebp + 0x18]
test dl, dl
jne 0x40ee54
cmp bl, 0xa0
mov dword [esp + 0x40], 0x10
mov eax, 0x20
cmove eax, dword [esp + 0x40]
test byte [0x4fc2c7], al
jne 0x40ee7d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword [0x4fe270], eax
mov dword [0x4fe26c], eax
mov al, dl
xor al, 1
shl al, 7
mov byte [esi + 0x4fc2d8], al
jmp 0x40ee7d
mov edx, dword [ebp + 0x18]
mov eax, 0x20
cmp byte [esp + 0x17], 0
je 0x40ee8d
mov al, 0x69
jmp 0x40ee97
test cl, cl
mov esi, 0x61
cmovne eax, esi
cmp byte [0x4fc2c5], 0
mov ecx, dword [esp + 0x10]
lea esi, [ecx + 4]
mov byte [esi], al
mov dword [esp + 0x3c], esi
je 0x40eee4
cmp bl, 0x5b
je 0x40eeb7
cmp bl, 0x5c
jne 0x40eee4
test dl, dl
jne 0x40eee4
mov edx, dword [ebp + 0x1c]
push 0
push SysReAllocString
push 0x7fff
push ecx
push edx
mov edx, dword [ebp + 0xc]
push 0
push ecx
mov ecx, edi
push ebx
call fcn.004105b0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x4fe2ba], 0
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
je 0x40ef9d
cmp bl, 0x1b
jne 0x40ef9d
test dl, dl
jne 0x40ef9d
push 0
push str.32771
call esi
test eax, eax
je 0x40ef9d
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 0x40ef97
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
xor ecx, ecx
call fcn.0041a5e0
mov dl, byte [0x4fc2d6]
mov ecx, 1
push 0xffc3d44d
shr dl, 3
push 0
and dl, 1
push 0
push 0
or dl, 0xa4
call fcn.0041a5e0
mov edx, dword [esp + 0x30]
add esp, 0x20
push 0
push SysReAllocString
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0xc]
push 0
push ecx
push 0x1b
mov ecx, edi
call fcn.004105b0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
mov eax, dword [esp + 0x20]
movzx eax, ax
mov dword [esp + 0x30], eax
lea ecx, [eax + eax*4]
mov eax, dword [0x4fe2cc]
lea edi, [eax + ecx*4]
mov eax, dword [esp + 0x18]
mov cl, byte [edi + 0x13]
mov byte [esp + 0x16], cl
cmp eax, dword [0x4fb988]
jne 0x40efca
test cl, cl
jne 0x40efdd
mov ecx, dword [0x4fe2c8]
movzx eax, bl
lea eax, [eax + eax*4]
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x18]
cmp byte [esp + 0x17], 0
je 0x40f03e
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
cmp ecx, 0xffc3d44e
jne 0x40f010
test al, al
je 0x40f010
cmp dword [0x4fc424], edi
jne 0x40f010
mov byte [edi + 0xd], 0
mov byte [edi + 0x10], 0
mov dword [0x4fc424], 0
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
push ecx
push eax
mov ecx, dword [esp + 0x28]
push dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00410700
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
mov edx, 0x7fff
mov dword [esp + 0x40], edx
test cl, cl
jne 0x40f055
mov byte [edi + 0x11], cl
mov word [edi + 4], dx
cmp eax, dword [0x4fb984]
jne 0x40f0c5
test bl, bl
jne 0x40f091
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
push edx
mov edx, dword [esp + 0x34]
push ecx
push dword [esp + 0x30]
mov ecx, eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00410700
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp bl, 1
je 0x40f09b
cmp bl, 2
jne 0x40f0c5
cmp dword [0x4fb938], 0
jne 0x40f0ef
push 0
push str.32768
call esi
test eax, eax
je 0x40f0c2
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4fda50]
je 0x40f0ec
mov ecx, dword [ebp + 0x18]
mov eax, dword [0x4fc424]
mov esi, dword [esp + 0x18]
test eax, eax
je 0x40f124
cmp eax, edi
je 0x40f124
test cl, cl
jne 0x40f124
cmp esi, dword [0x4fb988]
jne 0x40f10e
xor eax, eax
cmp byte [edi + 8], al
sete al
jmp 0x40f117
mov ecx, dword [ebp + 0x18]
mov edx, dword [esp + 0x10]
mov al, cl
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
xor al, 1
push edx
mov byte [edi + 0x10], 0
mov byte [edi + 0xd], al
push ecx
jmp 0x40f01c
mov eax, dword [0x4fc424]
movzx eax, byte [eax + 8]
test eax, eax
je 0x40f124
mov eax, dword [0x4fc424]
mov byte [eax + 0x12], 1
cmp byte [edi + 9], 0
jne 0x40f14d
cmp byte [edi + 0xa], 0
jne 0x40f14d
mov edx, dword [esp + 0x10]
mov al, cl
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
xor al, 1
push edx
push ecx
mov byte [edi + 0xd], al
mov ecx, esi
jmp 0x40f020
mov dword [esp + 0x34], 0
mov eax, 0x7fff
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
test cl, cl
je 0x40f194
mov dh, byte [edi + 0x10]
mov al, byte [edi + 0xd]
mov byte [esp + 0xf], al
movzx eax, word [edi + 4]
mov byte [esp + 0xe], dh
mov edx, 0x7fff
mov byte [edi + 0x10], 0
cmp ax, dx
je 0x40f1a4
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov word [edi + 4], dx
jmp 0x40f1a4
mov al, byte [esp + 0xf]
mov byte [esp + 0xf], al
mov al, byte [esp + 0xf]
mov byte [esp + 0xe], al
mov al, cl
xor dl, dl
xor al, 1
mov byte [edi + 0xd], al
cmp esi, dword [0x4fb988]
jne 0x40f223
cmp byte [edi + 8], dl
je 0x40f23f
mov eax, dword [0x4fe2c8]
cmp byte [eax + 0xcb5], dl
jne 0x40f1d7
cmp byte [eax + 0xcc9], dl
jne 0x40f1d7
xor cl, cl
jmp 0x40f1d9
mov cl, 1
cmp byte [eax + 0xcdd], 0
mov byte [eax + 0x161], cl
jne 0x40f1f5
cmp byte [eax + 0xcf1], 0
jne 0x40f1f5
xor cl, cl
jmp 0x40f1f7
mov cl, 1
cmp byte [eax + 0xc8d], 0
mov byte [eax + 0x175], cl
jne 0x40f219
cmp byte [eax + 0xca1], 0
jne 0x40f219
xor cl, cl
mov byte [eax + 0x14d], cl
jmp 0x40f23f
mov cl, 1
mov byte [eax + 0x14d], cl
jmp 0x40f23f
cmp dword [0x4fb988], 0
jne 0x40f23f
mov cl, 1
call fcn.0041d080
mov byte [0x4fc2d5], al
mov dl, 1
mov byte [0x4fc2d6], al
mov eax, dword [edi]
test eax, eax
je 0x40f24f
cmp dword [eax], 7
mov byte [esp + 0x17], 1
je 0x40f254
mov byte [esp + 0x17], 0
test dl, dl
jne 0x40f25f
mov cl, 1
call fcn.0041d080
mov cl, byte [edi + 9]
mov eax, dword [ebp + 0x18]
test cl, cl
je 0x40f4f0
test al, al
jne 0x40f4f0
mov eax, dword [0x4fc424]
test eax, eax
je 0x40f28c
cmp byte [edi + 0xa], 0
je 0x40f28c
cmp edi, eax
jne 0x40f4ed
cmp cl, 1
jne 0x40f33d
cmp byte [esp + 0x16], 0
mov ecx, dword [esp + 0x30]
jne 0x40f2a3
movzx ecx, bl
xor edx, edx
movzx eax, cx
cmp byte [esp + 0x16], dl
mov dword [esp + 0x38], ecx
cmovne edx, eax
movzx eax, cl
xor ecx, ecx
cmp byte [esp + 0x16], cl
push 0
cmovne eax, ecx
mov cl, al
call fcn.0041d290
mov ch, al
xor edx, edx
xor eax, eax
mov byte [esp + 0x23], ch
add esp, 4
mov dword [esp + 0x44], edx
cmp ax, word [0x4fc454]
jae 0x40f425
mov cl, byte [0x4fb9e8]
nop dword [eax]
cmp byte [esp + 0x16], 0
mov eax, dword [0x4fc444]
mov edx, dword [eax + edx*4]
mov dword [esp + 0x4c], edx
je 0x40f309
movzx eax, word [edx + 0xa]
jmp 0x40f30d
movzx eax, byte [edx + 0x11]
cmp dword [esp + 0x38], eax
je 0x40f31c
test byte [edx + 0xe], ch
je 0x40f409
cmp word [edx + 6], 0
je 0x40f3a8
cmp byte [edx + 0x19], 0
je 0x40f409
test cl, cl
jne 0x40f409
mov esi, dword [esp + 0x18]
xor dl, dl
cmp edi, dword [0x4fc424]
je 0x40f350
mov dword [0x4fc424], edi
mov byte [edi + 0x12], dl
cmp byte [edi + 0xa], 0
je 0x40f473
mov al, byte [edi + 8]
mov cl, byte [0x4fc2d5]
test al, al
je 0x40f36b
not al
and cl, al
test cl, cl
jne 0x40f37d
test dl, dl
jne 0x40f37d
test byte [edi + 0xc], 1
je 0x40f473
cmp esi, dword [0x4fb988]
jne 0x40f42c
cmp byte [esp + 0x16], 0
je 0x40f42c
mov eax, dword [0x4fe2c0]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x30]
jmp 0x40f43c
mov esi, dword [edx + 0x20]
mov eax, esi
test eax, eax
je 0x40f409
cmp byte [eax + 0x1c], 0
jne 0x40f3c0
mov eax, dword [eax + 8]
test eax, eax
jne 0x40f3b1
jmp 0x40f409
cmp byte [esi + 0x1c], 0
je 0x40f3fe
test cl, cl
je 0x40f3d9
mov ecx, esi
call fcn.0049d920
test al, al
je 0x40f3f4
mov edx, dword [esp + 0x4c]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40f339
mov edx, dword [edx + 0x1c]
call fcn.00413700
test eax, eax
jne 0x40f339
mov cl, byte [0x4fb9e8]
mov edx, dword [esp + 0x4c]
mov esi, dword [esi + 8]
test esi, esi
jne 0x40f3c0
mov ch, byte [esp + 0x1f]
mov edx, dword [esp + 0x44]
movzx eax, word [0x4fc454]
inc edx
mov dword [esp + 0x44], edx
cmp edx, eax
jl 0x40f2f0
mov esi, dword [esp + 0x18]
mov dl, 1
jmp 0x40f350
movzx ecx, cl
movzx eax, bl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4fe2bc]
movzx eax, word [eax + ecx*2]
movzx ecx, ax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
test ax, ax
jns 0x40f456
mov word [edi + 4], ax
jmp 0x40f47f
and eax, 0x7fff
cmp ax, word [0x4fc454]
jae 0x40f473
mov ecx, eax
mov eax, dword [0x4fe2c4]
mov ax, word [eax + ecx*2]
mov word [edi + 4], ax
mov eax, 0x7fff
cmp word [esp + 0x24], ax
jne 0x40f4ed
test dl, dl
je 0x40f48e
mov eax, dword [esp + 0x3c]
or byte [edi + 0xc], 8
mov byte [eax], 0x23
cmp byte [edi + 8], 0
jne 0x40f4d6
test byte [edi + 0xc], 1
jne 0x40f4d6
cmp byte [esp + 0x17], 0
jne 0x40f4d6
test dl, dl
jne 0x40f4d6
mov edx, dword [esp + 0x10]
push 0
push SysReAllocString
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0xc]
push 0
push ecx
mov ecx, esi
mov byte [edi + 0x11], 1
push ebx
call fcn.004105b0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
mov ecx, esi
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
push edx
push 0
jmp 0x40f020
mov eax, dword [ebp + 0x18]
cmp byte [edi + 0xa], 0
mov byte [esp + 0x1f], 0
je 0x40f58a
test al, al
je 0x40f58a
mov ch, byte [esp + 0xe]
cmp dword [0x4fc424], edi
jne 0x40f521
test ch, ch
je 0x40f58a
mov dword [0x4fc424], 0
cmp byte [edi + 0xb], 0
jne 0x40f585
mov cl, byte [edi + 0xc]
test cl, 8
je 0x40f539
xor dl, dl
and cl, 0xf7
mov byte [edi + 0xc], cl
jmp 0x40f53b
mov dl, 1
test ch, ch
je 0x40f56f
test dl, dl
je 0x40f56f
mov edx, dword [esp + 0x10]
push 0
push SysReAllocString
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0xc]
push eax
push ecx
mov ecx, esi
push ebx
call fcn.004105b0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
mov ecx, esi
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
push edx
push eax
jmp 0x40f020
mov byte [esp + 0x1f], 1
cmp byte [edi + 9], 0
je 0x40f760
test al, al
je 0x40f760
mov eax, dword [0x4fc424]
xor ecx, ecx
cmp eax, edi
cmove eax, ecx
mov dword [0x4fc424], eax
cmp byte [edi + 0xe], cl
je 0x40f5cc
push 0xffc3d44d
push ecx
push ecx
mov byte [edi + 0xe], cl
mov dl, 0x12
push ecx
mov ecx, 1
call fcn.0041a5e0
add esp, 0x10
cmp byte [edi + 0xf], 0
je 0x40f5f0
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov byte [edi + 0xf], 0
mov ecx, 1
call fcn.0041a5e0
add esp, 0x10
mov edx, dword [esp + 0x24]
mov eax, 0x7fff
cmp dx, ax
jne 0x40f622
mov al, byte [edi + 0xc]
test al, 8
je 0x40f622
and al, 0xf7
mov byte [edi + 0xc], al
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
mov ecx, esi
push edx
push dword [ebp + 0x18]
jmp 0x40f020
mov cl, byte [esp + 0x17]
mov al, byte [edi + 0x12]
test cl, cl
je 0x40f6b2
cmp al, 2
jne 0x40f696
mov edi, dword [esp + 0x20]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push edi
mov ecx, 1
call fcn.0041a5e0
push 0xffc3d44d
push 0
push 0
push edi
mov dl, bl
mov ecx, 2
call fcn.0041a5e0
mov edx, dword [esp + 0x30]
add esp, 0x20
push 0
push SysReAllocString
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
push edx
push dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, esi
push ebx
call fcn.004105b0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 1
jne 0x40f6fe
mov edx, dword [esp + 0x10]
mov ecx, esi
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
push edx
push dword [ebp + 0x18]
jmp 0x40f020
test al, al
je 0x40f6fe
mov eax, 0x7fff
cmp dx, ax
jne 0x40f6fe
cmp byte [edi + 8], 0
jne 0x40f60a
test byte [edi + 0xc], 1
mov edx, dword [esp + 0x10]
jne 0x40f60e
push 0
push SysReAllocString
push eax
push edx
mov edx, dword [ebp + 0x1c]
push edx
push dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, esi
push ebx
call fcn.004105b0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0xa], 0
jne 0x40f74e
cmp byte [edi + 8], 0
jne 0x40f60a
test byte [edi + 0xc], 1
jne 0x40f60a
test cl, cl
jne 0x40f60a
mov edx, dword [esp + 0x10]
push 0
push SysReAllocString
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
push edx
push dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, esi
push ebx
call fcn.004105b0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0xf], 0
jne 0x40f764
cmp byte [edi + 0xb], 0
jne 0x40f764
jmp 0x40f60a
mov edx, dword [esp + 0x24]
cmp dword [0x4fc424], 0
mov byte [esp + 0xe], 0
je 0x40fb5b
mov ecx, dword [ebp + 0x18]
test cl, cl
je 0x40f787
cmp byte [edi + 0xb], 0
je 0x40fb5b
mov eax, 0x7fff
cmp dx, ax
jne 0x40feb9
movzx eax, word [edi + 6]
xor esi, esi
mov dword [esp + 0x38], eax
cmp ax, word [esp + 0x40]
je 0x40f959
mov ecx, eax
nop dword [eax]
mov eax, dword [0x4fc444]
movzx ecx, cx
mov edx, dword [eax + ecx*4]
mov al, byte [edx + 0x11]
test al, al
jne 0x40f808
cmp word [edx + 0xa], 0
je 0x40f845
movzx eax, word [edx + 0xc]
mov dword [esp + 0x38], eax
movzx eax, word [edx + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4fe2cc]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x38]
cmp byte [eax + 0xd], 0
je 0x40f833
cmp byte [edx + 0x16], 0
je 0x40f828
cmp byte [ebp + 0x18], 0
jne 0x40f843
mov ax, word [edx + 4]
mov word [edi + 4], ax
test esi, esi
jne 0x40f84d
jmp 0x40f833
movzx ecx, word [edx + 0xc]
mov dword [esp + 0x38], ecx
test al, al
je 0x40f7d5
mov ebx, dword [0x4fe2c8]
movzx eax, al
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
mov ebx, dword [ebp + 0x10]
jmp 0x40f7e8
cmp byte [ebp + 0x18], 0
jne 0x40f833
test esi, esi
cmove esi, edx
mov eax, 0x7fff
cmp cx, ax
jne 0x40f7b0
jmp 0x40f845
mov esi, edx
test esi, esi
je 0x40f952
movzx ecx, byte [esi + 0x11]
cmp ecx, 0x12
ja case.0x40f861.1
movzx eax, byte [ecx + 0x41057c]
jmp dword [eax*4 + 0x410568]
mov ecx, dword [0x4fe2c8]
mov eax, 0xc80
mov edx, 0xc94
cmp byte [ecx + 0xca1], 0
cmovne eax, edx
add eax, ecx
jmp 0x40f8df
mov ecx, dword [0x4fe2c8]
mov eax, 0xca8
mov edx, 0xcbc
cmp byte [ecx + 0xcc9], 0
cmovne eax, edx
add eax, ecx
jmp 0x40f8df
mov ecx, dword [0x4fe2c8]
mov eax, 0xcd0
mov edx, 0xce4
cmp byte [ecx + 0xcf1], 0
cmovne eax, edx
add eax, ecx
jmp 0x40f8df
movzx eax, word [esi + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4fe2cc]
lea eax, [eax + ecx*4]
jmp 0x40f8df
lea eax, [ecx + ecx*4]
mov ecx, dword [0x4fe2c8]
lea eax, [ecx + eax*4]
mov dword [0x4fc424], eax
movzx eax, word [esi + 6]
test ax, ax
je 0x40f8f5
mov edx, eax
mov dword [esp + 0x2c], edx
jmp 0x40f93d
movzx eax, word [esi + 4]
lea ecx, [esp + 0x2c]
mov esi, dword [ebp + 0x1c]
mov dl, byte [ebp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
push eax
lea eax, [esp + 0x12]
push eax
lea eax, [edi + 0xc]
push eax
push esi
call fcn.004141d0
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
jne 0x40f939
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
push esi
push dword [ebp + 0x18]
jmp 0x40f01c
mov edx, dword [esp + 0x2c]
mov eax, dword [0x4fc424]
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x24], edx
movzx esi, dx
mov byte [eax + 0x12], 2
jmp 0x40f95d
mov ecx, dword [ebp + 0x18]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
mov eax, 0x7ffe
cmp si, ax
je 0x40f975
mov eax, 0x7ffd
cmp si, ax
jne 0x40fb5b
test cl, cl
jne 0x40f97d
mov byte [edi + 0x10], 1
test byte [0x4fc2d6], 0xc
jne 0x40f9a0
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.0041a5e0
mov ecx, dword [ebp + 0x18]
add esp, 0x10
cmp bl, 0xa2
je 0x40f9aa
cmp bl, 0xa3
jne 0x40f9ca
test cl, cl
jne 0x40f9ca
push 0xffc3d44d
push 0
push 0
push dword [esp + 0x2c]
mov dl, bl
mov ecx, 1
call fcn.0041a5e0
add esp, 0x10
mov eax, dword [0x4fc424]
mov byte [eax + 0xe], 1
mov eax, 0x7ffd
cmp si, ax
jne 0x40fa0b
test byte [0x4fc2d6], 0x30
jne 0x40f9fd
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.0041a5e0
add esp, 0x10
mov eax, dword [0x4fc424]
mov byte [eax + 0xf], 1
jmp 0x40fa87
mov eax, 0x7ffe
cmp si, ax
jne 0x40fa87
cmp bl, 0xa0
je 0x40fa1f
cmp bl, 0xa1
jne 0x40fa41
cmp byte [ebp + 0x18], 0
jne 0x40fa41
push 0xffc3d44d
push 0
push 0
push dword [esp + 0x2c]
mov dl, bl
mov ecx, 1
call fcn.0041a5e0
add esp, 0x10
test byte [0x4fc2d6], 0x10
je 0x40fa64
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa0
mov ecx, 1
call fcn.0041a5e0
add esp, 0x10
test byte [0x4fc2d6], 0x20
je 0x40fa87
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa1
mov ecx, 1
call fcn.0041a5e0
add esp, 0x10
test byte [0x4fc2d6], 1
je 0x40faaa
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa2
mov ecx, 1
call fcn.0041a5e0
add esp, 0x10
test byte [0x4fc2d6], 2
je 0x40facd
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa3
mov ecx, 1
call fcn.0041a5e0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.0041a5e0
mov eax, 0x7ffd
add esp, 0x10
cmp si, ax
jne 0x40fb2e
mov eax, dword [0x4fc424]
cmp byte [eax + 0xf], 0
je 0x40fb2e
cmp bl, 0x60
jb 0x40fb06
cmp bl, 0x69
jbe 0x40fb0b
cmp bl, 0x6e
jne 0x40fb2e
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.0041a5e0
mov eax, dword [0x4fc424]
add esp, 0x10
mov byte [eax + 0xf], 0
mov eax, dword [esp + 0x3c]
mov byte [eax], 0x68
mov eax, dword [ebp + 0x18]
test al, al
jne 0x40fb40
mov byte [edi + 0x11], 1
mov edx, dword [esp + 0x10]
push 0
push SysReAllocString
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
push edx
push eax
jmp 0x41054e
mov eax, 0x7fff
cmp dx, ax
jne 0x40feb6
mov al, byte [edi + 8]
mov dl, byte [0x4fc2d5]
test al, al
je 0x40fb7a
not al
and dl, al
mov eax, dword [esp + 0x18]
mov dh, byte [esp + 0x16]
cmp eax, dword [0x4fb988]
jne 0x40fbaa
test dh, dh
je 0x40fbaa
mov eax, dword [0x4fe2c0]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x30]
movzx eax, word [eax + ecx*2]
movzx ecx, bl
mov dword [esp + 0x44], ecx
jmp 0x40fbc2
movzx eax, bl
movzx ecx, dl
shl ecx, 8
mov dword [esp + 0x44], eax
add ecx, eax
mov eax, dword [0x4fe2bc]
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 + 0x40]
jne 0x40fc57
cmp byte [0x4fe2ba], 0
je 0x40fc57
cmp bl, 9
je 0x40fc57
mov eax, dword [esp + 0x18]
and dl, 0xf3
cmp eax, dword [0x4fb988]
jne 0x40fc0f
test dh, dh
je 0x40fc0f
mov eax, dword [0x4fe2c0]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x30]
jmp 0x40fc1e
mov eax, dword [0x4fe2bc]
movzx ecx, dl
shl ecx, 8
add ecx, dword [esp + 0x44]
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 0x40fe35
mov esi, 0x7fff
cmp ax, si
jb 0x40fc5b
mov ecx, dword [ebp + 0x18]
mov edx, esi
jmp 0x40fde6
mov edx, dword [esp + 0x24]
movzx eax, cx
mov ecx, dword [ebp + 0x18]
test ax, ax
jns 0x40fd4f
test cl, cl
jne 0x40fdd2
mov ah, byte [0x4fc2d5]
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 0x40fd20
nop dword [eax]
mov eax, dword [0x4fc444]
movzx ecx, dx
mov ecx, dword [eax + ecx*4]
cmp byte [ecx + 0x15], 0
movzx edx, word [ecx + 0xc]
jne 0x40fce6
movzx eax, byte [ecx + 0xf]
mov ebx, dword [ebp + 0x10]
not eax
test byte [0x4fc2d5], al
jne 0x40fd16
cmp byte [ecx + 0x16], 0
jne 0x40fd16
cmp byte [ecx + 0x11], 0
jne 0x40fd16
cmp word [ecx + 0xa], 0
jne 0x40fd16
cmp word [ecx + 6], 0
jne 0x40fd16
mov eax, esi
not eax
test dword [ecx], eax
jne 0x40fd16
movzx eax, byte [0x4fc2d5]
not eax
test byte [ecx + 0xe], al
je 0x40fd38
mov eax, 0x7fff
cmp dx, ax
jne 0x40fcc0
mov ecx, dword [ebp + 0x18]
mov eax, 0x7fff
movzx edx, ax
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], edx
jmp 0x40fdd6
movzx eax, word [ecx + 4]
mov ecx, dword [ebp + 0x18]
movzx edx, ax
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], edx
jmp 0x40fdd6
mov edx, 0x7fff
cmp ax, dx
je 0x40fde6
and eax, edx
test cl, cl
je 0x40fe14
cmp ax, word [0x4fc454]
jae 0x40fdcb
mov esi, eax
mov eax, dword [0x4fe2c4]
cmp word [eax + esi*2], dx
je 0x40fdcb
cmp byte [esp + 0x1f], 0
jne 0x40fdb8
push dword [esp + 0x3c]
mov edx, dword [ebp + 0x1c]
lea eax, [esp + 0x12]
push eax
lea eax, [edi + 0xc]
push eax
push edx
mov dl, cl
lea ecx, [esp + 0x3c]
call fcn.004141d0
mov ecx, dword [ebp + 0x18]
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
je 0x40fdb8
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
jmp 0x40fdd6
mov eax, dword [0x4fe2c4]
movzx edx, word [eax + esi*2]
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], edx
jmp 0x40fdd6
cmp byte [esp + 0x1f], 0
jne 0x40fdea
mov edx, dword [esp + 0x24]
mov eax, 0x7fff
cmp dx, ax
jne 0x40feb9
mov edx, eax
test cl, cl
je 0x40fe52
cmp byte [edi + 8], 0
jne 0x40fe3f
test byte [edi + 0xc], 1
jne 0x40fe3f
cmp byte [edi + 9], 0
je 0x40fe3f
cmp byte [esp + 0x17], 0
jne 0x40fe3f
push 0
push SysReAllocString
push 0x7fff
jmp 0x410545
mov edx, dword [esp + 0x24]
cmp ax, word [0x4fc454]
jae 0x40fdd6
mov ecx, eax
mov eax, dword [0x4fe2c4]
mov ax, word [eax + ecx*2]
mov ecx, dword [ebp + 0x18]
mov word [edi + 4], ax
jmp 0x40fdd6
mov ecx, dword [ebp + 0x18]
mov edx, 0x7fff
jmp 0x40fde6
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
push dword [ebp + 0x1c]
push ecx
jmp 0x40f01c
cmp word [edi + 4], dx
lea ecx, [edi + 4]
jne 0x40fe6f
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
push dword [ebp + 0x1c]
push 0
jmp 0x40f01c
mov esi, dword [ebp + 0x1c]
lea eax, [esp + 0xe]
push 0
push eax
lea eax, [edi + 0xc]
mov dl, 1
push eax
push esi
call fcn.004141d0
mov edx, dword [esp + 0x20]
add esp, 0x10
cmp byte [esp + 0xe], 0
je 0x40fea1
push 0x7fff
push edx
push esi
push 0
jmp 0x40f01c
push 0
push SysReAllocString
push 0x7fff
push edx
push esi
push 0
jmp 0x41054e
mov ecx, dword [ebp + 0x18]
mov al, byte [edi + 0xc]
lea esi, [edi + 0xc]
test al, 8
je 0x40fed0
test cl, cl
je 0x40fed0
and al, 0xf7
mov byte [esp + 0xe], 1
mov byte [esi], al
mov eax, edx
and eax, 0x7fff
cmp ax, word [0x4fc454]
jae 0x40ffd5
cmp dword [esp + 0x34], 0
jne 0x40ffd5
push dword [esp + 0x3c]
lea eax, [esp + 0x12]
mov dl, cl
push eax
push esi
push dword [ebp + 0x1c]
lea ecx, [esp + 0x3c]
call fcn.004141d0
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
jne 0x40ffcf
mov eax, dword [esp + 0x3c]
cmp byte [eax], 0x69
jne 0x40ff34
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
jmp 0x40f01c
mov eax, dword [ebp + 0x18]
test al, al
je 0x40ff6b
cmp byte [edi + 0x11], 0
mov edx, dword [esp + 0x10]
je 0x40ff5c
push 0
push SysReAllocString
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
push edx
push eax
jmp 0x41054e
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
push edx
jmp 0x40f01b
lea ecx, [edi + 4]
mov eax, 0x7fff
cmp word [ecx], ax
je 0x40fe5b
push 0
lea eax, [esp + 0x12]
mov byte [esp + 0x12], 0
push eax
push esi
push dword [ebp + 0x1c]
mov dl, 1
call fcn.004141d0
mov edx, dword [esp + 0x20]
add esp, 0x10
cmp byte [esp + 0xe], 0
je 0x40ffb1
push 0x7fff
push edx
push dword [ebp + 0x1c]
push 0
jmp 0x40f01c
and byte [esi], 0xf7
push 0
push SysReAllocString
push 0x7fff
push edx
push dword [ebp + 0x1c]
mov byte [edi + 0x11], 1
push 0
jmp 0x41054e
mov ecx, dword [esp + 0x2c]
jmp 0x40ffd9
mov ecx, dword [esp + 0x24]
and ecx, 0x7fff
test byte [0x4fc2d6], 0xcc
mov dword [esp + 0x24], ecx
je 0x4100bf
cmp byte [esp + 0xe], 0
jne 0x4100bf
cmp byte [0x4fe2b9], 0
jne 0x410014
mov eax, dword [esp + 0x18]
cmp eax, dword [0x4fb984]
jne 0x4100bf
test byte [0x4fc2d6], 0xc0
mov dl, byte [0x4fc2d4]
je 0x410053
test dl, 0xc0
jne 0x410043
cmp cx, word [0x4fc454]
jae 0x410053
mov eax, dword [0x4fc444]
movzx ecx, cx
mov eax, dword [eax + ecx*4]
mov al, byte [eax + 0xf]
and al, 0xc0
je 0x41004f
mov byte [0x4fe2b8], 1
jmp 0x4100bf
mov ecx, dword [esp + 0x24]
cmp byte [0x4fe2b8], 0
jne 0x4100bf
mov al, byte [0x4fc2d6]
test al, 0xc
je 0x4100bf
test al, 3
jne 0x4100bf
test dl, 0xc
jne 0x410089
cmp cx, word [0x4fc454]
jae 0x4100bf
mov eax, dword [0x4fc444]
movzx ecx, cx
mov eax, dword [eax + ecx*4]
mov al, byte [eax + 0xf]
and al, 0xc
je 0x4100bf
cmp dword [0x4fb988], 0
je 0x41009b
mov byte [0x4fe2b8], 1
jmp 0x4100bf
movzx eax, word [0x4f9b90]
mov ecx, 2
mov dl, byte [0x4f9b82]
push 0xffc3d44d
push 0
push 0
push eax
call fcn.0041a5e0
add esp, 0x10
mov eax, dword [esp + 0x24]
movzx ecx, ax
lea eax, [ecx - 0x7ffa]
cmp eax, 4
ja case.default.0x4100d5
jmp dword [eax*4 + 0x410590]
cmp byte [0x4fe2ba], 0
je 0x40ff1f
xor al, al
test byte [0x4fc2d6], 4
je 0x4100fb
mov edx, 0xa4
jmp 0x41010d
test byte [0x4fc2d6], 8
movzx edx, al
mov eax, 0xa5
cmovne edx, eax
cmp byte [0x4fe2ba], 0
mov dword [esp + 0x40], edx
je 0x410196
mov eax, 0x7ffb
cmp word [esp + 0x24], ax
je case.0x4100d5.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.0041a5e0
add esp, 0x10
cmp byte [edi + 8], 0
je 0x410185
cmp bl, 0x5b
je 0x410185
cmp bl, 0x5c
je 0x410185
cmp byte [ebp + 0x18], 0
jne 0x410185
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.0041a5e0
add esp, 0x10
mov byte [0x4fe2ba], 0
mov edx, 0x7fff
jmp 0x410429
cmp bl, 0xa4
je 0x4101a5
mov byte [esp + 0x1f], 0
cmp bl, 0xa5
jne 0x4101aa
mov byte [esp + 0x1f], 1
cmp bl, 0xa0
je 0x4101b8
cmp bl, 0xa1
je 0x4101b8
xor cl, cl
jmp 0x4101ba
mov cl, 1
mov byte [esp + 0x16], cl
cmp bl, 0xa2
je 0x4101cd
mov byte [esp + 0xf], 0
cmp bl, 0xa3
jne 0x4101d2
mov byte [esp + 0xf], 1
xor dl, dl
test byte [0x4fc2d6], 0x10
mov dword [esp + 0x34], edx
je 0x4101e5
mov dl, 0xa0
jmp 0x410204
test byte [0x4fc2d6], 0x20
mov eax, dword [ebp + 0x18]
je 0x4101f5
mov dl, 0xa1
jmp 0x410207
test al, al
jne 0x41020b
test cl, cl
movzx edx, dl
movzx eax, bl
cmovne edx, eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x34], edx
xor cl, cl
test byte [0x4fc2d6], 1
mov dword [esp + 0x30], ecx
je 0x410221
mov byte [esp + 0x30], 0xa2
jmp 0x410247
test byte [0x4fc2d6], 2
je 0x410231
mov byte [esp + 0x30], 0xa3
jmp 0x410247
test al, al
jne 0x410247
cmp byte [esp + 0xf], 0
movzx ecx, cl
movzx eax, bl
cmovne ecx, eax
mov dword [esp + 0x30], ecx
mov byte [esp + 0xf], 0
test dl, dl
je 0x41026d
push 0xffc3d44d
push 0
push 0
push 0
mov ecx, 1
call fcn.0041a5e0
add esp, 0x10
mov byte [esp + 0xf], 1
mov eax, dword [esp + 0x30]
test al, al
je 0x41028f
push 0xffc3d44d
push 0
push 0
push 0
mov dl, al
mov ecx, 1
call fcn.0041a5e0
add esp, 0x10
cmp byte [esp + 0x1f], 0
je 0x4102a0
cmp byte [ebp + 0x18], 0
jne 0x4102a8
mov al, bl
jmp 0x4102a4
mov eax, dword [esp + 0x40]
test al, al
jne 0x4102bf
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.0041a5e0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.0041a5e0
add esp, 0x10
cmp byte [esp + 0xf], 0
je 0x410300
cmp byte [esp + 0x16], 0
jne 0x410300
mov dl, byte [esp + 0x34]
xor ecx, ecx
push 0xffc3d44d
push 0
push 0
push 0
call fcn.0041a5e0
add esp, 0x10
mov byte [0x4fe2ba], 1
mov edx, 0x7fff
jmp 0x410429
cmp byte [0x4fe2ba], 0
je 0x40ff1f
mov eax, dword [ebp + 0x18]
test al, al
jne 0x410356
cmp bl, 0xa2
je 0x410339
cmp bl, 0xa3
je 0x410339
cmp bl, 0xa0
je 0x410339
cmp bl, 0xa1
jne 0x410356
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.0041a5e0
mov eax, dword [ebp + 0x18]
add esp, 0x10
test byte [0x4fc2d6], 0xc
je 0x41036d
test al, al
je 0x410384
cmp bl, 0xa4
je 0x41036d
cmp bl, 0xa5
jne 0x410384
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.0041a5e0
add esp, 0x10
mov eax, 0x7ffd
cmp word [esp + 0x24], ax
jne 0x4103e5
test byte [0x4fc2d6], 0x30
jne 0x4103e5
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.0041a5e0
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.0041a5e0
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.0041a5e0
add esp, 0x30
mov edx, 0x7fff
jmp 0x410429
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.0041a5e0
add esp, 0x10
mov edx, 0x7fff
jmp 0x410429
mov edx, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x48], edx
mov eax, dword [ecx + 4]
test eax, eax
je 0x410429
cmp byte [eax], 5
jb 0x410429
movzx eax, word [ecx + 0x14]
shl eax, 0x10
or edx, eax
mov dword [esp + 0x48], edx
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebp + 0x18]
mov byte [eax], 0x68
test cl, cl
je 0x4104d8
cmp byte [esp + 0x17], 0
je 0x410497
cmp byte [edi + 9], 0
je 0x410497
mov esi, dword [esp + 0x20]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push esi
mov ecx, 1
call fcn.0041a5e0
push 0xffc3d44d
push 0
push 0
push esi
mov dl, bl
mov ecx, 2
call fcn.0041a5e0
mov eax, dword [esp + 0x68]
add esp, 0x20
mov edx, dword [esp + 0x10]
push 0
push SysReAllocString
push eax
push edx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
jmp 0x41054e
cmp byte [edi + 8], 0
je 0x4104b0
cmp byte [edi + 0x11], 0
je 0x4104f9
push 0
push SysReAllocString
push edx
jmp 0x410545
cmp byte [esp + 0xe], 0
je 0x410539
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push edx
push dword [ebp + 0x1c]
push ecx
push dword [esp + 0x30]
mov ecx, eax
push ebx
push dword [ebp + 0xc]
jmp 0x40ed93
mov eax, dword [0x4fc424]
mov byte [edi + 0x10], 1
test eax, eax
je 0x4104ef
cmp byte [eax + 8], 0
je 0x4104ef
mov byte [eax + 0x12], 2
cmp byte [esp + 0xe], 0
je 0x410508
or byte [esi], 8
push edx
mov edx, dword [esp + 0x14]
push edx
push dword [ebp + 0x1c]
push ecx
jmp 0x40f01c
cmp bl, 0xa4
je 0x410512
cmp bl, 0xa5
jne 0x410531
push 0xffc3d450
push 0
push 0
push dword [esp + 0x2c]
mov dl, bl
mov ecx, 1
call fcn.0041a5e0
mov ecx, dword [ebp + 0x18]
add esp, 0x10
test cl, cl
jne 0x410539
mov byte [edi + 0x11], 1
mov eax, dword [esp + 0x48]
push 0
push SysReAllocString
push eax
mov edx, dword [esp + 0x1c]
push edx
push dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [esp + 0x34]
push ebx
call fcn.004105b0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret