Function at 0x4070e0
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 0x407127
cmp esi, 0xffc3d44e
je 0x407127
mov byte [esp + 0x17], 0
cmp esi, 0xffc3d44d
jne 0x40712c
mov byte [esp + 0x17], 1
mov ecx, dword [0x4eb754]
mov ebx, dword [ebp + 0x10]
test ecx, ecx
jne 0x407146
lea eax, [esp + 0x50]
mov dword [esp + 0x10], eax
jmp 0x4071f5
mov eax, dword [0x4eb7c0]
imul esi, eax, 0x70
inc eax
add esi, ecx
xor ecx, ecx
cmp eax, dword [0x4e88d0]
mov dword [esp + 0x10], esi
cmovge eax, ecx
mov dword [0x4eb7c0], 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 [0x4eb7bc], eax
sub ecx, dword [0x4ee008]
mov dword [0x4ee008], eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4e1d60]
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4e1ca4]
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 0x4071df
cmp esi, dword [0x4eb7b8]
je 0x4071da
push esi
push eax
push 0x418
push dword [0x4eb73c]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4071e5
mov byte [eax], 0
jmp 0x4071e5
mov dword [eax], 0x412f4e
mov eax, dword [esp + 0x10]
mov dword [0x4eb7b8], esi
mov esi, dword [ebp + 0x1c]
movzx edx, di
cmp bl, 0xe7
jne 0x407239
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.00408b90
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 [0x4eb758]
jne 0x40728d
mov cl, byte [ebp + 0x20]
mov edx, dword [ebp + 0x18]
and cl, 1
mov dword [esp + 0x30], ecx
jne 0x407312
movzx ecx, bl
mov al, dl
xor al, 1
shl al, 7
mov byte [ecx + 0x4ec0a8], al
mov ecx, dword [esp + 0x30]
jmp 0x40730d
mov ecx, dword [ebp + 0x20]
mov edx, dword [0x4ee068]
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 0x40730a
test byte [ebp + 0x20], 0x10
jne 0x40730a
cmp bl, 0xa0
je 0x4072c0
cmp bl, 0xa1
jne 0x4072e4
mov edx, dword [ebp + 0x18]
test dl, dl
jne 0x4072e4
cmp bl, 0xa0
mov dword [esp + 0x40], 0x10
mov eax, 0x20
cmove eax, dword [esp + 0x40]
test byte [0x4ec097], al
jne 0x40730d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword [0x4ee010], eax
mov dword [0x4ee00c], eax
mov al, dl
xor al, 1
shl al, 7
mov byte [esi + 0x4ec0a8], al
jmp 0x40730d
mov edx, dword [ebp + 0x18]
mov eax, 0x20
cmp byte [esp + 0x17], 0
je 0x40731d
mov al, 0x69
jmp 0x407327
test cl, cl
mov esi, 0x61
cmovne eax, esi
cmp byte [0x4ec095], 0
mov ecx, dword [esp + 0x10]
lea esi, [ecx + 4]
mov byte [esi], al
mov dword [esp + 0x3c], esi
je 0x407374
cmp bl, 0x5b
je 0x407347
cmp bl, 0x5c
jne 0x407374
test dl, dl
jne 0x407374
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.00408a40
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x4ee05a], 0
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
je 0x40742d
cmp bl, 0x1b
jne 0x40742d
test dl, dl
jne 0x40742d
push 0
push str.32771
call esi
test eax, eax
je 0x40742d
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 0x407427
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
xor ecx, ecx
call fcn.00412960
mov dl, byte [0x4ec0a6]
mov ecx, 1
push 0xffc3d44d
shr dl, 3
push 0
and dl, 1
push 0
push 0
or dl, 0xa4
call fcn.00412960
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.00408a40
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 [0x4ee06c]
lea edi, [eax + ecx*4]
mov eax, dword [esp + 0x18]
mov cl, byte [edi + 0x13]
mov byte [esp + 0x16], cl
cmp eax, dword [0x4eb75c]
jne 0x40745a
test cl, cl
jne 0x40746d
mov ecx, dword [0x4ee068]
movzx eax, bl
lea eax, [eax + eax*4]
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x18]
cmp byte [esp + 0x17], 0
je 0x4074ce
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
cmp ecx, 0xffc3d44e
jne 0x4074a0
test al, al
je 0x4074a0
cmp dword [0x4ec1d0], edi
jne 0x4074a0
mov byte [edi + 0xd], 0
mov byte [edi + 0x10], 0
mov dword [0x4ec1d0], 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.00408b90
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 0x4074e5
mov byte [edi + 0x11], cl
mov word [edi + 4], dx
cmp eax, dword [0x4eb758]
jne 0x407555
test bl, bl
jne 0x407521
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.00408b90
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp bl, 1
je 0x40752b
cmp bl, 2
jne 0x407555
cmp dword [0x4eb624], 0
jne 0x40757f
push 0
push str.32768
call esi
test eax, eax
je 0x407552
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ed7f8]
je 0x40757c
mov ecx, dword [ebp + 0x18]
mov eax, dword [0x4ec1d0]
mov esi, dword [esp + 0x18]
test eax, eax
je 0x4075b4
cmp eax, edi
je 0x4075b4
test cl, cl
jne 0x4075b4
cmp esi, dword [0x4eb75c]
jne 0x40759e
xor eax, eax
cmp byte [edi + 8], al
sete al
jmp 0x4075a7
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 0x4074ac
mov eax, dword [0x4ec1d0]
movzx eax, byte [eax + 8]
test eax, eax
je 0x4075b4
mov eax, dword [0x4ec1d0]
mov byte [eax + 0x12], 1
cmp byte [edi + 9], 0
jne 0x4075dd
cmp byte [edi + 0xa], 0
jne 0x4075dd
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 0x4074b0
mov dword [esp + 0x34], 0
mov eax, 0x7fff
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
test cl, cl
je 0x407624
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 0x407634
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov word [edi + 4], dx
jmp 0x407634
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 [0x4eb75c]
jne 0x4076b3
cmp byte [edi + 8], dl
je 0x4076cf
mov eax, dword [0x4ee068]
cmp byte [eax + 0xcb5], dl
jne 0x407667
cmp byte [eax + 0xcc9], dl
jne 0x407667
xor cl, cl
jmp 0x407669
mov cl, 1
cmp byte [eax + 0xcdd], 0
mov byte [eax + 0x161], cl
jne 0x407685
cmp byte [eax + 0xcf1], 0
jne 0x407685
xor cl, cl
jmp 0x407687
mov cl, 1
cmp byte [eax + 0xc8d], 0
mov byte [eax + 0x175], cl
jne 0x4076a9
cmp byte [eax + 0xca1], 0
jne 0x4076a9
xor cl, cl
mov byte [eax + 0x14d], cl
jmp 0x4076cf
mov cl, 1
mov byte [eax + 0x14d], cl
jmp 0x4076cf
cmp dword [0x4eb75c], 0
jne 0x4076cf
mov cl, 1
call fcn.00415420
mov byte [0x4ec0a5], al
mov dl, 1
mov byte [0x4ec0a6], al
mov eax, dword [edi]
test eax, eax
je 0x4076df
cmp dword [eax], 7
mov byte [esp + 0x17], 1
je 0x4076e4
mov byte [esp + 0x17], 0
test dl, dl
jne 0x4076ef
mov cl, 1
call fcn.00415420
mov cl, byte [edi + 9]
mov eax, dword [ebp + 0x18]
test cl, cl
je 0x407980
test al, al
jne 0x407980
mov eax, dword [0x4ec1d0]
test eax, eax
je 0x40771c
cmp byte [edi + 0xa], 0
je 0x40771c
cmp edi, eax
jne 0x40797d
cmp cl, 1
jne 0x4077cd
cmp byte [esp + 0x16], 0
mov ecx, dword [esp + 0x30]
jne 0x407733
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.00415630
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 [0x4ec200]
jae 0x4078b5
mov cl, byte [0x4ec075]
nop dword [eax]
cmp byte [esp + 0x16], 0
mov eax, dword [0x4ec1f0]
mov edx, dword [eax + edx*4]
mov dword [esp + 0x4c], edx
je 0x407799
movzx eax, word [edx + 0xa]
jmp 0x40779d
movzx eax, byte [edx + 0x11]
cmp dword [esp + 0x38], eax
je 0x4077ac
test byte [edx + 0xe], ch
je 0x407899
cmp word [edx + 6], 0
je 0x407838
cmp byte [edx + 0x19], 0
je 0x407899
test cl, cl
jne 0x407899
mov esi, dword [esp + 0x18]
xor dl, dl
cmp edi, dword [0x4ec1d0]
je 0x4077e0
mov dword [0x4ec1d0], edi
mov byte [edi + 0x12], dl
cmp byte [edi + 0xa], 0
je 0x407903
mov al, byte [edi + 8]
mov cl, byte [0x4ec0a5]
test al, al
je 0x4077fb
not al
and cl, al
test cl, cl
jne 0x40780d
test dl, dl
jne 0x40780d
test byte [edi + 0xc], 1
je 0x407903
cmp esi, dword [0x4eb75c]
jne 0x4078bc
cmp byte [esp + 0x16], 0
je 0x4078bc
mov eax, dword [0x4ee060]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x30]
jmp 0x4078cc
mov esi, dword [edx + 0x20]
mov eax, esi
test eax, eax
je 0x407899
cmp byte [eax + 0x1c], 0
jne 0x407850
mov eax, dword [eax + 8]
test eax, eax
jne 0x407841
jmp 0x407899
cmp byte [esi + 0x1c], 0
je 0x40788e
test cl, cl
je 0x407869
mov ecx, esi
call fcn.00490050
test al, al
je 0x407884
mov edx, dword [esp + 0x4c]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4077c9
mov edx, dword [edx + 0x1c]
call fcn.0040bbe0
test eax, eax
jne 0x4077c9
mov cl, byte [0x4ec075]
mov edx, dword [esp + 0x4c]
mov esi, dword [esi + 8]
test esi, esi
jne 0x407850
mov ch, byte [esp + 0x1f]
mov edx, dword [esp + 0x44]
movzx eax, word [0x4ec200]
inc edx
mov dword [esp + 0x44], edx
cmp edx, eax
jl 0x407780
mov esi, dword [esp + 0x18]
mov dl, 1
jmp 0x4077e0
movzx ecx, cl
movzx eax, bl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4ee05c]
movzx eax, word [eax + ecx*2]
movzx ecx, ax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
test ax, ax
jns 0x4078e6
mov word [edi + 4], ax
jmp 0x40790f
and eax, 0x7fff
cmp ax, word [0x4ec200]
jae 0x407903
mov ecx, eax
mov eax, dword [0x4ee064]
mov ax, word [eax + ecx*2]
mov word [edi + 4], ax
mov eax, 0x7fff
cmp word [esp + 0x24], ax
jne 0x40797d
test dl, dl
je 0x40791e
mov eax, dword [esp + 0x3c]
or byte [edi + 0xc], 8
mov byte [eax], 0x23
cmp byte [edi + 8], 0
jne 0x407966
test byte [edi + 0xc], 1
jne 0x407966
cmp byte [esp + 0x17], 0
jne 0x407966
test dl, dl
jne 0x407966
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.00408a40
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 0x4074b0
mov eax, dword [ebp + 0x18]
cmp byte [edi + 0xa], 0
mov byte [esp + 0x1f], 0
je 0x407a1a
test al, al
je 0x407a1a
mov ch, byte [esp + 0xe]
cmp dword [0x4ec1d0], edi
jne 0x4079b1
test ch, ch
je 0x407a1a
mov dword [0x4ec1d0], 0
cmp byte [edi + 0xb], 0
jne 0x407a15
mov cl, byte [edi + 0xc]
test cl, 8
je 0x4079c9
xor dl, dl
and cl, 0xf7
mov byte [edi + 0xc], cl
jmp 0x4079cb
mov dl, 1
test ch, ch
je 0x4079ff
test dl, dl
je 0x4079ff
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.00408a40
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 0x4074b0
mov byte [esp + 0x1f], 1
cmp byte [edi + 9], 0
je 0x407bf0
test al, al
je 0x407bf0
mov eax, dword [0x4ec1d0]
xor ecx, ecx
cmp eax, edi
cmove eax, ecx
mov dword [0x4ec1d0], eax
cmp byte [edi + 0xe], cl
je 0x407a5c
push 0xffc3d44d
push ecx
push ecx
mov byte [edi + 0xe], cl
mov dl, 0x12
push ecx
mov ecx, 1
call fcn.00412960
add esp, 0x10
cmp byte [edi + 0xf], 0
je 0x407a80
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov byte [edi + 0xf], 0
mov ecx, 1
call fcn.00412960
add esp, 0x10
mov edx, dword [esp + 0x24]
mov eax, 0x7fff
cmp dx, ax
jne 0x407ab2
mov al, byte [edi + 0xc]
test al, 8
je 0x407ab2
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 0x4074b0
mov cl, byte [esp + 0x17]
mov al, byte [edi + 0x12]
test cl, cl
je 0x407b42
cmp al, 2
jne 0x407b26
mov edi, dword [esp + 0x20]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push edi
mov ecx, 1
call fcn.00412960
push 0xffc3d44d
push 0
push 0
push edi
mov dl, bl
mov ecx, 2
call fcn.00412960
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.00408a40
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 1
jne 0x407b8e
mov edx, dword [esp + 0x10]
mov ecx, esi
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
push edx
push dword [ebp + 0x18]
jmp 0x4074b0
test al, al
je 0x407b8e
mov eax, 0x7fff
cmp dx, ax
jne 0x407b8e
cmp byte [edi + 8], 0
jne 0x407a9a
test byte [edi + 0xc], 1
mov edx, dword [esp + 0x10]
jne 0x407a9e
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.00408a40
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0xa], 0
jne 0x407bde
cmp byte [edi + 8], 0
jne 0x407a9a
test byte [edi + 0xc], 1
jne 0x407a9a
test cl, cl
jne 0x407a9a
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.00408a40
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0xf], 0
jne 0x407bf4
cmp byte [edi + 0xb], 0
jne 0x407bf4
jmp 0x407a9a
mov edx, dword [esp + 0x24]
cmp dword [0x4ec1d0], 0
mov byte [esp + 0xe], 0
je 0x407feb
mov ecx, dword [ebp + 0x18]
test cl, cl
je 0x407c17
cmp byte [edi + 0xb], 0
je 0x407feb
mov eax, 0x7fff
cmp dx, ax
jne 0x408349
movzx eax, word [edi + 6]
xor esi, esi
mov dword [esp + 0x38], eax
cmp ax, word [esp + 0x40]
je 0x407de9
mov ecx, eax
nop dword [eax]
mov eax, dword [0x4ec1f0]
movzx ecx, cx
mov edx, dword [eax + ecx*4]
mov al, byte [edx + 0x11]
test al, al
jne 0x407c98
cmp word [edx + 0xa], 0
je 0x407cd5
movzx eax, word [edx + 0xc]
mov dword [esp + 0x38], eax
movzx eax, word [edx + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4ee06c]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x38]
cmp byte [eax + 0xd], 0
je 0x407cc3
cmp byte [edx + 0x16], 0
je 0x407cb8
cmp byte [ebp + 0x18], 0
jne 0x407cd3
mov ax, word [edx + 4]
mov word [edi + 4], ax
test esi, esi
jne 0x407cdd
jmp 0x407cc3
movzx ecx, word [edx + 0xc]
mov dword [esp + 0x38], ecx
test al, al
je 0x407c65
mov ebx, dword [0x4ee068]
movzx eax, al
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
mov ebx, dword [ebp + 0x10]
jmp 0x407c78
cmp byte [ebp + 0x18], 0
jne 0x407cc3
test esi, esi
cmove esi, edx
mov eax, 0x7fff
cmp cx, ax
jne 0x407c40
jmp 0x407cd5
mov esi, edx
test esi, esi
je 0x407de2
movzx ecx, byte [esi + 0x11]
cmp ecx, 0x12
ja case.0x407cf1.1
movzx eax, byte [ecx + 0x408a0c]
jmp dword [eax*4 + 0x4089f8]
mov ecx, dword [0x4ee068]
mov eax, 0xc80
mov edx, 0xc94
cmp byte [ecx + 0xca1], 0
cmovne eax, edx
add eax, ecx
jmp 0x407d6f
mov ecx, dword [0x4ee068]
mov eax, 0xca8
mov edx, 0xcbc
cmp byte [ecx + 0xcc9], 0
cmovne eax, edx
add eax, ecx
jmp 0x407d6f
mov ecx, dword [0x4ee068]
mov eax, 0xcd0
mov edx, 0xce4
cmp byte [ecx + 0xcf1], 0
cmovne eax, edx
add eax, ecx
jmp 0x407d6f
movzx eax, word [esi + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4ee06c]
lea eax, [eax + ecx*4]
jmp 0x407d6f
lea eax, [ecx + ecx*4]
mov ecx, dword [0x4ee068]
lea eax, [ecx + eax*4]
mov dword [0x4ec1d0], eax
movzx eax, word [esi + 6]
test ax, ax
je 0x407d85
mov edx, eax
mov dword [esp + 0x2c], edx
jmp 0x407dcd
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.0040c6b0
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
jne 0x407dc9
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
push esi
push dword [ebp + 0x18]
jmp 0x4074ac
mov edx, dword [esp + 0x2c]
mov eax, dword [0x4ec1d0]
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x24], edx
movzx esi, dx
mov byte [eax + 0x12], 2
jmp 0x407ded
mov ecx, dword [ebp + 0x18]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
mov eax, 0x7ffe
cmp si, ax
je 0x407e05
mov eax, 0x7ffd
cmp si, ax
jne 0x407feb
test cl, cl
jne 0x407e0d
mov byte [edi + 0x10], 1
test byte [0x4ec0a6], 0xc
jne 0x407e30
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00412960
mov ecx, dword [ebp + 0x18]
add esp, 0x10
cmp bl, 0xa2
je 0x407e3a
cmp bl, 0xa3
jne 0x407e5a
test cl, cl
jne 0x407e5a
push 0xffc3d44d
push 0
push 0
push dword [esp + 0x2c]
mov dl, bl
mov ecx, 1
call fcn.00412960
add esp, 0x10
mov eax, dword [0x4ec1d0]
mov byte [eax + 0xe], 1
mov eax, 0x7ffd
cmp si, ax
jne 0x407e9b
test byte [0x4ec0a6], 0x30
jne 0x407e8d
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.00412960
add esp, 0x10
mov eax, dword [0x4ec1d0]
mov byte [eax + 0xf], 1
jmp 0x407f17
mov eax, 0x7ffe
cmp si, ax
jne 0x407f17
cmp bl, 0xa0
je 0x407eaf
cmp bl, 0xa1
jne 0x407ed1
cmp byte [ebp + 0x18], 0
jne 0x407ed1
push 0xffc3d44d
push 0
push 0
push dword [esp + 0x2c]
mov dl, bl
mov ecx, 1
call fcn.00412960
add esp, 0x10
test byte [0x4ec0a6], 0x10
je 0x407ef4
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa0
mov ecx, 1
call fcn.00412960
add esp, 0x10
test byte [0x4ec0a6], 0x20
je 0x407f17
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa1
mov ecx, 1
call fcn.00412960
add esp, 0x10
test byte [0x4ec0a6], 1
je 0x407f3a
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa2
mov ecx, 1
call fcn.00412960
add esp, 0x10
test byte [0x4ec0a6], 2
je 0x407f5d
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa3
mov ecx, 1
call fcn.00412960
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00412960
mov eax, 0x7ffd
add esp, 0x10
cmp si, ax
jne 0x407fbe
mov eax, dword [0x4ec1d0]
cmp byte [eax + 0xf], 0
je 0x407fbe
cmp bl, 0x60
jb 0x407f96
cmp bl, 0x69
jbe 0x407f9b
cmp bl, 0x6e
jne 0x407fbe
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.00412960
mov eax, dword [0x4ec1d0]
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 0x407fd0
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 0x4089de
mov eax, 0x7fff
cmp dx, ax
jne 0x408346
mov al, byte [edi + 8]
mov dl, byte [0x4ec0a5]
test al, al
je 0x40800a
not al
and dl, al
mov eax, dword [esp + 0x18]
mov dh, byte [esp + 0x16]
cmp eax, dword [0x4eb75c]
jne 0x40803a
test dh, dh
je 0x40803a
mov eax, dword [0x4ee060]
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 0x408052
movzx eax, bl
movzx ecx, dl
shl ecx, 8
mov dword [esp + 0x44], eax
add ecx, eax
mov eax, dword [0x4ee05c]
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 0x4080e7
cmp byte [0x4ee05a], 0
je 0x4080e7
cmp bl, 9
je 0x4080e7
mov eax, dword [esp + 0x18]
and dl, 0xf3
cmp eax, dword [0x4eb75c]
jne 0x40809f
test dh, dh
je 0x40809f
mov eax, dword [0x4ee060]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x30]
jmp 0x4080ae
mov eax, dword [0x4ee05c]
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 0x4082c5
mov esi, 0x7fff
cmp ax, si
jb 0x4080eb
mov ecx, dword [ebp + 0x18]
mov edx, esi
jmp 0x408276
mov edx, dword [esp + 0x24]
movzx eax, cx
mov ecx, dword [ebp + 0x18]
test ax, ax
jns 0x4081df
test cl, cl
jne 0x408262
mov ah, byte [0x4ec0a5]
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 0x4081b0
nop dword [eax]
mov eax, dword [0x4ec1f0]
movzx ecx, dx
mov ecx, dword [eax + ecx*4]
cmp byte [ecx + 0x15], 0
movzx edx, word [ecx + 0xc]
jne 0x408176
movzx eax, byte [ecx + 0xf]
mov ebx, dword [ebp + 0x10]
not eax
test byte [0x4ec0a5], al
jne 0x4081a6
cmp byte [ecx + 0x16], 0
jne 0x4081a6
cmp byte [ecx + 0x11], 0
jne 0x4081a6
cmp word [ecx + 0xa], 0
jne 0x4081a6
cmp word [ecx + 6], 0
jne 0x4081a6
mov eax, esi
not eax
test dword [ecx], eax
jne 0x4081a6
movzx eax, byte [0x4ec0a5]
not eax
test byte [ecx + 0xe], al
je 0x4081c8
mov eax, 0x7fff
cmp dx, ax
jne 0x408150
mov ecx, dword [ebp + 0x18]
mov eax, 0x7fff
movzx edx, ax
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], edx
jmp 0x408266
movzx eax, word [ecx + 4]
mov ecx, dword [ebp + 0x18]
movzx edx, ax
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], edx
jmp 0x408266
mov edx, 0x7fff
cmp ax, dx
je 0x408276
and eax, edx
test cl, cl
je 0x4082a4
cmp ax, word [0x4ec200]
jae 0x40825b
mov esi, eax
mov eax, dword [0x4ee064]
cmp word [eax + esi*2], dx
je 0x40825b
cmp byte [esp + 0x1f], 0
jne 0x408248
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.0040c6b0
mov ecx, dword [ebp + 0x18]
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
je 0x408248
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
jmp 0x408266
mov eax, dword [0x4ee064]
movzx edx, word [eax + esi*2]
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], edx
jmp 0x408266
cmp byte [esp + 0x1f], 0
jne 0x40827a
mov edx, dword [esp + 0x24]
mov eax, 0x7fff
cmp dx, ax
jne 0x408349
mov edx, eax
test cl, cl
je 0x4082e2
cmp byte [edi + 8], 0
jne 0x4082cf
test byte [edi + 0xc], 1
jne 0x4082cf
cmp byte [edi + 9], 0
je 0x4082cf
cmp byte [esp + 0x17], 0
jne 0x4082cf
push 0
push SysReAllocString
push 0x7fff
jmp 0x4089d5
mov edx, dword [esp + 0x24]
cmp ax, word [0x4ec200]
jae 0x408266
mov ecx, eax
mov eax, dword [0x4ee064]
mov ax, word [eax + ecx*2]
mov ecx, dword [ebp + 0x18]
mov word [edi + 4], ax
jmp 0x408266
mov ecx, dword [ebp + 0x18]
mov edx, 0x7fff
jmp 0x408276
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
push dword [ebp + 0x1c]
push ecx
jmp 0x4074ac
cmp word [edi + 4], dx
lea ecx, [edi + 4]
jne 0x4082ff
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
push dword [ebp + 0x1c]
push 0
jmp 0x4074ac
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.0040c6b0
mov edx, dword [esp + 0x20]
add esp, 0x10
cmp byte [esp + 0xe], 0
je 0x408331
push 0x7fff
push edx
push esi
push 0
jmp 0x4074ac
push 0
push SysReAllocString
push 0x7fff
push edx
push esi
push 0
jmp 0x4089de
mov ecx, dword [ebp + 0x18]
mov al, byte [edi + 0xc]
lea esi, [edi + 0xc]
test al, 8
je 0x408360
test cl, cl
je 0x408360
and al, 0xf7
mov byte [esp + 0xe], 1
mov byte [esi], al
mov eax, edx
and eax, 0x7fff
cmp ax, word [0x4ec200]
jae 0x408465
cmp dword [esp + 0x34], 0
jne 0x408465
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.0040c6b0
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
jne 0x40845f
mov eax, dword [esp + 0x3c]
cmp byte [eax], 0x69
jne 0x4083c4
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
jmp 0x4074ac
mov eax, dword [ebp + 0x18]
test al, al
je 0x4083fb
cmp byte [edi + 0x11], 0
mov edx, dword [esp + 0x10]
je 0x4083ec
push 0
push SysReAllocString
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
push edx
push eax
jmp 0x4089de
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
push edx
jmp 0x4074ab
lea ecx, [edi + 4]
mov eax, 0x7fff
cmp word [ecx], ax
je 0x4082eb
push 0
lea eax, [esp + 0x12]
mov byte [esp + 0x12], 0
push eax
push esi
push dword [ebp + 0x1c]
mov dl, 1
call fcn.0040c6b0
mov edx, dword [esp + 0x20]
add esp, 0x10
cmp byte [esp + 0xe], 0
je 0x408441
push 0x7fff
push edx
push dword [ebp + 0x1c]
push 0
jmp 0x4074ac
and byte [esi], 0xf7
push 0
push SysReAllocString
push 0x7fff
push edx
push dword [ebp + 0x1c]
mov byte [edi + 0x11], 1
push 0
jmp 0x4089de
mov ecx, dword [esp + 0x2c]
jmp 0x408469
mov ecx, dword [esp + 0x24]
and ecx, 0x7fff
test byte [0x4ec0a6], 0xcc
mov dword [esp + 0x24], ecx
je 0x40854f
cmp byte [esp + 0xe], 0
jne 0x40854f
cmp byte [0x4ee059], 0
jne 0x4084a4
mov eax, dword [esp + 0x18]
cmp eax, dword [0x4eb758]
jne 0x40854f
test byte [0x4ec0a6], 0xc0
mov dl, byte [0x4ec0a4]
je 0x4084e3
test dl, 0xc0
jne 0x4084d3
cmp cx, word [0x4ec200]
jae 0x4084e3
mov eax, dword [0x4ec1f0]
movzx ecx, cx
mov eax, dword [eax + ecx*4]
mov al, byte [eax + 0xf]
and al, 0xc0
je 0x4084df
mov byte [0x4ee058], 1
jmp 0x40854f
mov ecx, dword [esp + 0x24]
cmp byte [0x4ee058], 0
jne 0x40854f
mov al, byte [0x4ec0a6]
test al, 0xc
je 0x40854f
test al, 3
jne 0x40854f
test dl, 0xc
jne 0x408519
cmp cx, word [0x4ec200]
jae 0x40854f
mov eax, dword [0x4ec1f0]
movzx ecx, cx
mov eax, dword [eax + ecx*4]
mov al, byte [eax + 0xf]
and al, 0xc
je 0x40854f
cmp dword [0x4eb75c], 0
je 0x40852b
mov byte [0x4ee058], 1
jmp 0x40854f
movzx eax, word [0x4e9ad0]
mov ecx, 2
mov dl, byte [0x4e9ac2]
push 0xffc3d44d
push 0
push 0
push eax
call fcn.00412960
add esp, 0x10
mov eax, dword [esp + 0x24]
movzx ecx, ax
lea eax, [ecx - 0x7ffa]
cmp eax, 4
ja case.default.0x408565
jmp dword [eax*4 + 0x408a20]
cmp byte [0x4ee05a], 0
je 0x4083af
xor al, al
test byte [0x4ec0a6], 4
je 0x40858b
mov edx, 0xa4
jmp 0x40859d
test byte [0x4ec0a6], 8
movzx edx, al
mov eax, 0xa5
cmovne edx, eax
cmp byte [0x4ee05a], 0
mov dword [esp + 0x40], edx
je 0x408626
mov eax, 0x7ffb
cmp word [esp + 0x24], ax
je case.0x408565.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.00412960
add esp, 0x10
cmp byte [edi + 8], 0
je 0x408615
cmp bl, 0x5b
je 0x408615
cmp bl, 0x5c
je 0x408615
cmp byte [ebp + 0x18], 0
jne 0x408615
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.00412960
add esp, 0x10
mov byte [0x4ee05a], 0
mov edx, 0x7fff
jmp 0x4088b9
cmp bl, 0xa4
je 0x408635
mov byte [esp + 0x1f], 0
cmp bl, 0xa5
jne 0x40863a
mov byte [esp + 0x1f], 1
cmp bl, 0xa0
je 0x408648
cmp bl, 0xa1
je 0x408648
xor cl, cl
jmp 0x40864a
mov cl, 1
mov byte [esp + 0x16], cl
cmp bl, 0xa2
je 0x40865d
mov byte [esp + 0xf], 0
cmp bl, 0xa3
jne 0x408662
mov byte [esp + 0xf], 1
xor dl, dl
test byte [0x4ec0a6], 0x10
mov dword [esp + 0x34], edx
je 0x408675
mov dl, 0xa0
jmp 0x408694
test byte [0x4ec0a6], 0x20
mov eax, dword [ebp + 0x18]
je 0x408685
mov dl, 0xa1
jmp 0x408697
test al, al
jne 0x40869b
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 [0x4ec0a6], 1
mov dword [esp + 0x30], ecx
je 0x4086b1
mov byte [esp + 0x30], 0xa2
jmp 0x4086d7
test byte [0x4ec0a6], 2
je 0x4086c1
mov byte [esp + 0x30], 0xa3
jmp 0x4086d7
test al, al
jne 0x4086d7
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 0x4086fd
push 0xffc3d44d
push 0
push 0
push 0
mov ecx, 1
call fcn.00412960
add esp, 0x10
mov byte [esp + 0xf], 1
mov eax, dword [esp + 0x30]
test al, al
je 0x40871f
push 0xffc3d44d
push 0
push 0
push 0
mov dl, al
mov ecx, 1
call fcn.00412960
add esp, 0x10
cmp byte [esp + 0x1f], 0
je 0x408730
cmp byte [ebp + 0x18], 0
jne 0x408738
mov al, bl
jmp 0x408734
mov eax, dword [esp + 0x40]
test al, al
jne 0x40874f
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00412960
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00412960
add esp, 0x10
cmp byte [esp + 0xf], 0
je 0x408790
cmp byte [esp + 0x16], 0
jne 0x408790
mov dl, byte [esp + 0x34]
xor ecx, ecx
push 0xffc3d44d
push 0
push 0
push 0
call fcn.00412960
add esp, 0x10
mov byte [0x4ee05a], 1
mov edx, 0x7fff
jmp 0x4088b9
cmp byte [0x4ee05a], 0
je 0x4083af
mov eax, dword [ebp + 0x18]
test al, al
jne 0x4087e6
cmp bl, 0xa2
je 0x4087c9
cmp bl, 0xa3
je 0x4087c9
cmp bl, 0xa0
je 0x4087c9
cmp bl, 0xa1
jne 0x4087e6
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.00412960
mov eax, dword [ebp + 0x18]
add esp, 0x10
test byte [0x4ec0a6], 0xc
je 0x4087fd
test al, al
je 0x408814
cmp bl, 0xa4
je 0x4087fd
cmp bl, 0xa5
jne 0x408814
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00412960
add esp, 0x10
mov eax, 0x7ffd
cmp word [esp + 0x24], ax
jne 0x408875
test byte [0x4ec0a6], 0x30
jne 0x408875
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.00412960
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00412960
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.00412960
add esp, 0x30
mov edx, 0x7fff
jmp 0x4088b9
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00412960
add esp, 0x10
mov edx, 0x7fff
jmp 0x4088b9
mov edx, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x48], edx
mov eax, dword [ecx + 4]
test eax, eax
je 0x4088b9
cmp byte [eax], 5
jb 0x4088b9
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 0x408968
cmp byte [esp + 0x17], 0
je 0x408927
cmp byte [edi + 9], 0
je 0x408927
mov esi, dword [esp + 0x20]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push esi
mov ecx, 1
call fcn.00412960
push 0xffc3d44d
push 0
push 0
push esi
mov dl, bl
mov ecx, 2
call fcn.00412960
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 0x4089de
cmp byte [edi + 8], 0
je 0x408940
cmp byte [edi + 0x11], 0
je 0x408989
push 0
push SysReAllocString
push edx
jmp 0x4089d5
cmp byte [esp + 0xe], 0
je 0x4089c9
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 0x407223
mov eax, dword [0x4ec1d0]
mov byte [edi + 0x10], 1
test eax, eax
je 0x40897f
cmp byte [eax + 8], 0
je 0x40897f
mov byte [eax + 0x12], 2
cmp byte [esp + 0xe], 0
je 0x408998
or byte [esi], 8
push edx
mov edx, dword [esp + 0x14]
push edx
push dword [ebp + 0x1c]
push ecx
jmp 0x4074ac
cmp bl, 0xa4
je 0x4089a2
cmp bl, 0xa5
jne 0x4089c1
push 0xffc3d450
push 0
push 0
push dword [esp + 0x2c]
mov dl, bl
mov ecx, 1
call fcn.00412960
mov ecx, dword [ebp + 0x18]
add esp, 0x10
test cl, cl
jne 0x4089c9
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.00408a40
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret