Function at 0x407140
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 0x407187
cmp esi, 0xffc3d44e
je 0x407187
mov byte [esp + 0x17], 0
cmp esi, 0xffc3d44d
jne 0x40718c
mov byte [esp + 0x17], 1
mov ecx, dword [0x4ca76c]
mov ebx, dword [ebp + 0x10]
test ecx, ecx
jne 0x4071a6
lea eax, [esp + 0x50]
mov dword [esp + 0x10], eax
jmp 0x407255
mov eax, dword [0x4ca7d8]
imul esi, eax, 0x70
inc eax
add esi, ecx
xor ecx, ecx
cmp eax, dword [0x4c8028]
mov dword [esp + 0x10], esi
cmovge eax, ecx
mov dword [0x4ca7d8], 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 [0x4ca7d4], eax
sub ecx, dword [0x4cd020]
mov dword [0x4cd020], eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4c2460]
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4c23ac]
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 0x40723f
cmp esi, dword [0x4ca7d0]
je 0x40723a
push esi
push eax
push 0x418
push dword [0x4ca754]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x407245
mov byte [eax], 0
jmp 0x407245
mov dword [eax], 0x412f4e
mov eax, dword [esp + 0x10]
mov dword [0x4ca7d0], esi
mov esi, dword [ebp + 0x1c]
movzx edx, di
cmp bl, 0xe7
jne 0x407299
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.00408bf0
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 [0x4ca770]
jne 0x4072ed
mov cl, byte [ebp + 0x20]
mov edx, dword [ebp + 0x18]
and cl, 1
mov dword [esp + 0x30], ecx
jne 0x407372
movzx ecx, bl
mov al, dl
xor al, 1
shl al, 7
mov byte [ecx + 0x4cb0c0], al
mov ecx, dword [esp + 0x30]
jmp 0x40736d
mov ecx, dword [ebp + 0x20]
mov edx, dword [0x4cd080]
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 0x40736a
test byte [ebp + 0x20], 0x10
jne 0x40736a
cmp bl, 0xa0
je 0x407320
cmp bl, 0xa1
jne 0x407344
mov edx, dword [ebp + 0x18]
test dl, dl
jne 0x407344
cmp bl, 0xa0
mov dword [esp + 0x40], 0x10
mov eax, 0x20
cmove eax, dword [esp + 0x40]
test byte [0x4cb0af], al
jne 0x40736d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword [0x4cd028], eax
mov dword [0x4cd024], eax
mov al, dl
xor al, 1
shl al, 7
mov byte [esi + 0x4cb0c0], al
jmp 0x40736d
mov edx, dword [ebp + 0x18]
mov eax, 0x20
cmp byte [esp + 0x17], 0
je 0x40737d
mov al, 0x69
jmp 0x407387
test cl, cl
mov esi, 0x61
cmovne eax, esi
cmp byte [0x4cb0ad], 0
mov ecx, dword [esp + 0x10]
lea esi, [ecx + 4]
mov byte [esi], al
mov dword [esp + 0x3c], esi
je 0x4073d4
cmp bl, 0x5b
je 0x4073a7
cmp bl, 0x5c
jne 0x4073d4
test dl, dl
jne 0x4073d4
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.00408aa0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x4cd072], 0
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
je 0x40748d
cmp bl, 0x1b
jne 0x40748d
test dl, dl
jne 0x40748d
push 0
push str.32771
call esi
test eax, eax
je 0x40748d
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 0x407487
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
xor ecx, ecx
call fcn.00412a10
mov dl, byte [0x4cb0be]
mov ecx, 1
push 0xffc3d44d
shr dl, 3
push 0
and dl, 1
push 0
push 0
or dl, 0xa4
call fcn.00412a10
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.00408aa0
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 [0x4cd084]
lea edi, [eax + ecx*4]
mov eax, dword [esp + 0x18]
mov cl, byte [edi + 0x13]
mov byte [esp + 0x16], cl
cmp eax, dword [0x4ca774]
jne 0x4074ba
test cl, cl
jne 0x4074cd
mov ecx, dword [0x4cd080]
movzx eax, bl
lea eax, [eax + eax*4]
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x18]
cmp byte [esp + 0x17], 0
je 0x40752e
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
cmp ecx, 0xffc3d44e
jne 0x407500
test al, al
je 0x407500
cmp dword [0x4cb1e8], edi
jne 0x407500
mov byte [edi + 0xd], 0
mov byte [edi + 0x10], 0
mov dword [0x4cb1e8], 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.00408bf0
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 0x407545
mov byte [edi + 0x11], cl
mov word [edi + 4], dx
cmp eax, dword [0x4ca770]
jne 0x4075b5
test bl, bl
jne 0x407581
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.00408bf0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp bl, 1
je 0x40758b
cmp bl, 2
jne 0x4075b5
cmp dword [0x4ca63c], 0
jne 0x4075df
push 0
push str.32768
call esi
test eax, eax
je 0x4075b2
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4cc810]
je 0x4075dc
mov ecx, dword [ebp + 0x18]
mov eax, dword [0x4cb1e8]
mov esi, dword [esp + 0x18]
test eax, eax
je 0x407614
cmp eax, edi
je 0x407614
test cl, cl
jne 0x407614
cmp esi, dword [0x4ca774]
jne 0x4075fe
xor eax, eax
cmp byte [edi + 8], al
sete al
jmp 0x407607
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 0x40750c
mov eax, dword [0x4cb1e8]
movzx eax, byte [eax + 8]
test eax, eax
je 0x407614
mov eax, dword [0x4cb1e8]
mov byte [eax + 0x12], 1
cmp byte [edi + 9], 0
jne 0x40763d
cmp byte [edi + 0xa], 0
jne 0x40763d
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 0x407510
mov dword [esp + 0x34], 0
mov eax, 0x7fff
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
test cl, cl
je 0x407684
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 0x407694
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov word [edi + 4], dx
jmp 0x407694
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 [0x4ca774]
jne 0x407713
cmp byte [edi + 8], dl
je 0x40772f
mov eax, dword [0x4cd080]
cmp byte [eax + 0xcb5], dl
jne 0x4076c7
cmp byte [eax + 0xcc9], dl
jne 0x4076c7
xor cl, cl
jmp 0x4076c9
mov cl, 1
cmp byte [eax + 0xcdd], 0
mov byte [eax + 0x161], cl
jne 0x4076e5
cmp byte [eax + 0xcf1], 0
jne 0x4076e5
xor cl, cl
jmp 0x4076e7
mov cl, 1
cmp byte [eax + 0xc8d], 0
mov byte [eax + 0x175], cl
jne 0x407709
cmp byte [eax + 0xca1], 0
jne 0x407709
xor cl, cl
mov byte [eax + 0x14d], cl
jmp 0x40772f
mov cl, 1
mov byte [eax + 0x14d], cl
jmp 0x40772f
cmp dword [0x4ca774], 0
jne 0x40772f
mov cl, 1
call fcn.004154e0
mov byte [0x4cb0bd], al
mov dl, 1
mov byte [0x4cb0be], al
mov eax, dword [edi]
test eax, eax
je 0x40773f
cmp dword [eax], 7
mov byte [esp + 0x17], 1
je 0x407744
mov byte [esp + 0x17], 0
test dl, dl
jne 0x40774f
mov cl, 1
call fcn.004154e0
mov cl, byte [edi + 9]
mov eax, dword [ebp + 0x18]
test cl, cl
je 0x4079e0
test al, al
jne 0x4079e0
mov eax, dword [0x4cb1e8]
test eax, eax
je 0x40777c
cmp byte [edi + 0xa], 0
je 0x40777c
cmp edi, eax
jne 0x4079dd
cmp cl, 1
jne 0x40782d
cmp byte [esp + 0x16], 0
mov ecx, dword [esp + 0x30]
jne 0x407793
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.004156f0
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 [0x4cb218]
jae 0x407915
mov cl, byte [0x4cb08d]
nop dword [eax]
cmp byte [esp + 0x16], 0
mov eax, dword [0x4cb208]
mov edx, dword [eax + edx*4]
mov dword [esp + 0x4c], edx
je 0x4077f9
movzx eax, word [edx + 0xa]
jmp 0x4077fd
movzx eax, byte [edx + 0x11]
cmp dword [esp + 0x38], eax
je 0x40780c
test byte [edx + 0xe], ch
je 0x4078f9
cmp word [edx + 6], 0
je 0x407898
cmp byte [edx + 0x19], 0
je 0x4078f9
test cl, cl
jne 0x4078f9
mov esi, dword [esp + 0x18]
xor dl, dl
cmp edi, dword [0x4cb1e8]
je 0x407840
mov dword [0x4cb1e8], edi
mov byte [edi + 0x12], dl
cmp byte [edi + 0xa], 0
je 0x407963
mov al, byte [edi + 8]
mov cl, byte [0x4cb0bd]
test al, al
je 0x40785b
not al
and cl, al
test cl, cl
jne 0x40786d
test dl, dl
jne 0x40786d
test byte [edi + 0xc], 1
je 0x407963
cmp esi, dword [0x4ca774]
jne 0x40791c
cmp byte [esp + 0x16], 0
je 0x40791c
mov eax, dword [0x4cd078]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x30]
jmp 0x40792c
mov esi, dword [edx + 0x20]
mov eax, esi
test eax, eax
je 0x4078f9
cmp byte [eax + 0x1c], 0
jne 0x4078b0
mov eax, dword [eax + 8]
test eax, eax
jne 0x4078a1
jmp 0x4078f9
cmp byte [esi + 0x1c], 0
je 0x4078ee
test cl, cl
je 0x4078c9
mov ecx, esi
call fcn.004904c0
test al, al
je 0x4078e4
mov edx, dword [esp + 0x4c]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x407829
mov edx, dword [edx + 0x1c]
call fcn.0040bc50
test eax, eax
jne 0x407829
mov cl, byte [0x4cb08d]
mov edx, dword [esp + 0x4c]
mov esi, dword [esi + 8]
test esi, esi
jne 0x4078b0
mov ch, byte [esp + 0x1f]
mov edx, dword [esp + 0x44]
movzx eax, word [0x4cb218]
inc edx
mov dword [esp + 0x44], edx
cmp edx, eax
jl 0x4077e0
mov esi, dword [esp + 0x18]
mov dl, 1
jmp 0x407840
movzx ecx, cl
movzx eax, bl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4cd074]
movzx eax, word [eax + ecx*2]
movzx ecx, ax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
test ax, ax
jns 0x407946
mov word [edi + 4], ax
jmp 0x40796f
and eax, 0x7fff
cmp ax, word [0x4cb218]
jae 0x407963
mov ecx, eax
mov eax, dword [0x4cd07c]
mov ax, word [eax + ecx*2]
mov word [edi + 4], ax
mov eax, 0x7fff
cmp word [esp + 0x24], ax
jne 0x4079dd
test dl, dl
je 0x40797e
mov eax, dword [esp + 0x3c]
or byte [edi + 0xc], 8
mov byte [eax], 0x23
cmp byte [edi + 8], 0
jne 0x4079c6
test byte [edi + 0xc], 1
jne 0x4079c6
cmp byte [esp + 0x17], 0
jne 0x4079c6
test dl, dl
jne 0x4079c6
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.00408aa0
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 0x407510
mov eax, dword [ebp + 0x18]
cmp byte [edi + 0xa], 0
mov byte [esp + 0x1f], 0
je 0x407a7a
test al, al
je 0x407a7a
mov ch, byte [esp + 0xe]
cmp dword [0x4cb1e8], edi
jne 0x407a11
test ch, ch
je 0x407a7a
mov dword [0x4cb1e8], 0
cmp byte [edi + 0xb], 0
jne 0x407a75
mov cl, byte [edi + 0xc]
test cl, 8
je 0x407a29
xor dl, dl
and cl, 0xf7
mov byte [edi + 0xc], cl
jmp 0x407a2b
mov dl, 1
test ch, ch
je 0x407a5f
test dl, dl
je 0x407a5f
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.00408aa0
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 0x407510
mov byte [esp + 0x1f], 1
cmp byte [edi + 9], 0
je 0x407c50
test al, al
je 0x407c50
mov eax, dword [0x4cb1e8]
xor ecx, ecx
cmp eax, edi
cmove eax, ecx
mov dword [0x4cb1e8], eax
cmp byte [edi + 0xe], cl
je 0x407abc
push 0xffc3d44d
push ecx
push ecx
mov byte [edi + 0xe], cl
mov dl, 0x12
push ecx
mov ecx, 1
call fcn.00412a10
add esp, 0x10
cmp byte [edi + 0xf], 0
je 0x407ae0
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov byte [edi + 0xf], 0
mov ecx, 1
call fcn.00412a10
add esp, 0x10
mov edx, dword [esp + 0x24]
mov eax, 0x7fff
cmp dx, ax
jne 0x407b12
mov al, byte [edi + 0xc]
test al, 8
je 0x407b12
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 0x407510
mov cl, byte [esp + 0x17]
mov al, byte [edi + 0x12]
test cl, cl
je 0x407ba2
cmp al, 2
jne 0x407b86
mov edi, dword [esp + 0x20]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push edi
mov ecx, 1
call fcn.00412a10
push 0xffc3d44d
push 0
push 0
push edi
mov dl, bl
mov ecx, 2
call fcn.00412a10
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.00408aa0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 1
jne 0x407bee
mov edx, dword [esp + 0x10]
mov ecx, esi
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
push edx
push dword [ebp + 0x18]
jmp 0x407510
test al, al
je 0x407bee
mov eax, 0x7fff
cmp dx, ax
jne 0x407bee
cmp byte [edi + 8], 0
jne 0x407afa
test byte [edi + 0xc], 1
mov edx, dword [esp + 0x10]
jne 0x407afe
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.00408aa0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0xa], 0
jne 0x407c3e
cmp byte [edi + 8], 0
jne 0x407afa
test byte [edi + 0xc], 1
jne 0x407afa
test cl, cl
jne 0x407afa
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.00408aa0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0xf], 0
jne 0x407c54
cmp byte [edi + 0xb], 0
jne 0x407c54
jmp 0x407afa
mov edx, dword [esp + 0x24]
cmp dword [0x4cb1e8], 0
mov byte [esp + 0xe], 0
je 0x40804b
mov ecx, dword [ebp + 0x18]
test cl, cl
je 0x407c77
cmp byte [edi + 0xb], 0
je 0x40804b
mov eax, 0x7fff
cmp dx, ax
jne 0x4083a9
movzx eax, word [edi + 6]
xor esi, esi
mov dword [esp + 0x38], eax
cmp ax, word [esp + 0x40]
je 0x407e49
mov ecx, eax
nop dword [eax]
mov eax, dword [0x4cb208]
movzx ecx, cx
mov edx, dword [eax + ecx*4]
mov al, byte [edx + 0x11]
test al, al
jne 0x407cf8
cmp word [edx + 0xa], 0
je 0x407d35
movzx eax, word [edx + 0xc]
mov dword [esp + 0x38], eax
movzx eax, word [edx + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4cd084]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x38]
cmp byte [eax + 0xd], 0
je 0x407d23
cmp byte [edx + 0x16], 0
je 0x407d18
cmp byte [ebp + 0x18], 0
jne 0x407d33
mov ax, word [edx + 4]
mov word [edi + 4], ax
test esi, esi
jne 0x407d3d
jmp 0x407d23
movzx ecx, word [edx + 0xc]
mov dword [esp + 0x38], ecx
test al, al
je 0x407cc5
mov ebx, dword [0x4cd080]
movzx eax, al
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
mov ebx, dword [ebp + 0x10]
jmp 0x407cd8
cmp byte [ebp + 0x18], 0
jne 0x407d23
test esi, esi
cmove esi, edx
mov eax, 0x7fff
cmp cx, ax
jne 0x407ca0
jmp 0x407d35
mov esi, edx
test esi, esi
je 0x407e42
movzx ecx, byte [esi + 0x11]
cmp ecx, 0x12
ja case.0x407d51.1
movzx eax, byte [ecx + 0x408a6c]
jmp dword [eax*4 + 0x408a58]
mov ecx, dword [0x4cd080]
mov eax, 0xc80
mov edx, 0xc94
cmp byte [ecx + 0xca1], 0
cmovne eax, edx
add eax, ecx
jmp 0x407dcf
mov ecx, dword [0x4cd080]
mov eax, 0xca8
mov edx, 0xcbc
cmp byte [ecx + 0xcc9], 0
cmovne eax, edx
add eax, ecx
jmp 0x407dcf
mov ecx, dword [0x4cd080]
mov eax, 0xcd0
mov edx, 0xce4
cmp byte [ecx + 0xcf1], 0
cmovne eax, edx
add eax, ecx
jmp 0x407dcf
movzx eax, word [esi + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4cd084]
lea eax, [eax + ecx*4]
jmp 0x407dcf
lea eax, [ecx + ecx*4]
mov ecx, dword [0x4cd080]
lea eax, [ecx + eax*4]
mov dword [0x4cb1e8], eax
movzx eax, word [esi + 6]
test ax, ax
je 0x407de5
mov edx, eax
mov dword [esp + 0x2c], edx
jmp 0x407e2d
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.0040c720
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
jne 0x407e29
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
push esi
push dword [ebp + 0x18]
jmp 0x40750c
mov edx, dword [esp + 0x2c]
mov eax, dword [0x4cb1e8]
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x24], edx
movzx esi, dx
mov byte [eax + 0x12], 2
jmp 0x407e4d
mov ecx, dword [ebp + 0x18]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
mov eax, 0x7ffe
cmp si, ax
je 0x407e65
mov eax, 0x7ffd
cmp si, ax
jne 0x40804b
test cl, cl
jne 0x407e6d
mov byte [edi + 0x10], 1
test byte [0x4cb0be], 0xc
jne 0x407e90
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00412a10
mov ecx, dword [ebp + 0x18]
add esp, 0x10
cmp bl, 0xa2
je 0x407e9a
cmp bl, 0xa3
jne 0x407eba
test cl, cl
jne 0x407eba
push 0xffc3d44d
push 0
push 0
push dword [esp + 0x2c]
mov dl, bl
mov ecx, 1
call fcn.00412a10
add esp, 0x10
mov eax, dword [0x4cb1e8]
mov byte [eax + 0xe], 1
mov eax, 0x7ffd
cmp si, ax
jne 0x407efb
test byte [0x4cb0be], 0x30
jne 0x407eed
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.00412a10
add esp, 0x10
mov eax, dword [0x4cb1e8]
mov byte [eax + 0xf], 1
jmp 0x407f77
mov eax, 0x7ffe
cmp si, ax
jne 0x407f77
cmp bl, 0xa0
je 0x407f0f
cmp bl, 0xa1
jne 0x407f31
cmp byte [ebp + 0x18], 0
jne 0x407f31
push 0xffc3d44d
push 0
push 0
push dword [esp + 0x2c]
mov dl, bl
mov ecx, 1
call fcn.00412a10
add esp, 0x10
test byte [0x4cb0be], 0x10
je 0x407f54
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa0
mov ecx, 1
call fcn.00412a10
add esp, 0x10
test byte [0x4cb0be], 0x20
je 0x407f77
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa1
mov ecx, 1
call fcn.00412a10
add esp, 0x10
test byte [0x4cb0be], 1
je 0x407f9a
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa2
mov ecx, 1
call fcn.00412a10
add esp, 0x10
test byte [0x4cb0be], 2
je 0x407fbd
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa3
mov ecx, 1
call fcn.00412a10
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00412a10
mov eax, 0x7ffd
add esp, 0x10
cmp si, ax
jne 0x40801e
mov eax, dword [0x4cb1e8]
cmp byte [eax + 0xf], 0
je 0x40801e
cmp bl, 0x60
jb 0x407ff6
cmp bl, 0x69
jbe 0x407ffb
cmp bl, 0x6e
jne 0x40801e
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.00412a10
mov eax, dword [0x4cb1e8]
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 0x408030
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 0x408a3e
mov eax, 0x7fff
cmp dx, ax
jne 0x4083a6
mov al, byte [edi + 8]
mov dl, byte [0x4cb0bd]
test al, al
je 0x40806a
not al
and dl, al
mov eax, dword [esp + 0x18]
mov dh, byte [esp + 0x16]
cmp eax, dword [0x4ca774]
jne 0x40809a
test dh, dh
je 0x40809a
mov eax, dword [0x4cd078]
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 0x4080b2
movzx eax, bl
movzx ecx, dl
shl ecx, 8
mov dword [esp + 0x44], eax
add ecx, eax
mov eax, dword [0x4cd074]
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 0x408147
cmp byte [0x4cd072], 0
je 0x408147
cmp bl, 9
je 0x408147
mov eax, dword [esp + 0x18]
and dl, 0xf3
cmp eax, dword [0x4ca774]
jne 0x4080ff
test dh, dh
je 0x4080ff
mov eax, dword [0x4cd078]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x30]
jmp 0x40810e
mov eax, dword [0x4cd074]
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 0x408325
mov esi, 0x7fff
cmp ax, si
jb 0x40814b
mov ecx, dword [ebp + 0x18]
mov edx, esi
jmp 0x4082d6
mov edx, dword [esp + 0x24]
movzx eax, cx
mov ecx, dword [ebp + 0x18]
test ax, ax
jns 0x40823f
test cl, cl
jne 0x4082c2
mov ah, byte [0x4cb0bd]
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 0x408210
nop dword [eax]
mov eax, dword [0x4cb208]
movzx ecx, dx
mov ecx, dword [eax + ecx*4]
cmp byte [ecx + 0x15], 0
movzx edx, word [ecx + 0xc]
jne 0x4081d6
movzx eax, byte [ecx + 0xf]
mov ebx, dword [ebp + 0x10]
not eax
test byte [0x4cb0bd], al
jne 0x408206
cmp byte [ecx + 0x16], 0
jne 0x408206
cmp byte [ecx + 0x11], 0
jne 0x408206
cmp word [ecx + 0xa], 0
jne 0x408206
cmp word [ecx + 6], 0
jne 0x408206
mov eax, esi
not eax
test dword [ecx], eax
jne 0x408206
movzx eax, byte [0x4cb0bd]
not eax
test byte [ecx + 0xe], al
je 0x408228
mov eax, 0x7fff
cmp dx, ax
jne 0x4081b0
mov ecx, dword [ebp + 0x18]
mov eax, 0x7fff
movzx edx, ax
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], edx
jmp 0x4082c6
movzx eax, word [ecx + 4]
mov ecx, dword [ebp + 0x18]
movzx edx, ax
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], edx
jmp 0x4082c6
mov edx, 0x7fff
cmp ax, dx
je 0x4082d6
and eax, edx
test cl, cl
je 0x408304
cmp ax, word [0x4cb218]
jae 0x4082bb
mov esi, eax
mov eax, dword [0x4cd07c]
cmp word [eax + esi*2], dx
je 0x4082bb
cmp byte [esp + 0x1f], 0
jne 0x4082a8
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.0040c720
mov ecx, dword [ebp + 0x18]
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
je 0x4082a8
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
jmp 0x4082c6
mov eax, dword [0x4cd07c]
movzx edx, word [eax + esi*2]
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], edx
jmp 0x4082c6
cmp byte [esp + 0x1f], 0
jne 0x4082da
mov edx, dword [esp + 0x24]
mov eax, 0x7fff
cmp dx, ax
jne 0x4083a9
mov edx, eax
test cl, cl
je 0x408342
cmp byte [edi + 8], 0
jne 0x40832f
test byte [edi + 0xc], 1
jne 0x40832f
cmp byte [edi + 9], 0
je 0x40832f
cmp byte [esp + 0x17], 0
jne 0x40832f
push 0
push SysReAllocString
push 0x7fff
jmp 0x408a35
mov edx, dword [esp + 0x24]
cmp ax, word [0x4cb218]
jae 0x4082c6
mov ecx, eax
mov eax, dword [0x4cd07c]
mov ax, word [eax + ecx*2]
mov ecx, dword [ebp + 0x18]
mov word [edi + 4], ax
jmp 0x4082c6
mov ecx, dword [ebp + 0x18]
mov edx, 0x7fff
jmp 0x4082d6
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
push dword [ebp + 0x1c]
push ecx
jmp 0x40750c
cmp word [edi + 4], dx
lea ecx, [edi + 4]
jne 0x40835f
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
push dword [ebp + 0x1c]
push 0
jmp 0x40750c
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.0040c720
mov edx, dword [esp + 0x20]
add esp, 0x10
cmp byte [esp + 0xe], 0
je 0x408391
push 0x7fff
push edx
push esi
push 0
jmp 0x40750c
push 0
push SysReAllocString
push 0x7fff
push edx
push esi
push 0
jmp 0x408a3e
mov ecx, dword [ebp + 0x18]
mov al, byte [edi + 0xc]
lea esi, [edi + 0xc]
test al, 8
je 0x4083c0
test cl, cl
je 0x4083c0
and al, 0xf7
mov byte [esp + 0xe], 1
mov byte [esi], al
mov eax, edx
and eax, 0x7fff
cmp ax, word [0x4cb218]
jae 0x4084c5
cmp dword [esp + 0x34], 0
jne 0x4084c5
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.0040c720
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
jne 0x4084bf
mov eax, dword [esp + 0x3c]
cmp byte [eax], 0x69
jne 0x408424
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
jmp 0x40750c
mov eax, dword [ebp + 0x18]
test al, al
je 0x40845b
cmp byte [edi + 0x11], 0
mov edx, dword [esp + 0x10]
je 0x40844c
push 0
push SysReAllocString
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
push edx
push eax
jmp 0x408a3e
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
push edx
jmp 0x40750b
lea ecx, [edi + 4]
mov eax, 0x7fff
cmp word [ecx], ax
je 0x40834b
push 0
lea eax, [esp + 0x12]
mov byte [esp + 0x12], 0
push eax
push esi
push dword [ebp + 0x1c]
mov dl, 1
call fcn.0040c720
mov edx, dword [esp + 0x20]
add esp, 0x10
cmp byte [esp + 0xe], 0
je 0x4084a1
push 0x7fff
push edx
push dword [ebp + 0x1c]
push 0
jmp 0x40750c
and byte [esi], 0xf7
push 0
push SysReAllocString
push 0x7fff
push edx
push dword [ebp + 0x1c]
mov byte [edi + 0x11], 1
push 0
jmp 0x408a3e
mov ecx, dword [esp + 0x2c]
jmp 0x4084c9
mov ecx, dword [esp + 0x24]
and ecx, 0x7fff
test byte [0x4cb0be], 0xcc
mov dword [esp + 0x24], ecx
je 0x4085af
cmp byte [esp + 0xe], 0
jne 0x4085af
cmp byte [0x4cd071], 0
jne 0x408504
mov eax, dword [esp + 0x18]
cmp eax, dword [0x4ca770]
jne 0x4085af
test byte [0x4cb0be], 0xc0
mov dl, byte [0x4cb0bc]
je 0x408543
test dl, 0xc0
jne 0x408533
cmp cx, word [0x4cb218]
jae 0x408543
mov eax, dword [0x4cb208]
movzx ecx, cx
mov eax, dword [eax + ecx*4]
mov al, byte [eax + 0xf]
and al, 0xc0
je 0x40853f
mov byte [0x4cd070], 1
jmp 0x4085af
mov ecx, dword [esp + 0x24]
cmp byte [0x4cd070], 0
jne 0x4085af
mov al, byte [0x4cb0be]
test al, 0xc
je 0x4085af
test al, 3
jne 0x4085af
test dl, 0xc
jne 0x408579
cmp cx, word [0x4cb218]
jae 0x4085af
mov eax, dword [0x4cb208]
movzx ecx, cx
mov eax, dword [eax + ecx*4]
mov al, byte [eax + 0xf]
and al, 0xc
je 0x4085af
cmp dword [0x4ca774], 0
je 0x40858b
mov byte [0x4cd070], 1
jmp 0x4085af
movzx eax, word [0x4c9228]
mov ecx, 2
mov dl, byte [0x4c921a]
push 0xffc3d44d
push 0
push 0
push eax
call fcn.00412a10
add esp, 0x10
mov eax, dword [esp + 0x24]
movzx ecx, ax
lea eax, [ecx - 0x7ffa]
cmp eax, 4
ja case.default.0x4085c5
jmp dword [eax*4 + 0x408a80]
cmp byte [0x4cd072], 0
je 0x40840f
xor al, al
test byte [0x4cb0be], 4
je 0x4085eb
mov edx, 0xa4
jmp 0x4085fd
test byte [0x4cb0be], 8
movzx edx, al
mov eax, 0xa5
cmovne edx, eax
cmp byte [0x4cd072], 0
mov dword [esp + 0x40], edx
je 0x408686
mov eax, 0x7ffb
cmp word [esp + 0x24], ax
je case.0x4085c5.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.00412a10
add esp, 0x10
cmp byte [edi + 8], 0
je 0x408675
cmp bl, 0x5b
je 0x408675
cmp bl, 0x5c
je 0x408675
cmp byte [ebp + 0x18], 0
jne 0x408675
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.00412a10
add esp, 0x10
mov byte [0x4cd072], 0
mov edx, 0x7fff
jmp 0x408919
cmp bl, 0xa4
je 0x408695
mov byte [esp + 0x1f], 0
cmp bl, 0xa5
jne 0x40869a
mov byte [esp + 0x1f], 1
cmp bl, 0xa0
je 0x4086a8
cmp bl, 0xa1
je 0x4086a8
xor cl, cl
jmp 0x4086aa
mov cl, 1
mov byte [esp + 0x16], cl
cmp bl, 0xa2
je 0x4086bd
mov byte [esp + 0xf], 0
cmp bl, 0xa3
jne 0x4086c2
mov byte [esp + 0xf], 1
xor dl, dl
test byte [0x4cb0be], 0x10
mov dword [esp + 0x34], edx
je 0x4086d5
mov dl, 0xa0
jmp 0x4086f4
test byte [0x4cb0be], 0x20
mov eax, dword [ebp + 0x18]
je 0x4086e5
mov dl, 0xa1
jmp 0x4086f7
test al, al
jne 0x4086fb
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 [0x4cb0be], 1
mov dword [esp + 0x30], ecx
je 0x408711
mov byte [esp + 0x30], 0xa2
jmp 0x408737
test byte [0x4cb0be], 2
je 0x408721
mov byte [esp + 0x30], 0xa3
jmp 0x408737
test al, al
jne 0x408737
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 0x40875d
push 0xffc3d44d
push 0
push 0
push 0
mov ecx, 1
call fcn.00412a10
add esp, 0x10
mov byte [esp + 0xf], 1
mov eax, dword [esp + 0x30]
test al, al
je 0x40877f
push 0xffc3d44d
push 0
push 0
push 0
mov dl, al
mov ecx, 1
call fcn.00412a10
add esp, 0x10
cmp byte [esp + 0x1f], 0
je 0x408790
cmp byte [ebp + 0x18], 0
jne 0x408798
mov al, bl
jmp 0x408794
mov eax, dword [esp + 0x40]
test al, al
jne 0x4087af
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00412a10
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00412a10
add esp, 0x10
cmp byte [esp + 0xf], 0
je 0x4087f0
cmp byte [esp + 0x16], 0
jne 0x4087f0
mov dl, byte [esp + 0x34]
xor ecx, ecx
push 0xffc3d44d
push 0
push 0
push 0
call fcn.00412a10
add esp, 0x10
mov byte [0x4cd072], 1
mov edx, 0x7fff
jmp 0x408919
cmp byte [0x4cd072], 0
je 0x40840f
mov eax, dword [ebp + 0x18]
test al, al
jne 0x408846
cmp bl, 0xa2
je 0x408829
cmp bl, 0xa3
je 0x408829
cmp bl, 0xa0
je 0x408829
cmp bl, 0xa1
jne 0x408846
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.00412a10
mov eax, dword [ebp + 0x18]
add esp, 0x10
test byte [0x4cb0be], 0xc
je 0x40885d
test al, al
je 0x408874
cmp bl, 0xa4
je 0x40885d
cmp bl, 0xa5
jne 0x408874
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00412a10
add esp, 0x10
mov eax, 0x7ffd
cmp word [esp + 0x24], ax
jne 0x4088d5
test byte [0x4cb0be], 0x30
jne 0x4088d5
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.00412a10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00412a10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.00412a10
add esp, 0x30
mov edx, 0x7fff
jmp 0x408919
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00412a10
add esp, 0x10
mov edx, 0x7fff
jmp 0x408919
mov edx, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x48], edx
mov eax, dword [ecx + 4]
test eax, eax
je 0x408919
cmp byte [eax], 5
jb 0x408919
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 0x4089c8
cmp byte [esp + 0x17], 0
je 0x408987
cmp byte [edi + 9], 0
je 0x408987
mov esi, dword [esp + 0x20]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push esi
mov ecx, 1
call fcn.00412a10
push 0xffc3d44d
push 0
push 0
push esi
mov dl, bl
mov ecx, 2
call fcn.00412a10
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 0x408a3e
cmp byte [edi + 8], 0
je 0x4089a0
cmp byte [edi + 0x11], 0
je 0x4089e9
push 0
push SysReAllocString
push edx
jmp 0x408a35
cmp byte [esp + 0xe], 0
je 0x408a29
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 0x407283
mov eax, dword [0x4cb1e8]
mov byte [edi + 0x10], 1
test eax, eax
je 0x4089df
cmp byte [eax + 8], 0
je 0x4089df
mov byte [eax + 0x12], 2
cmp byte [esp + 0xe], 0
je 0x4089f8
or byte [esi], 8
push edx
mov edx, dword [esp + 0x14]
push edx
push dword [ebp + 0x1c]
push ecx
jmp 0x40750c
cmp bl, 0xa4
je 0x408a02
cmp bl, 0xa5
jne 0x408a21
push 0xffc3d450
push 0
push 0
push dword [esp + 0x2c]
mov dl, bl
mov ecx, 1
call fcn.00412a10
mov ecx, dword [ebp + 0x18]
add esp, 0x10
test cl, cl
jne 0x408a29
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.00408aa0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret