Function at 0x40e0a0
Capabilities:
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 + 0x40], eax
push edi
mov di, word [ebp + 0x14]
movzx edx, di
cmp esi, 0xffc3d44f
je 0x40e0e7
cmp esi, 0xffc3d44e
je 0x40e0e7
mov byte [esp + 0x17], 0
cmp esi, 0xffc3d44d
jne 0x40e0ec
mov byte [esp + 0x17], 1
mov ecx, dword [0x4e7968]
mov ebx, dword [ebp + 0x10]
test ecx, ecx
jne 0x40e106
lea eax, [esp + 0x50]
mov dword [esp + 0x10], eax
jmp 0x40e1b5
mov eax, dword [0x4e79dc]
imul esi, eax, 0x70
inc eax
add esi, ecx
xor ecx, ecx
cmp eax, dword [0x4e4990]
mov dword [esp + 0x10], esi
cmovge eax, ecx
mov dword [0x4e79dc], 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 [0x4e79d8], eax
sub ecx, dword [0x4ea250]
mov dword [0x4ea250], eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4dd2c0]
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4dd204]
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 0x40e19f
cmp esi, dword [0x4e79d4]
je 0x40e19a
push esi
push eax
push 0x418
push dword [0x4e7950]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40e1a5
mov byte [eax], 0
jmp 0x40e1a5
mov dword [eax], 0x412f4e
mov eax, dword [esp + 0x10]
mov dword [0x4e79d4], esi
mov esi, dword [ebp + 0x1c]
movzx edx, di
cmp bl, 0xe7
jne 0x40e1f9
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.0040fab0
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
mov edx, dword [0x4ea2b0]
movzx eax, ax
mov dword [esp + 0x20], eax
cmp edi, dword [0x4e796c]
jne 0x40e250
mov al, byte [ebp + 0x20]
and al, 1
mov dword [esp + 0x30], eax
jne 0x40e242
mov al, byte [ebp + 0x18]
movzx ecx, bl
xor al, 1
shl al, 7
mov byte [ecx + 0x4e82c0], al
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0x18]
cmp byte [esp + 0x17], 0
je 0x40e29b
mov al, 0x69
jmp 0x40e2aa
mov ecx, dword [ebp + 0x20]
mov eax, ecx
shr eax, 4
and eax, 0xffffff01
movzx esi, bl
mov dword [esp + 0x30], eax
lea eax, [esi + esi*4]
cmp byte [edx + eax*4 + 8], 0
jne 0x40e23e
push dword [ebp + 0x18]
mov dl, bl
call fcn.00410e50
mov ecx, dword [ebp + 0x18]
add esp, 4
mov edx, dword [0x4ea2b0]
test al, al
je 0x40e295
mov al, cl
xor al, 1
shl al, 7
mov byte [esi + 0x4e82c0], al
mov eax, dword [esp + 0x30]
jmp 0x40e245
test al, al
mov esi, 0x61
mov eax, 0x20
cmovne eax, esi
cmp byte [0x4e82ad], 0
mov esi, dword [esp + 0x10]
lea edi, [esi + 4]
mov byte [esi + 4], al
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x18]
je 0x40e2fc
cmp bl, 0x5b
je 0x40e2cf
cmp bl, 0x5c
jne 0x40e2fc
test cl, cl
jne 0x40e2fc
mov edx, dword [ebp + 0x1c]
push 0
push closesocket
push 0x7fff
push esi
push edx
mov edx, dword [ebp + 0xc]
push 0
push ecx
mov ecx, edi
push ebx
call fcn.0040f960
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x4ea2a2], 0
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
je 0x40e3bb
cmp bl, 0x1b
jne 0x40e3bb
test cl, cl
jne 0x40e3bb
push 0
push str.32771
call esi
test eax, eax
je 0x40e3b5
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 0x40e3af
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
xor ecx, ecx
call fcn.00419200
mov dl, byte [0x4e82be]
mov ecx, 1
push 0xffc3d44d
shr dl, 3
push 0
and dl, 1
push 0
push 0
or dl, 0xa4
call fcn.00419200
mov edx, dword [esp + 0x30]
add esp, 0x20
push 0
push closesocket
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.0040f960
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
mov edx, dword [0x4ea2b0]
mov eax, dword [esp + 0x20]
movzx eax, ax
mov dword [esp + 0x38], eax
lea ecx, [eax + eax*4]
mov eax, dword [0x4ea2b4]
lea edi, [eax + ecx*4]
mov eax, dword [esp + 0x18]
mov cl, byte [edi + 0x13]
mov byte [esp + 0x16], cl
cmp eax, dword [0x4e7970]
jne 0x40e3e8
test cl, cl
jne 0x40e3f5
movzx eax, bl
lea eax, [eax + eax*4]
lea edi, [edx + eax*4]
mov eax, dword [esp + 0x18]
cmp byte [esp + 0x17], 0
je 0x40e456
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
cmp ecx, 0xffc3d44e
jne 0x40e428
test al, al
je 0x40e428
cmp dword [0x4e840c], edi
jne 0x40e428
mov byte [edi + 0xd], 0
mov byte [edi + 0x10], 0
mov dword [0x4e840c], 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.0040fab0
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 + 0x4c], edx
test cl, cl
jne 0x40e46d
mov byte [edi + 0x11], cl
mov word [edi + 4], dx
cmp eax, dword [0x4e796c]
jne 0x40e4dd
test bl, bl
jne 0x40e4a9
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.0040fab0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp bl, 1
je 0x40e4b3
cmp bl, 2
jne 0x40e4dd
cmp dword [0x4e7920], 0
jne 0x40e507
push 0
push str.32768
call esi
test eax, eax
je 0x40e4da
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4e9a38]
je 0x40e504
mov ecx, dword [ebp + 0x18]
mov eax, dword [0x4e840c]
mov esi, dword [esp + 0x18]
test eax, eax
je 0x40e53c
cmp eax, edi
je 0x40e53c
test cl, cl
jne 0x40e53c
cmp esi, dword [0x4e7970]
jne 0x40e526
xor eax, eax
cmp byte [edi + 8], al
sete al
jmp 0x40e52f
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 0x40e434
mov eax, dword [0x4e840c]
movzx eax, byte [eax + 8]
test eax, eax
je 0x40e53c
mov eax, dword [0x4e840c]
mov byte [eax + 0x12], 1
cmp byte [edi + 9], 0
jne 0x40e565
cmp byte [edi + 0xa], 0
jne 0x40e565
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 0x40e438
mov dword [esp + 0x34], 0
mov eax, 0x7fff
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
test cl, cl
je 0x40e5ac
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 0x40e5bc
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov word [edi + 4], dx
jmp 0x40e5bc
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 [0x4e7970]
jne 0x40e63b
cmp byte [edi + 8], dl
je 0x40e657
mov eax, dword [0x4ea2b0]
cmp byte [eax + 0xcb5], dl
jne 0x40e5ef
cmp byte [eax + 0xcc9], dl
jne 0x40e5ef
xor cl, cl
jmp 0x40e5f1
mov cl, 1
cmp byte [eax + 0xcdd], 0
mov byte [eax + 0x161], cl
jne 0x40e60d
cmp byte [eax + 0xcf1], 0
jne 0x40e60d
xor cl, cl
jmp 0x40e60f
mov cl, 1
cmp byte [eax + 0xc8d], 0
mov byte [eax + 0x175], cl
jne 0x40e631
cmp byte [eax + 0xca1], 0
jne 0x40e631
xor cl, cl
mov byte [eax + 0x14d], cl
jmp 0x40e657
mov cl, 1
mov byte [eax + 0x14d], cl
jmp 0x40e657
cmp dword [0x4e7970], 0
jne 0x40e657
mov cl, 1
call fcn.0041b620
mov byte [0x4e82bd], al
mov dl, 1
mov byte [0x4e82be], al
mov eax, dword [edi]
test eax, eax
je 0x40e667
cmp dword [eax], 7
mov byte [esp + 0x17], 1
je 0x40e66c
mov byte [esp + 0x17], 0
test dl, dl
jne 0x40e677
mov cl, 1
call fcn.0041b620
mov cl, byte [edi + 9]
mov eax, dword [ebp + 0x18]
test cl, cl
je 0x40e915
test al, al
jne 0x40e915
mov eax, dword [0x4e840c]
test eax, eax
je 0x40e6a4
cmp byte [edi + 0xa], 0
je 0x40e6a4
cmp edi, eax
jne 0x40e912
cmp cl, 1
jne 0x40e75e
cmp byte [esp + 0x16], 0
mov ecx, dword [esp + 0x38]
movzx eax, bl
cmove ecx, eax
xor edx, edx
cmp byte [esp + 0x16], dl
movzx eax, cx
cmovne edx, eax
mov dword [esp + 0x48], ecx
movzx eax, cl
xor ecx, ecx
cmp byte [esp + 0x16], cl
push 0
cmovne eax, ecx
mov cl, al
call fcn.0041b830
mov ch, al
xor edx, edx
xor eax, eax
mov byte [esp + 0x23], ch
add esp, 4
mov dword [esp + 0x3c], edx
cmp ax, word [0x4e843c]
jae 0x40e84a
mov cl, byte [0x4e79d0]
nop word [eax + eax]
cmp byte [esp + 0x16], 0
mov eax, dword [0x4e842c]
mov edx, dword [eax + edx*4]
mov dword [esp + 0x30], edx
je 0x40e729
movzx eax, word [edx + 0xa]
jmp 0x40e72d
movzx eax, byte [edx + 0x11]
cmp dword [esp + 0x48], eax
je 0x40e73c
test byte [edx + 0xe], ch
je 0x40e82e
cmp word [edx + 6], 0
je 0x40e7c9
mov al, byte [edx + 0x19]
test al, al
je 0x40e82e
test cl, cl
jne 0x40e82e
mov esi, dword [esp + 0x18]
xor dl, dl
cmp edi, dword [0x4e840c]
je 0x40e771
mov dword [0x4e840c], edi
mov byte [edi + 0x12], dl
cmp byte [edi + 0xa], 0
je 0x40e898
mov al, byte [edi + 8]
mov cl, byte [0x4e82bd]
test al, al
je 0x40e78c
not al
and cl, al
test cl, cl
jne 0x40e79e
test dl, dl
jne 0x40e79e
test byte [edi + 0xc], 1
je 0x40e898
cmp esi, dword [0x4e7970]
jne 0x40e851
cmp byte [esp + 0x16], 0
je 0x40e851
mov eax, dword [0x4ea2a8]
movzx ecx, cl
shl ecx, 9
add ecx, dword [esp + 0x38]
jmp 0x40e861
mov esi, dword [edx + 0x20]
mov eax, esi
test eax, eax
je 0x40e82e
cmp byte [eax + 0x1c], 0
jne 0x40e7e1
mov eax, dword [eax + 8]
test eax, eax
jne 0x40e7d2
jmp 0x40e82e
test esi, esi
je 0x40e82e
cmp byte [esi + 0x1c], 0
je 0x40e823
test cl, cl
je 0x40e7fe
mov ecx, esi
call fcn.0048d9d0
test al, al
je 0x40e819
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40e75a
mov edx, dword [edx + 0x1c]
call fcn.00412b90
test eax, eax
jne 0x40e75a
mov cl, byte [0x4e79d0]
mov edx, dword [esp + 0x30]
mov esi, dword [esi + 8]
test esi, esi
jne 0x40e7e5
mov ch, byte [esp + 0x1f]
mov edx, dword [esp + 0x3c]
movzx eax, word [0x4e843c]
inc edx
mov dword [esp + 0x3c], edx
cmp edx, eax
jl 0x40e710
mov esi, dword [esp + 0x18]
mov dl, 1
jmp 0x40e771
movzx ecx, cl
movzx eax, bl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4ea2a4]
movzx eax, word [eax + ecx*2]
movzx ecx, ax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
test ax, ax
jns 0x40e87b
mov word [edi + 4], ax
jmp 0x40e8a4
and eax, 0x7fff
cmp ax, word [0x4e843c]
jae 0x40e898
mov ecx, eax
mov eax, dword [0x4ea2ac]
mov ax, word [eax + ecx*2]
mov word [edi + 4], ax
mov eax, 0x7fff
cmp word [esp + 0x24], ax
jne 0x40e912
test dl, dl
je 0x40e8b3
mov eax, dword [esp + 0x40]
or byte [edi + 0xc], 8
mov byte [eax], 0x23
cmp byte [edi + 8], 0
jne 0x40e8fb
test byte [edi + 0xc], 1
jne 0x40e8fb
cmp byte [esp + 0x17], 0
jne 0x40e8fb
test dl, dl
jne 0x40e8fb
mov edx, dword [esp + 0x10]
push 0
push closesocket
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.0040f960
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 0x40e438
mov eax, dword [ebp + 0x18]
cmp byte [edi + 0xa], 0
mov byte [esp + 0x1f], 0
je 0x40e9af
test al, al
je 0x40e9af
mov ch, byte [esp + 0xe]
cmp dword [0x4e840c], edi
jne 0x40e946
test ch, ch
je 0x40e9af
mov dword [0x4e840c], 0
cmp byte [edi + 0xb], 0
jne 0x40e9aa
mov cl, byte [edi + 0xc]
test cl, 8
je 0x40e95e
xor dl, dl
and cl, 0xf7
mov byte [edi + 0xc], cl
jmp 0x40e960
mov dl, 1
test ch, ch
je 0x40e994
test dl, dl
je 0x40e994
mov edx, dword [esp + 0x10]
push 0
push closesocket
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.0040f960
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 0x40e438
mov byte [esp + 0x1f], 1
cmp byte [edi + 9], 0
je 0x40eb85
test al, al
je 0x40eb85
mov eax, dword [0x4e840c]
xor ecx, ecx
cmp eax, edi
cmove eax, ecx
mov dword [0x4e840c], eax
cmp byte [edi + 0xe], cl
je 0x40e9f1
push 0xffc3d44d
push ecx
push ecx
mov byte [edi + 0xe], cl
mov dl, 0x12
push ecx
mov ecx, 1
call fcn.00419200
add esp, 0x10
cmp byte [edi + 0xf], 0
je 0x40ea15
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov byte [edi + 0xf], 0
mov ecx, 1
call fcn.00419200
add esp, 0x10
mov edx, dword [esp + 0x24]
mov eax, 0x7fff
cmp dx, ax
jne 0x40ea47
mov al, byte [edi + 0xc]
test al, 8
je 0x40ea47
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 0x40e438
mov cl, byte [esp + 0x17]
mov al, byte [edi + 0x12]
test cl, cl
je 0x40ead7
cmp al, 2
jne 0x40eabb
mov edi, dword [esp + 0x20]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push edi
mov ecx, 1
call fcn.00419200
push 0xffc3d44d
push 0
push 0
push edi
mov dl, bl
mov ecx, 2
call fcn.00419200
mov edx, dword [esp + 0x30]
add esp, 0x20
push 0
push closesocket
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.0040f960
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 1
jne 0x40eb23
mov edx, dword [esp + 0x10]
mov ecx, esi
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
push edx
push dword [ebp + 0x18]
jmp 0x40e438
test al, al
je 0x40eb23
mov eax, 0x7fff
cmp dx, ax
jne 0x40eb23
cmp byte [edi + 8], 0
jne 0x40ea2f
test byte [edi + 0xc], 1
mov edx, dword [esp + 0x10]
jne 0x40ea33
push 0
push closesocket
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.0040f960
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0xa], 0
jne 0x40eb73
cmp byte [edi + 8], 0
jne 0x40ea2f
test byte [edi + 0xc], 1
jne 0x40ea2f
test cl, cl
jne 0x40ea2f
mov edx, dword [esp + 0x10]
push 0
push closesocket
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.0040f960
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0xf], 0
jne 0x40eb89
cmp byte [edi + 0xb], 0
jne 0x40eb89
jmp 0x40ea2f
mov edx, dword [esp + 0x24]
cmp dword [0x4e840c], 0
mov byte [esp + 0xe], 0
je 0x40ef68
mov ecx, dword [ebp + 0x18]
test cl, cl
je 0x40ebac
cmp byte [edi + 0xb], 0
je 0x40ef68
mov eax, 0x7fff
cmp dx, ax
jne 0x40f2cf
movzx edx, word [edi + 6]
xor esi, esi
mov dword [esp + 0x30], edx
cmp dx, ax
je 0x40ed62
nop dword [eax]
mov eax, dword [0x4e842c]
movzx ecx, dx
mov edx, dword [eax + ecx*4]
mov al, byte [edx + 0x11]
test al, al
jne 0x40ebe9
cmp word [edx + 0xa], 0
je 0x40ec52
movzx ecx, word [edx + 0xc]
mov dword [esp + 0x30], ecx
test al, al
je 0x40ec06
mov ecx, dword [0x4ea2b0]
movzx eax, al
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
jmp 0x40ec15
movzx eax, word [edx + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4ea2b4]
lea eax, [eax + ecx*4]
cmp byte [eax + 0xd], 0
je 0x40ec40
cmp byte [edx + 0x16], 0
je 0x40ec35
cmp byte [ebp + 0x18], 0
jne 0x40ec50
mov ax, word [edx + 4]
mov word [edi + 4], ax
test esi, esi
jne 0x40ec5e
jmp 0x40ec40
cmp byte [ebp + 0x18], 0
jne 0x40ec40
test esi, esi
cmove esi, edx
mov edx, dword [esp + 0x30]
mov eax, 0x7fff
cmp dx, ax
jne 0x40ebd0
jmp 0x40ec56
mov esi, edx
mov edx, dword [esp + 0x30]
test esi, esi
je 0x40ed5f
movzx ecx, byte [esi + 0x11]
cmp ecx, 0x12
ja case.0x40ec72.1
movzx eax, byte [ecx + 0x40f938]
jmp dword [eax*4 + 0x40f924]
mov ecx, dword [0x4ea2b0]
mov eax, 0xc80
mov edx, 0xc94
cmp byte [ecx + 0xca1], 0
cmovne eax, edx
add eax, ecx
jmp 0x40ecf0
mov ecx, dword [0x4ea2b0]
mov eax, 0xca8
mov edx, 0xcbc
cmp byte [ecx + 0xcc9], 0
cmovne eax, edx
add eax, ecx
jmp 0x40ecf0
mov ecx, dword [0x4ea2b0]
mov eax, 0xcd0
mov edx, 0xce4
cmp byte [ecx + 0xcf1], 0
cmovne eax, edx
add eax, ecx
jmp 0x40ecf0
movzx eax, word [esi + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4ea2b4]
lea eax, [eax + ecx*4]
jmp 0x40ecf0
lea eax, [ecx + ecx*4]
mov ecx, dword [0x4ea2b0]
lea eax, [ecx + eax*4]
mov dword [0x4e840c], eax
movzx eax, word [esi + 6]
test ax, ax
je 0x40ed04
mov dword [esp + 0x2c], eax
jmp 0x40ed4b
movzx eax, word [esi + 4]
lea ecx, [esp + 0x2c]
push dword [esp + 0x40]
mov esi, dword [ebp + 0x1c]
mov dl, byte [ebp + 0x18]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x12]
push eax
lea eax, [edi + 0xc]
push eax
push esi
call fcn.00413600
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
jne 0x40ed47
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
push esi
push dword [ebp + 0x18]
jmp 0x40e434
mov eax, dword [esp + 0x2c]
movzx edx, ax
mov dword [esp + 0x24], eax
mov eax, dword [0x4e840c]
mov dword [esp + 0x30], edx
mov byte [eax + 0x12], 2
mov ecx, dword [ebp + 0x18]
mov eax, 0x7ffe
cmp dx, ax
je 0x40ed7a
mov eax, 0x7ffd
cmp dx, ax
jne 0x40ef64
test cl, cl
jne 0x40ed82
mov byte [edi + 0x10], 1
test byte [0x4e82be], 0xc
jne 0x40eda5
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00419200
mov ecx, dword [ebp + 0x18]
add esp, 0x10
cmp bl, 0xa2
je 0x40edaf
cmp bl, 0xa3
jne 0x40edcf
test cl, cl
jne 0x40edcf
push 0xffc3d44d
push 0
push 0
push dword [esp + 0x2c]
mov dl, bl
mov ecx, 1
call fcn.00419200
add esp, 0x10
mov eax, dword [0x4e840c]
mov esi, dword [esp + 0x30]
mov byte [eax + 0xe], 1
mov eax, 0x7ffd
cmp si, ax
jne 0x40ee14
test byte [0x4e82be], 0x30
jne 0x40ee06
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.00419200
add esp, 0x10
mov eax, dword [0x4e840c]
mov byte [eax + 0xf], 1
jmp 0x40ee90
mov eax, 0x7ffe
cmp si, ax
jne 0x40ee90
cmp bl, 0xa0
je 0x40ee28
cmp bl, 0xa1
jne 0x40ee4a
cmp byte [ebp + 0x18], 0
jne 0x40ee4a
push 0xffc3d44d
push 0
push 0
push dword [esp + 0x2c]
mov dl, bl
mov ecx, 1
call fcn.00419200
add esp, 0x10
test byte [0x4e82be], 0x10
je 0x40ee6d
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa0
mov ecx, 1
call fcn.00419200
add esp, 0x10
test byte [0x4e82be], 0x20
je 0x40ee90
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa1
mov ecx, 1
call fcn.00419200
add esp, 0x10
test byte [0x4e82be], 1
je 0x40eeb3
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa2
mov ecx, 1
call fcn.00419200
add esp, 0x10
test byte [0x4e82be], 2
je 0x40eed6
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa3
mov ecx, 1
call fcn.00419200
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00419200
mov eax, 0x7ffd
add esp, 0x10
cmp si, ax
jne 0x40ef37
mov eax, dword [0x4e840c]
cmp byte [eax + 0xf], 0
je 0x40ef37
cmp bl, 0x60
jb 0x40ef0f
cmp bl, 0x69
jbe 0x40ef14
cmp bl, 0x6e
jne 0x40ef37
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.00419200
mov eax, dword [0x4e840c]
add esp, 0x10
mov byte [eax + 0xf], 0
mov eax, dword [esp + 0x40]
mov byte [eax], 0x68
mov eax, dword [ebp + 0x18]
test al, al
jne 0x40ef49
mov byte [edi + 0x11], 1
mov edx, dword [esp + 0x10]
push 0
push closesocket
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
push edx
push eax
jmp 0x40f90b
mov edx, dword [esp + 0x24]
mov eax, 0x7fff
cmp dx, ax
jne 0x40f2cc
mov al, byte [edi + 8]
mov dl, byte [0x4e82bd]
test al, al
je 0x40ef87
not al
and dl, al
mov eax, dword [esp + 0x18]
mov dh, byte [esp + 0x16]
cmp eax, dword [0x4e7970]
jne 0x40efb7
test dh, dh
je 0x40efb7
mov eax, dword [0x4ea2a8]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x38]
movzx eax, word [eax + ecx*2]
movzx ecx, bl
mov dword [esp + 0x3c], ecx
jmp 0x40efcf
movzx eax, bl
movzx ecx, dl
shl ecx, 8
mov dword [esp + 0x3c], eax
add ecx, eax
mov eax, dword [0x4ea2a4]
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 + 0x4c]
jne 0x40f067
cmp byte [0x4ea2a2], 0
je 0x40f067
cmp bl, 9
je 0x40f067
mov eax, dword [esp + 0x18]
and dl, 0xf3
cmp eax, dword [0x4e7970]
jne 0x40f01c
test dh, dh
je 0x40f01c
mov eax, dword [0x4ea2a8]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x38]
jmp 0x40f02b
mov eax, dword [0x4ea2a4]
movzx ecx, dl
shl ecx, 8
add ecx, dword [esp + 0x3c]
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 0x40f056
mov esi, 0x7fff
cmp ax, si
jb 0x40f06b
mov edx, 0x7fff
mov dword [esp + 0x24], edx
mov ecx, edx
mov dword [esp + 0x2c], edx
jmp 0x40f06b
mov edx, dword [esp + 0x24]
movzx eax, cx
test ax, ax
jns 0x40f160
mov ecx, dword [ebp + 0x18]
test cl, cl
jne 0x40f1e5
mov ah, byte [0x4e82bd]
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 0x40f131
nop dword [eax]
mov ecx, dword [0x4e842c]
movzx eax, dx
mov ecx, dword [ecx + eax*4]
cmp byte [ecx + 0x15], 0
movzx edx, word [ecx + 0xc]
jne 0x40f0f7
movzx eax, byte [ecx + 0xf]
mov ebx, dword [ebp + 0x10]
not eax
test byte [0x4e82bd], al
jne 0x40f127
cmp byte [ecx + 0x16], 0
jne 0x40f127
cmp byte [ecx + 0x11], 0
jne 0x40f127
cmp word [ecx + 0xa], 0
jne 0x40f127
cmp word [ecx + 6], 0
jne 0x40f127
mov eax, esi
not eax
test dword [ecx], eax
jne 0x40f127
movzx eax, byte [0x4e82bd]
not eax
test byte [ecx + 0xe], al
je 0x40f149
mov eax, 0x7fff
cmp dx, ax
jne 0x40f0d0
mov ecx, dword [ebp + 0x18]
mov eax, 0x7fff
movzx edx, ax
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], edx
jmp 0x40f1e9
movzx eax, word [ecx + 4]
mov ecx, dword [ebp + 0x18]
movzx edx, ax
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], edx
jmp 0x40f1e9
mov edx, 0x7fff
cmp ax, dx
je 0x40f1f9
mov ecx, dword [ebp + 0x18]
and eax, edx
test cl, cl
je 0x40f234
cmp ax, word [0x4e843c]
jae 0x40f1de
mov esi, eax
mov eax, dword [0x4ea2ac]
cmp word [eax + esi*2], dx
je 0x40f1de
cmp byte [esp + 0x1f], 0
jne 0x40f1cb
push dword [esp + 0x40]
lea eax, [esp + 0x12]
mov dl, cl
push eax
lea eax, [edi + 0xc]
push eax
push dword [ebp + 0x1c]
lea ecx, [esp + 0x3c]
call fcn.00413600
mov ecx, dword [ebp + 0x18]
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
je 0x40f1cb
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
jmp 0x40f1e9
mov eax, dword [0x4ea2ac]
movzx edx, word [eax + esi*2]
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], edx
jmp 0x40f1e9
cmp byte [esp + 0x1f], 0
jne 0x40f1f9
mov edx, dword [esp + 0x24]
mov eax, 0x7fff
cmp dx, ax
jne 0x40f2cf
mov edx, eax
mov eax, dword [ebp + 0x18]
test al, al
je 0x40f268
cmp byte [edi + 8], 0
jne 0x40f255
test byte [edi + 0xc], 1
jne 0x40f255
cmp byte [edi + 9], 0
je 0x40f255
cmp byte [esp + 0x17], 0
jne 0x40f255
mov edx, dword [esp + 0x10]
push 0
push closesocket
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
push edx
push eax
jmp 0x40f90b
mov edx, dword [esp + 0x24]
cmp ax, word [0x4e843c]
jae 0x40f1e9
mov ecx, eax
mov eax, dword [0x4ea2ac]
mov ax, word [eax + ecx*2]
mov ecx, dword [ebp + 0x18]
mov word [edi + 4], ax
jmp 0x40f1e9
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
push edx
jmp 0x40e433
cmp word [edi + 4], dx
lea ecx, [edi + 4]
jne 0x40f285
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
push dword [ebp + 0x1c]
push 0
jmp 0x40e434
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.00413600
mov edx, dword [esp + 0x20]
add esp, 0x10
cmp byte [esp + 0xe], 0
je 0x40f2b7
push 0x7fff
push edx
push esi
push 0
jmp 0x40e434
push 0
push closesocket
push 0x7fff
push edx
push esi
push 0
jmp 0x40f90b
mov ecx, dword [ebp + 0x18]
mov al, byte [edi + 0xc]
lea esi, [edi + 0xc]
test al, 8
je 0x40f2e6
test cl, cl
je 0x40f2e6
and al, 0xf7
mov byte [esp + 0xe], 1
mov byte [esi], al
mov eax, edx
and eax, 0x7fff
cmp ax, word [0x4e843c]
jae 0x40f3d8
cmp dword [esp + 0x34], 0
jne 0x40f3d8
push dword [esp + 0x40]
lea eax, [esp + 0x12]
mov dl, cl
push eax
push esi
push dword [ebp + 0x1c]
lea ecx, [esp + 0x3c]
call fcn.00413600
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
jne 0x40f3d2
mov eax, dword [esp + 0x40]
cmp byte [eax], 0x69
jne 0x40f34a
mov edx, dword [esp + 0x10]
push 0x7fff
push edx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
jmp 0x40e434
mov eax, dword [ebp + 0x18]
test al, al
je 0x40f36e
cmp byte [edi + 0x11], 0
mov edx, dword [esp + 0x10]
jne 0x40f21d
push 0x7fff
push edx
mov edx, dword [ebp + 0x1c]
push edx
jmp 0x40e433
lea ecx, [edi + 4]
mov eax, 0x7fff
cmp word [ecx], ax
je 0x40f271
push 0
lea eax, [esp + 0x12]
mov byte [esp + 0x12], 0
push eax
push esi
push dword [ebp + 0x1c]
mov dl, 1
call fcn.00413600
mov edx, dword [esp + 0x20]
add esp, 0x10
cmp byte [esp + 0xe], 0
je 0x40f3b4
push 0x7fff
push edx
push dword [ebp + 0x1c]
push 0
jmp 0x40e434
and byte [esi], 0xf7
push 0
push closesocket
push 0x7fff
push edx
push dword [ebp + 0x1c]
mov byte [edi + 0x11], 1
push 0
jmp 0x40f90b
mov ecx, dword [esp + 0x2c]
jmp 0x40f3dc
mov ecx, dword [esp + 0x24]
and ecx, 0x7fff
test byte [0x4e82be], 0xcc
mov dword [esp + 0x24], ecx
je 0x40f486
cmp byte [esp + 0xe], 0
jne 0x40f486
cmp byte [0x4ea2a1], 0
jne 0x40f413
mov eax, dword [esp + 0x18]
cmp eax, dword [0x4e796c]
jne 0x40f486
test byte [0x4e82be], 0xc0
mov dh, byte [0x4e82bc]
je 0x40f43f
test dh, 0xc0
jne 0x40f432
mov dl, 0xc0
call fcn.00413840
test al, al
je 0x40f43b
mov byte [0x4ea2a0], 1
jmp 0x40f486
mov ecx, dword [esp + 0x24]
cmp byte [0x4ea2a0], 0
jne 0x40f486
mov al, byte [0x4e82be]
test al, 0xc
je 0x40f486
test al, 3
jne 0x40f486
test dh, 0xc
jne 0x40f465
mov dl, 0xc
call fcn.00413840
test al, al
je 0x40f486
cmp dword [0x4e7970], 0
je 0x40f477
mov byte [0x4ea2a0], 1
jmp 0x40f486
mov edx, 0xffc3d44d
mov ecx, 2
call fcn.004197d0
mov eax, dword [esp + 0x24]
movzx ecx, ax
lea eax, [ecx - 0x7ffa]
cmp eax, 4
ja case.default.0x40f49c
jmp dword [eax*4 + 0x40f94c]
cmp byte [0x4ea2a2], 0
je 0x40f335
xor al, al
test byte [0x4e82be], 4
je 0x40f4c2
mov edx, 0xa4
jmp 0x40f4d4
test byte [0x4e82be], 8
movzx edx, al
mov eax, 0xa5
cmovne edx, eax
cmp byte [0x4ea2a2], 0
mov dword [esp + 0x3c], edx
je 0x40f559
mov eax, 0x7ffb
cmp word [esp + 0x24], ax
je case.0x40f49c.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.00419200
add esp, 0x10
cmp byte [edi + 8], 0
je 0x40f548
cmp bl, 0x5b
je 0x40f548
cmp bl, 0x5c
je 0x40f548
cmp byte [ebp + 0x18], 0
jne 0x40f548
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.00419200
add esp, 0x10
mov byte [0x4ea2a2], 0
mov edx, 0x7fff
jmp 0x40f7e6
cmp bl, 0xa4
je 0x40f568
mov byte [esp + 0x1f], 0
cmp bl, 0xa5
jne 0x40f56d
mov byte [esp + 0x1f], 1
cmp bl, 0xa0
je 0x40f57b
cmp bl, 0xa1
je 0x40f57b
xor cl, cl
jmp 0x40f57d
mov cl, 1
mov byte [esp + 0x16], cl
cmp bl, 0xa2
je 0x40f590
mov byte [esp + 0xf], 0
cmp bl, 0xa3
jne 0x40f595
mov byte [esp + 0xf], 1
xor dl, dl
test byte [0x4e82be], 0x10
mov dword [esp + 0x34], edx
je 0x40f5a8
mov dl, 0xa0
jmp 0x40f5c7
test byte [0x4e82be], 0x20
mov eax, dword [ebp + 0x18]
je 0x40f5b8
mov dl, 0xa1
jmp 0x40f5ca
test al, al
jne 0x40f5ce
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 [0x4e82be], 1
mov dword [esp + 0x38], ecx
je 0x40f5e4
mov byte [esp + 0x38], 0xa2
jmp 0x40f60a
test byte [0x4e82be], 2
je 0x40f5f4
mov byte [esp + 0x38], 0xa3
jmp 0x40f60a
test al, al
jne 0x40f60a
cmp byte [esp + 0xf], 0
movzx ecx, cl
movzx eax, bl
cmovne ecx, eax
mov dword [esp + 0x38], ecx
mov byte [esp + 0xf], 0
test dl, dl
je 0x40f630
push 0xffc3d44d
push 0
push 0
push 0
mov ecx, 1
call fcn.00419200
add esp, 0x10
mov byte [esp + 0xf], 1
mov eax, dword [esp + 0x38]
test al, al
je 0x40f652
push 0xffc3d44d
push 0
push 0
push 0
mov dl, al
mov ecx, 1
call fcn.00419200
add esp, 0x10
cmp byte [esp + 0x1f], 0
je 0x40f663
cmp byte [ebp + 0x18], 0
jne 0x40f66b
mov al, bl
jmp 0x40f667
mov eax, dword [esp + 0x3c]
test al, al
jne 0x40f682
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00419200
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00419200
add esp, 0x10
cmp byte [esp + 0xf], 0
je 0x40f6c3
cmp byte [esp + 0x16], 0
jne 0x40f6c3
mov dl, byte [esp + 0x34]
xor ecx, ecx
push 0xffc3d44d
push 0
push 0
push 0
call fcn.00419200
add esp, 0x10
mov byte [0x4ea2a2], 1
mov edx, 0x7fff
jmp 0x40f7e6
cmp byte [0x4ea2a2], 0
je 0x40f335
mov eax, dword [ebp + 0x18]
test al, al
jne 0x40f719
cmp bl, 0xa2
je 0x40f6fc
cmp bl, 0xa3
je 0x40f6fc
cmp bl, 0xa0
je 0x40f6fc
cmp bl, 0xa1
jne 0x40f719
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.00419200
mov eax, dword [ebp + 0x18]
add esp, 0x10
test byte [0x4e82be], 0xc
je 0x40f730
test al, al
je 0x40f747
cmp bl, 0xa4
je 0x40f730
cmp bl, 0xa5
jne 0x40f747
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00419200
add esp, 0x10
mov eax, 0x7ffd
mov byte [esp + 0xf], 0
cmp word [esp + 0x24], ax
jne 0x40f77d
test byte [0x4e82be], 0x30
jne 0x40f77d
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.00419200
add esp, 0x10
mov byte [esp + 0xf], 1
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00419200
add esp, 0x10
cmp byte [esp + 0xf], 0
je 0x40f54f
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 1
call fcn.00419200
add esp, 0x10
mov edx, 0x7fff
jmp 0x40f7e6
mov edx, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x44], edx
mov eax, dword [ecx + 4]
test eax, eax
je 0x40f7e6
cmp byte [eax], 5
jb 0x40f7e6
movzx eax, word [ecx + 0x14]
shl eax, 0x10
or edx, eax
mov dword [esp + 0x44], edx
cmp byte [esp + 0x17], 0
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp + 0x18]
mov byte [eax], 0x68
je 0x40f854
test cl, cl
je 0x40f895
cmp byte [edi + 9], 0
je 0x40f854
mov esi, dword [esp + 0x20]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push esi
mov ecx, 1
call fcn.00419200
push 0xffc3d44d
push 0
push 0
push esi
mov dl, bl
mov ecx, 2
call fcn.00419200
mov eax, dword [esp + 0x64]
add esp, 0x20
mov edx, dword [esp + 0x10]
push 0
push closesocket
push eax
push edx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
jmp 0x40f90b
test cl, cl
je 0x40f895
cmp byte [edi + 8], 0
je 0x40f871
cmp byte [edi + 0x11], 0
je 0x40f8b6
push 0
push closesocket
push edx
jmp 0x40f902
cmp byte [esp + 0xe], 0
je 0x40f8ee
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 0x40e1e3
mov eax, dword [0x4e840c]
mov byte [edi + 0x10], 1
test eax, eax
je 0x40f8ac
cmp byte [eax + 8], 0
je 0x40f8ac
mov byte [eax + 0x12], 2
cmp byte [esp + 0xe], 0
je 0x40f8c5
or byte [esi], 8
push edx
mov edx, dword [esp + 0x14]
push edx
push dword [ebp + 0x1c]
push ecx
jmp 0x40e434
cmp bl, 0xa4
je 0x40f8cf
cmp bl, 0xa5
jne 0x40f8ee
push 0xffc3d450
push 0
push 0
push dword [esp + 0x2c]
mov dl, bl
mov ecx, 1
call fcn.00419200
mov ecx, dword [ebp + 0x18]
add esp, 0x10
test cl, cl
jne 0x40f8f6
mov byte [edi + 0x11], 1
mov eax, dword [esp + 0x44]
push 0
push closesocket
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.0040f960
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret