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

Disassembly:
sub esp, 0x120
push ebx
push ebp
push esi
push edi
mov di, word [esp + 0x140]
mov eax, 0x7fff
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x148]
mov dword [esp + 0x14], ecx
movzx ebp, di
mov dword [esp + 0x54], eax
cmp edx, 0xffc3d44f
je 0x40ed5a
cmp edx, 0xffc3d44e
je 0x40ed5a
mov byte [esp + 0x22], 0
cmp edx, 0xffc3d44d
jne 0x40ed5f
mov byte [esp + 0x22], 1
mov ecx, dword [0x4e8c68]
mov ebx, dword [esp + 0x13c]
test ecx, ecx
jne 0x40ed7d
lea esi, [esp + 0x5c]
mov dword [esp + 0x1c], esi
jmp 0x40ee44
mov eax, dword [0x4e8c84]
imul esi, eax, 0xd4
inc eax
mov dword [0x4e8c84], eax
add esi, ecx
mov dword [esp + 0x1c], esi
cmp eax, dword [0x4e478c]
jl 0x40eda6
mov dword [0x4e8c84], 0
mov ecx, dword [esp + 0x144]
mov byte [esi], bl
mov byte [esi + 6], cl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [0x4e8c80], eax
sub ecx, dword [0x4ea778]
mov dword [0x4ea778], eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4dcb40]
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4dca54]
movss dword [esi + 8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [esp + 0x1c]
mov esi, eax
add ecx, 0xc
test esi, esi
je 0x40ee26
cmp esi, dword [0x4e8c7c]
je 0x40ee1f
push esi
push ecx
push 0x418
push dword [0x4e8c5c]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40ee33
xor eax, eax
mov word [ecx], ax
jmp 0x40ee33
mov dword [ecx], 0x2f004e
mov dword [ecx + 4], 0x41
mov edx, dword [esp + 0x148]
mov dword [0x4e8c7c], esi
mov esi, dword [esp + 0x1c]
cmp bl, 0xe7
jne 0x40ee99
mov ecx, dword [esp + 0x138]
push 0x7fff
push esi
push edx
push dword [esp + 0x150]
mov ax, word [ecx + 4]
mov edx, dword [esp + 0x44]
push 0
push 0xe7
push ecx
push dword [esp + 0x150]
mov ecx, dword [esp + 0x34]
mov word [esi + 2], ax
mov eax, 0x55
mov word [esi + 4], ax
call fcn.00410900
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
mov al, bl
mov word [esi + 2], di
mov esi, dword [0x4ea7a8]
add al, 0x64
mov cl, 3
mov edi, 0x20
cmp cl, al
sbb eax, eax
and eax, ebp
mov ebp, dword [esp + 0x14]
movzx eax, ax
mov dword [esp + 0x24], eax
cmp ebp, dword [0x4e8e80]
jne 0x40eef9
mov cl, byte [esp + 0x14c]
and cl, 1
mov dword [esp + 0x40], ecx
jne 0x40ef80
mov al, byte [esp + 0x144]
movzx ecx, bl
xor al, 1
shl al, 7
mov byte [ecx + 0x4e8e90], al
mov ecx, dword [esp + 0x40]
jmp 0x40ef80
mov edx, dword [esp + 0x14c]
mov ecx, edx
movzx ebp, bl
shr ecx, 4
and ecx, 0xffffff01
mov dword [esp + 0x40], ecx
lea eax, [ebp*4]
add eax, ebp
cmp byte [esi + eax*4 + 8], 0
jne 0x40ef7c
test dl, 0x10
jne 0x40ef7c
cmp bl, 0xa0
je 0x40ef31
cmp bl, 0xa1
jne 0x40ef50
cmp byte [esp + 0x144], 0
jne 0x40ef50
cmp bl, 0xa0
mov eax, edi
mov edx, 0x10
cmove eax, edx
test byte [0x4e8e8e], al
jne 0x40ef7c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x4ea7a8]
mov ecx, dword [esp + 0x40]
mov dword [0x4ea780], eax
mov dword [0x4ea77c], eax
mov al, byte [esp + 0x144]
xor al, 1
shl al, 7
mov byte [ebp + 0x4e8e90], al
mov ebp, dword [esp + 0x14]
mov dl, byte [esp + 0x22]
test dl, dl
je 0x40ef8f
mov eax, 0x69
jmp 0x40ef9c
mov eax, 0x61
test cl, cl
cmovne edi, eax
movzx eax, di
cmp byte [0x4e8e7f], 0
mov ecx, dword [esp + 0x1c]
lea edi, [ecx + 4]
mov word [edi], ax
mov dword [esp + 0x50], edi
je 0x40efe7
cmp bl, 0x5b
je 0x40efbd
cmp bl, 0x5c
jne 0x40efe7
mov eax, dword [esp + 0x144]
test al, al
jne 0x40efee
push 0
push closesocket
push 0x7fff
push ecx
mov ecx, dword [esp + 0x158]
push ecx
push 0
push ecx
mov ecx, ebp
jmp 0x410757
mov eax, dword [esp + 0x144]
cmp byte [0x4ea60e], 0
mov ebp, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, dword [sym.imp.USER32.dll_FindWindowW]
je 0x40f0a2
cmp bl, 0x1b
jne 0x40f0a2
test al, al
jne 0x40f0a2
push 0
push str.32771
call edi
test eax, eax
je 0x40f098
push 0
push eax
call ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
jne 0x40f098
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
xor ecx, ecx
call fcn.00419b10
mov dl, byte [0x4e8f95]
mov ecx, 1
push 0xffc3d44d
shr dl, 3
push 0
and dl, 1
push 0
push 0
or dl, 0xa4
call fcn.00419b10
mov ecx, dword [esp + 0x3c]
add esp, 0x20
push 0
push closesocket
push 0x7fff
push ecx
mov ecx, dword [esp + 0x158]
push ecx
push 0
push ecx
mov ecx, dword [esp + 0x30]
push 0x1b
jmp 0x410758
mov esi, dword [0x4ea7a8]
mov dl, byte [esp + 0x22]
mov eax, dword [esp + 0x24]
movzx eax, ax
mov dword [esp + 0x40], eax
lea ecx, [eax + eax*4]
mov eax, dword [0x4ea7ac]
mov dh, byte [eax + ecx*4 + 0x13]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov byte [esp + 0x23], dh
cmp ecx, dword [0x4e8e84]
jne 0x40f0d4
test dh, dh
jne 0x40f0e1
movzx eax, bl
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
mov dword [esp + 0x30], eax
test dl, dl
je 0x40f158
mov edx, dword [esp + 0x148]
cmp edx, 0xffc3d44e
jne 0x40f118
cmp byte [esp + 0x144], 0
je 0x40f118
cmp dword [0x4e8fbc], eax
jne 0x40f118
mov byte [eax + 0xd], 0
mov byte [eax + 0x10], 0
mov dword [0x4e8fbc], 0
mov ecx, dword [esp + 0x1c]
push 0x7fff
push ecx
push edx
push dword [esp + 0x150]
mov ecx, dword [esp + 0x24]
push dword [esp + 0x34]
mov edx, dword [esp + 0x48]
push ebx
push dword [esp + 0x150]
push dword [esp + 0x150]
call fcn.00410900
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
mov edx, dword [esp + 0x144]
test dl, dl
jne 0x40f166
mov byte [eax + 0x11], dl
mov eax, ecx
cmp eax, dword [0x4e8e80]
jne 0x40f1f6
test bl, bl
jne 0x40f1b8
mov ecx, dword [esp + 0x1c]
push 0x7fff
push ecx
mov ecx, dword [esp + 0x150]
push ecx
push edx
push dword [esp + 0x34]
mov edx, dword [esp + 0x48]
mov ecx, eax
push 0
push dword [esp + 0x150]
push dword [esp + 0x150]
call fcn.00410900
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
cmp bl, 1
je 0x40f1c2
cmp bl, 2
jne 0x40f1f6
cmp dword [0x4e8c34], 0
jne 0x40f22b
push 0
push str.32768
call edi
test eax, eax
je 0x40f1e5
push 0
push eax
call ebp
cmp eax, dword [0x4e9ea8]
je 0x40f224
mov esi, dword [0x4ea7a8]
mov edx, dword [esp + 0x144]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4e8fbc]
mov edi, dword [esp + 0x30]
test ecx, ecx
je 0x40f263
cmp ecx, edi
je 0x40f263
test dl, dl
jne 0x40f263
cmp byte [ecx + 0x12], 0xff
je 0x40f263
cmp eax, dword [0x4e8e84]
jne 0x40f252
xor eax, eax
cmp byte [edi + 8], al
sete al
jmp 0x40f25b
mov edx, dword [esp + 0x144]
mov ecx, dword [esp + 0x30]
mov al, dl
xor al, 1
push 0x7fff
mov byte [ecx + 0x10], 0
mov byte [ecx + 0xd], al
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x150]
push ecx
push edx
jmp 0x40f12a
mov eax, dword [0x4e8fbc]
movzx eax, byte [eax + 8]
test eax, eax
je 0x40f263
mov byte [ecx + 0x12], 1
cmp byte [edi + 9], 0
jne 0x40f28e
cmp byte [edi + 0xa], 0
jne 0x40f28e
mov ecx, dword [esp + 0x1c]
mov al, dl
push 0x7fff
push ecx
mov ecx, dword [esp + 0x150]
xor al, 1
push ecx
mov byte [edi + 0xd], al
push edx
jmp 0x40f12a
mov ebp, 0x7fff
xor ecx, ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x44], ecx
mov byte [esp + 0x11], cl
mov dword [esp + 0x58], ebp
test dl, dl
je 0x40f2eb
mov ch, byte [edi + 0x10]
mov al, byte [edi + 0xd]
mov byte [esp + 0x13], al
movzx eax, word [edi + 4]
mov byte [esp + 0x2b], ch
mov ecx, ebp
mov byte [edi + 0x10], 0
cmp ax, cx
je 0x40f2d8
mov ebp, eax
mov word [edi + 4], cx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], ebp
mov al, byte [edi + 0xc]
test al, 8
je 0x40f2fb
and al, 0xf7
mov byte [esp + 0x11], 1
mov byte [edi + 0xc], al
jmp 0x40f2fb
mov al, byte [esp + 0x13]
mov byte [esp + 0x13], al
mov al, byte [esp + 0x13]
mov byte [esp + 0x2b], al
mov al, dl
xor cl, cl
xor al, 1
mov byte [edi + 0xd], al
mov eax, dword [esp + 0x14]
cmp eax, dword [0x4e8e84]
jne 0x40f379
cmp byte [edi + 8], cl
je 0x40f39f
cmp byte [esi + 0xcb5], cl
jne 0x40f32d
cmp byte [esi + 0xcc9], cl
jne 0x40f32d
xor al, al
jmp 0x40f32f
mov al, 1
cmp byte [esi + 0xcdd], 0
mov byte [esi + 0x161], al
jne 0x40f34b
cmp byte [esi + 0xcf1], 0
jne 0x40f34b
xor al, al
jmp 0x40f34d
mov al, 1
cmp byte [esi + 0xc8d], 0
mov byte [esi + 0x175], al
jne 0x40f36f
cmp byte [esi + 0xca1], 0
jne 0x40f36f
xor al, al
mov byte [esi + 0x14d], al
jmp 0x40f39f
mov al, 1
mov byte [esi + 0x14d], al
jmp 0x40f39f
cmp dword [0x4e8e84], 0
jne 0x40f39f
mov cl, 1
call fcn.0041c240
mov esi, dword [0x4ea7a8]
mov ah, al
mov byte [0x4e8f94], ah
mov cl, 1
mov byte [0x4e8f95], ah
mov eax, dword [edi]
test eax, eax
je 0x40f3af
cmp dword [eax], 6
mov byte [esp + 0x22], 1
je 0x40f3b4
mov byte [esp + 0x22], 0
test cl, cl
jne 0x40f3c5
mov cl, 1
call fcn.0041c240
mov esi, dword [0x4ea7a8]
mov al, byte [edi + 9]
mov ecx, dword [esp + 0x144]
test al, al
je 0x40f7d1
test cl, cl
jne 0x40f7d1
mov ecx, dword [0x4e8fbc]
test ecx, ecx
je 0x40f3f7
cmp byte [edi + 0xa], 0
je 0x40f3f7
cmp edi, ecx
jne 0x40f7c4
mov dh, byte [edi + 0xc]
shr dh, 4
not dh
and dh, 1
mov byte [esp + 0x1b], dh
cmp al, 1
jne 0x40f577
cmp byte [esp + 0x23], 0
mov ecx, dword [esp + 0x40]
jne 0x40f41c
movzx ecx, bl
xor edx, edx
movzx eax, cx
cmp byte [esp + 0x23], dl
mov dword [esp + 0x48], ecx
cmovne edx, eax
movzx ecx, cl
xor eax, eax
cmp byte [esp + 0x23], al
push 0
cmovne ecx, eax
call fcn.0041c480
mov dh, al
xor dl, dl
xor eax, eax
mov byte [esp + 0x16], dh
xor ecx, ecx
mov byte [esp + 0x43], dl
add esp, 4
mov dword [esp + 0x4c], eax
cmp cx, word [0x4e8fec]
jae 0x40f5d7
nop dword [eax]
nop word [eax + eax]
cmp byte [esp + 0x23], 0
mov ecx, dword [0x4e8fdc]
mov edi, dword [ecx + eax*4]
je 0x40f486
movzx eax, word [edi + 0xa]
jmp 0x40f48a
movzx eax, byte [edi + 0x11]
cmp dword [esp + 0x48], eax
je 0x40f499
test byte [edi + 0xe], dh
je 0x40f552
cmp word [edi + 6], 0
je 0x40f4d5
cmp byte [edi + 0x19], 0
je 0x40f552
cmp byte [0x4e8e0d], 0
jne 0x40f552
test byte [edi + 0x13], 1
mov dh, byte [esp + 0x1b]
jne 0x40f56d
test dh, dh
jne 0x40f56d
mov dl, 1
mov byte [esp + 0x3f], dl
jmp 0x40f54e
mov esi, dword [edi + 0x20]
mov eax, esi
test eax, eax
je 0x40f552
nop
cmp byte [eax + 0x20], 0
jne 0x40f4ef
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x40f4e0
jmp 0x40f552
test dl, dl
je 0x40f500
test byte [edi + 0x13], 1
je 0x40f552
nop dword [eax]
cmp byte [esi + 0x20], 0
je 0x40f547
cmp byte [0x4e8e0d], 0
je 0x40f515
cmp byte [esi + 0x21], 0
je 0x40f547
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40f528
mov edx, dword [edi + 0x1c]
call fcn.00413aa0
test eax, eax
je 0x40f543
test byte [esi + 0x1d], 1
mov dh, byte [esp + 0x1b]
jne 0x40f56d
test dh, dh
jne 0x40f56d
mov dl, 1
mov byte [esp + 0x3f], dl
test byte [edi + 0x13], dl
je 0x40f54e
jmp 0x40f547
mov dl, byte [esp + 0x3f]
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x40f500
mov dh, byte [esp + 0x12]
mov ecx, dword [esp + 0x4c]
movzx eax, word [0x4e8fec]
inc ecx
mov dword [esp + 0x4c], ecx
cmp ecx, eax
jge 0x40f5cd
mov eax, ecx
jmp 0x40f470
mov esi, dword [0x4ea7a8]
mov edi, dword [esp + 0x30]
mov byte [esp + 0x12], 0
cmp edi, dword [0x4e8fbc]
je 0x40f58e
mov dword [0x4e8fbc], edi
mov byte [edi + 0x12], 0
cmp byte [edi + 0xa], 0
je 0x40f74f
mov al, byte [edi + 8]
mov dl, byte [0x4e8f94]
test al, al
je 0x40f5a9
not al
and dl, al
mov eax, dword [esp + 0x14]
cmp eax, dword [0x4e8e84]
jne 0x40f5e8
cmp byte [esp + 0x23], 0
je 0x40f5e8
mov eax, dword [0x4ea7a0]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x40]
jmp 0x40f5f8
mov esi, dword [0x4ea7a8]
mov edi, dword [esp + 0x30]
mov dh, dl
mov byte [esp + 0x1b], dh
test dl, dl
jne 0x40f577
mov byte [esp + 0x12], 1
jmp 0x40f58e
movzx ecx, dl
movzx eax, bl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4ea79c]
movzx ecx, word [eax + ecx*2]
mov eax, ecx
movzx ebp, cx
and eax, 0x7fff
mov dword [esp + 0x2c], ebp
add eax, 0xffff8006
mov dword [esp + 0x38], ebp
cmp ax, 4
jbe 0x40f75d
mov eax, 0x7fff
cmp cx, ax
je 0x40f75d
test dh, dh
jne 0x40f64c
mov byte [edi + 0x12], 0xff
mov dl, byte [esp + 0x11]
test ebp, 0x8000
je 0x40f734
mov word [edi + 4], bp
jmp 0x40f75d
test dl, dl
jne 0x40f633
push 0
lea eax, [esp + 0x15]
push eax
push dword [esp + 0x150]
lea ecx, [esp + 0x44]
call fcn.004143b0
mov dl, byte [esp + 0x1d]
add esp, 0xc
mov dword [esp + 0x44], eax
test eax, eax
je 0x40f68e
test dl, dl
je 0x40f68e
mov ebp, dword [esp + 0x38]
mov esi, dword [0x4ea7a8]
mov dh, byte [esp + 0x1b]
mov dword [esp + 0x2c], ebp
jmp 0x40f637
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x2c], ebp
cmp bp, word [0x4e8fec]
jae 0x40f718
mov ecx, dword [0x4ea7a4]
mov eax, 0x7fff
movzx esi, bp
add esi, esi
add ecx, esi
cmp word [ecx], ax
je 0x40f718
push 0
lea eax, [esp + 0x15]
mov byte [esp + 0x15], 0
push eax
push dword [esp + 0x150]
call fcn.004143b0
mov dl, byte [esp + 0x1d]
add esp, 0xc
test eax, eax
je 0x40f718
test dl, dl
je 0x40f718
cmp dword [esp + 0x44], 0
mov dh, byte [esp + 0x1b]
je 0x40f6f8
mov esi, dword [0x4ea7a8]
mov byte [esp + 0x11], 0
jmp 0x40f633
mov dword [esp + 0x44], eax
mov eax, dword [0x4ea7a4]
movzx ebp, word [esi + eax]
mov esi, dword [0x4ea7a8]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], ebp
jmp 0x40f637
mov esi, dword [0x4ea7a8]
mov ebp, 0x7fff
mov dh, byte [esp + 0x1b]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], ebp
jmp 0x40f637
cmp bp, word [0x4e8fec]
jae 0x40f753
mov eax, dword [0x4ea7a4]
movzx ecx, bp
mov ax, word [eax + ecx*2]
mov word [edi + 4], ax
jmp 0x40f753
mov dl, byte [esp + 0x11]
mov eax, 0x7fff
cmp bp, ax
jne 0x40f7c8
cmp byte [esp + 0x12], 0
je 0x40f770
mov eax, dword [esp + 0x50]
mov ecx, 0x23
mov word [eax], cx
test dh, dh
jne 0x40f778
or byte [edi + 0xc], 8
cmp byte [edi + 8], 0
jne 0x40f7ac
test dh, dh
je 0x40f7ac
cmp byte [esp + 0x22], 0
jne 0x40f7ac
mov ecx, dword [esp + 0x1c]
push 0
push closesocket
push 0x7fff
push ecx
push dword [esp + 0x158]
mov byte [edi + 0x11], 1
push 0
jmp 0x410752
mov ecx, dword [esp + 0x1c]
push 0x7fff
push ecx
push dword [esp + 0x150]
push 0
jmp 0x40f12a
mov dl, byte [esp + 0x11]
mov ecx, dword [esp + 0x144]
jmp 0x40f7d5
mov dl, byte [esp + 0x11]
cmp byte [edi + 0xa], 0
mov byte [esp + 0x12], 0
je 0x40f843
test cl, cl
je 0x40f843
mov al, byte [esp + 0x2b]
cmp dword [0x4e8fbc], edi
jne 0x40f7fe
test al, al
je 0x40f843
mov dword [0x4e8fbc], 0
cmp byte [edi + 0xb], 0
jne 0x40f83e
test al, al
je 0x40f828
test dl, dl
jne 0x40f828
push 0
push closesocket
push 0x7fff
push dword [esp + 0x28]
push dword [esp + 0x158]
jmp 0x410751
push 0x7fff
push dword [esp + 0x20]
push dword [esp + 0x150]
push ecx
jmp 0x40f12a
mov byte [esp + 0x12], 1
cmp byte [edi + 9], 0
mov eax, 1
je 0x40f980
test cl, cl
je 0x40f980
cmp dword [0x4e8fbc], edi
jne 0x40f86c
mov dword [0x4e8fbc], 0
cmp byte [edi + 0xe], 0
je 0x40f898
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
mov byte [edi + 0xe], 0
mov ecx, eax
call fcn.00419b10
mov esi, dword [0x4ea7a8]
add esp, 0x10
mov eax, 1
cmp byte [edi + 0xf], 0
je 0x40f8bf
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov byte [edi + 0xf], 0
mov ecx, eax
call fcn.00419b10
mov esi, dword [0x4ea7a8]
add esp, 0x10
mov cl, byte [esp + 0x22]
mov al, byte [edi + 0x12]
test cl, cl
je 0x40f93d
cmp al, 2
jne 0x40f924
mov ebp, dword [esp + 0x24]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push ebp
mov ecx, 1
call fcn.00419b10
push 0xffc3d44d
push 0
push 0
push ebp
mov dl, bl
mov ecx, 2
call fcn.00419b10
add esp, 0x20
push 0
push closesocket
push 0x7fff
push dword [esp + 0x28]
push dword [esp + 0x158]
push dword [esp + 0x158]
jmp 0x410752
cmp al, 1
jne 0x40f95a
push 0x7fff
push dword [esp + 0x20]
push dword [esp + 0x150]
jmp 0x40f123
test al, al
jle 0x40f95a
mov eax, 0x7fff
cmp bp, ax
jne 0x40f95a
cmp byte [edi + 8], 0
jne 0x40f928
cmp byte [esp + 0x11], 0
jne 0x40f928
jmp 0x40f901
cmp byte [edi + 0xa], 0
jne 0x40f973
cmp byte [edi + 8], 0
jne 0x40f928
cmp byte [esp + 0x11], 0
jne 0x40f928
test cl, cl
jne 0x40f928
jmp 0x40f901
cmp byte [esp + 0x13], 0
jne 0x40f980
cmp byte [edi + 0xb], 0
je 0x40f928
xor ebp, ebp
mov dword [esp + 0x4c], ebp
cmp dword [0x4e8fbc], ebp
je 0x40fd35
mov ecx, dword [esp + 0x144]
test cl, cl
je 0x40f9a7
cmp byte [edi + 0xb], 0
je 0x40fd35
mov edx, dword [esp + 0x2c]
mov eax, 0x7fff
cmp dx, ax
jne 0x40ffdb
movzx edi, word [edi + 6]
cmp di, ax
je 0x40fb06
nop word [eax + eax]
mov eax, dword [0x4e8fdc]
movzx ecx, di
mov edx, dword [eax + ecx*4]
mov al, byte [edx + 0x11]
test al, al
jne 0x40f9fa
cmp word [edx + 0xa], 0
je 0x40fa58
movzx eax, word [edx + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4ea7ac]
lea eax, [eax + ecx*4]
jmp 0x40fa03
movzx eax, al
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
cmp byte [eax + 0xd], 0
movzx edi, word [edx + 0xc]
mov ecx, dword [esp + 0x144]
je 0x40fa44
cmp byte [edx + 0x16], 0
je 0x40fa37
test cl, cl
jne 0x40fa50
mov ecx, dword [esp + 0x30]
mov ax, word [edx + 4]
mov word [ecx + 4], ax
test ebp, ebp
jne 0x40fa67
mov ecx, dword [esp + 0x144]
jmp 0x40fa44
test cl, cl
jne 0x40fa44
test ebp, ebp
cmove ebp, edx
mov dword [esp + 0x4c], ebp
mov eax, 0x7fff
cmp di, ax
jne 0x40f9d0
jmp 0x40fa5f
mov ebp, edx
mov dword [esp + 0x4c], ebp
jmp 0x40fa5f
mov ecx, dword [esp + 0x144]
test ebp, ebp
je 0x40fb02
movzx ecx, byte [ebp + 0x11]
cmp ecx, 0x12
ja case.0x40fa77.1
movzx eax, byte [ecx + 0x410788]
jmp dword [eax*4 + 0x410774]
cmp byte [esi + 0xca1], 0
mov eax, 0xc80
mov ecx, 0xc94
cmovne eax, ecx
add eax, esi
jmp 0x40fadd
cmp byte [esi + 0xcc9], 0
mov eax, 0xca8
mov ecx, 0xcbc
cmovne eax, ecx
add eax, esi
jmp 0x40fadd
cmp byte [esi + 0xcf1], 0
mov eax, 0xcd0
mov ecx, 0xce4
cmovne eax, ecx
add eax, esi
jmp 0x40fadd
movzx eax, word [ebp + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4ea7ac]
lea eax, [eax + ecx*4]
jmp 0x40fadd
lea eax, [ecx + ecx*4]
lea eax, [esi + eax*4]
mov dword [0x4e8fbc], eax
movzx eax, word [ebp + 6]
test ax, ax
jne 0x40faef
movzx eax, word [ebp + 4]
mov ecx, dword [esp + 0x144]
movzx edx, ax
mov dword [esp + 0x38], edx
movzx edi, ax
jmp 0x40fb06
mov edx, dword [esp + 0x2c]
mov eax, 0x7ffe
cmp di, ax
je 0x40fb1e
mov eax, 0x7ffd
cmp di, ax
jne 0x40fd2f
mov eax, dword [0x4e8fbc]
cmp byte [eax + 0x12], 0xff
je 0x40fb2d
mov byte [eax + 0x12], 2
mov esi, dword [esp + 0x30]
test cl, cl
jne 0x40fb39
mov byte [esi + 0x10], 1
test byte [0x4e8f95], 0xc
jne 0x40fb60
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00419b10
mov ecx, dword [esp + 0x154]
add esp, 0x10
cmp bl, 0xa2
je 0x40fb6a
cmp bl, 0xa3
jne 0x40fb8d
mov ebp, dword [esp + 0x24]
test cl, cl
jne 0x40fb91
push 0xffc3d44d
push 0
push 0
push ebp
mov dl, bl
mov ecx, 1
call fcn.00419b10
add esp, 0x10
jmp 0x40fb91
mov ebp, dword [esp + 0x24]
mov eax, dword [0x4e8fbc]
mov byte [eax + 0xe], 1
mov eax, 0x7ffd
cmp di, ax
jne 0x40fbd2
test byte [0x4e8f95], 0x30
jne 0x40fbc4
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.00419b10
add esp, 0x10
mov eax, dword [0x4e8fbc]
mov byte [eax + 0xf], 1
jmp 0x40fc52
mov eax, 0x7ffe
cmp di, ax
jne 0x40fc52
cmp bl, 0xa0
je 0x40fbe6
cmp bl, 0xa1
jne 0x40fc0d
cmp byte [esp + 0x144], 0
jne 0x40fc0d
push 0xffc3d44d
push 0
push 0
push ebp
mov ebp, 1
mov dl, bl
mov ecx, ebp
call fcn.00419b10
add esp, 0x10
jmp 0x40fc12
mov ebp, 1
test byte [0x4e8f95], 0x10
je 0x40fc32
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa0
mov ecx, ebp
call fcn.00419b10
add esp, 0x10
test byte [0x4e8f95], 0x20
je 0x40fc52
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa1
mov ecx, ebp
call fcn.00419b10
add esp, 0x10
test byte [0x4e8f95], 1
mov ebp, 1
je 0x40fc77
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa2
mov ecx, ebp
call fcn.00419b10
add esp, 0x10
test byte [0x4e8f95], 2
je 0x40fc97
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa3
mov ecx, ebp
call fcn.00419b10
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00419b10
mov eax, 0x7ffd
add esp, 0x10
cmp di, ax
jne 0x40fcf5
mov eax, dword [0x4e8fbc]
cmp byte [eax + 0xf], 0
je 0x40fcf5
cmp bl, 0x60
jb 0x40fcd0
cmp bl, 0x69
jbe 0x40fcd5
cmp bl, 0x6e
jne 0x40fcf5
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, ebp
call fcn.00419b10
mov eax, dword [0x4e8fbc]
add esp, 0x10
mov byte [eax + 0xf], 0
mov eax, dword [esp + 0x50]
mov ecx, 0x68
mov word [eax], cx
mov eax, dword [esp + 0x144]
test al, al
jne 0x40fd10
mov byte [esi + 0x11], 1
mov ecx, dword [esp + 0x1c]
push 0
push closesocket
push 0x7fff
push ecx
mov ecx, dword [esp + 0x158]
push ecx
push eax
jmp 0x410752
mov edi, dword [esp + 0x30]
jmp 0x40fd39
mov edx, dword [esp + 0x2c]
mov eax, 0x7fff
cmp dx, ax
jne 0x40ffdb
mov al, byte [edi + 8]
mov dl, byte [0x4e8f94]
test al, al
je 0x40fd58
not al
and dl, al
mov eax, dword [esp + 0x14]
mov dh, byte [esp + 0x23]
cmp eax, dword [0x4e8e84]
jne 0x40fd88
test dh, dh
je 0x40fd88
mov eax, dword [0x4ea7a0]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x40]
movzx ebp, word [eax + ecx*2]
movzx eax, bl
mov dword [esp + 0x48], eax
jmp 0x40fda0
movzx eax, bl
movzx ecx, dl
shl ecx, 8
add ecx, eax
mov dword [esp + 0x48], eax
mov eax, dword [0x4ea79c]
movzx ebp, word [eax + ecx*2]
movzx ecx, bp
movzx eax, bp
mov esi, eax
mov dword [esp + 0x2c], ecx
mov edi, eax
mov dword [esp + 0x38], ecx
mov ecx, eax
cmp bp, word [esp + 0x58]
jne 0x40fe43
cmp byte [0x4ea60e], 0
je 0x40fe43
cmp bl, 9
je 0x40fe43
mov edi, dword [esp + 0x14]
and dl, 0xf3
cmp edi, dword [0x4e8e84]
jne 0x40fdf1
test dh, dh
je 0x40fdf1
mov eax, dword [0x4ea7a0]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x40]
jmp 0x40fe00
mov eax, dword [0x4ea79c]
movzx ecx, dl
shl ecx, 8
add ecx, dword [esp + 0x48]
movzx eax, word [eax + ecx*2]
mov ecx, 0x7ff9
movzx ebp, ax
movzx edx, ax
and eax, 0x7fff
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], ebp
cmp ax, cx
jbe 0x410079
mov ecx, edx
mov esi, edx
mov edi, edx
mov edx, 0x7fff
cmp ax, dx
jb 0x40fe47
mov ecx, dword [esp + 0x144]
mov eax, edx
jmp 0x410089
mov ebp, dword [esp + 0x2c]
test cx, cx
movzx eax, di
mov ecx, dword [esp + 0x144]
movzx edx, si
jns 0x40ff44
test cl, cl
jne 0x40ffc5
mov edi, dword [esp + 0x30]
mov eax, 0x7fff
cmp word [edi + 4], ax
jne 0x40fe78
mov word [edi + 4], bp
mov ah, byte [0x4e8f94]
mov ebp, 0x7fff
mov al, ah
and al, 0xc0
movzx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 8
mov edx, ecx
or edx, 1
test ah, 0xc
cmove edx, ecx
mov ecx, edx
or ecx, 4
test ah, 0x30
cmove ecx, edx
movzx edx, word [edi + 6]
mov esi, ecx
or esi, 2
test ah, 3
cmove esi, ecx
cmp dx, bp
je 0x40ff18
nop dword [eax + eax]
mov eax, dword [0x4e8fdc]
movzx ecx, dx
mov ecx, dword [eax + ecx*4]
cmp byte [ecx + 0x15], 0
movzx edx, word [ecx + 0xc]
jne 0x40fee3
movzx eax, byte [ecx + 0xf]
not eax
test byte [0x4e8f94], al
jne 0x40ff13
cmp byte [ecx + 0x16], 0
jne 0x40ff13
cmp byte [ecx + 0x11], 0
jne 0x40ff13
cmp word [ecx + 0xa], 0
jne 0x40ff13
cmp word [ecx + 6], 0
jne 0x40ff13
mov eax, esi
not eax
test dword [ecx], eax
jne 0x40ff13
movzx eax, byte [0x4e8f94]
not eax
test byte [ecx + 0xe], al
je 0x40ff2d
cmp dx, bp
jne 0x40fec0
mov ecx, dword [esp + 0x144]
mov eax, ebp
movzx edx, ax
mov dword [esp + 0x38], edx
jmp 0x40ffc9
movzx eax, word [ecx + 4]
mov ecx, dword [esp + 0x144]
movzx edx, ax
mov dword [esp + 0x38], edx
jmp 0x40ffc9
mov ebp, 0x7fff
cmp dx, bp
je 0x410087
and eax, ebp
test cl, cl
je 0x41003f
cmp ax, word [0x4e8fec]
jae 0x40ffba
mov esi, eax
mov eax, dword [0x4ea7a4]
cmp word [eax + esi*2], bp
je 0x40ffba
cmp byte [esp + 0x12], 0
jne 0x40ffab
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x38]
push eax
lea eax, [esp + 0x15]
push eax
push dword [esp + 0x150]
call fcn.004143b0
mov ecx, dword [esp + 0x150]
add esp, 0xc
mov dword [esp + 0x44], eax
test eax, eax
je 0x40ffab
mov edx, dword [esp + 0x38]
jmp 0x40ffc9
mov eax, dword [0x4ea7a4]
movzx edx, word [eax + esi*2]
mov dword [esp + 0x38], edx
jmp 0x40ffc9
cmp byte [esp + 0x12], 0
jne 0x410091
mov edx, dword [esp + 0x2c]
mov eax, 0x7fff
cmp dx, ax
je 0x410089
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x44]
mov eax, edx
mov edi, dword [esp + 0x148]
and eax, 0x7fff
cmp ax, word [0x4e8fec]
jae 0x4101e1
test esi, esi
jne 0x4101e1
push dword [esp + 0x50]
lea eax, [esp + 0x15]
push eax
push edi
lea ecx, [esp + 0x44]
call fcn.004143b0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4101dd
mov eax, dword [esp + 0x50]
cmp word [eax], 0x69
jne 0x410144
push 0x7fff
push dword [esp + 0x20]
push edi
jmp 0x40f123
mov edx, dword [esp + 0x2c]
cmp ax, word [0x4e8fec]
jae 0x40ffc9
mov edi, dword [esp + 0x30]
cmp word [edi + 4], bp
jne 0x40ffc9
mov ecx, eax
mov eax, dword [0x4ea7a4]
mov ax, word [eax + ecx*2]
mov ecx, dword [esp + 0x144]
mov word [edi + 4], ax
jmp 0x40ffc9
mov ecx, dword [esp + 0x144]
mov eax, 0x7fff
jmp 0x41008d
mov eax, ebp
mov edi, dword [esp + 0x14]
test cl, cl
je 0x4100be
mov eax, dword [esp + 0x30]
cmp byte [eax + 8], 0
jne 0x40f828
cmp byte [eax + 9], 0
je 0x40f828
cmp byte [esp + 0x11], 0
jne 0x40f828
cmp byte [esp + 0x22], 0
jmp 0x40f80a
mov esi, dword [esp + 0x30]
cmp word [esi + 4], ax
lea ecx, [esi + 4]
jne 0x4100e4
push 0x7fff
push dword [esp + 0x20]
mov ecx, edi
push dword [esp + 0x150]
push 0
jmp 0x40f12e
mov ebp, dword [esp + 0x148]
lea eax, [esp + 0x11]
push 0
push eax
push ebp
call fcn.004143b0
movzx ecx, byte [esp + 0x1d]
add esp, 0xc
test eax, eax
mov eax, 1
cmove ecx, eax
test cl, cl
sete al
mov byte [esi + 0x11], al
test cl, cl
je 0x410129
push 0x7fff
push dword [esp + 0x20]
mov ecx, edi
push ebp
push 0
jmp 0x40f12e
push 0
push closesocket
push 0x7fff
push dword [esp + 0x28]
push ebp
push 0
push ecx
mov ecx, edi
jmp 0x410757
mov ecx, dword [esp + 0x144]
test cl, cl
je 0x41017a
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x11], 0
je 0x41016a
push 0
push closesocket
push 0x7fff
jmp 0x41074c
push 0x7fff
push dword [esp + 0x20]
push edi
push ecx
jmp 0x40f12a
mov esi, dword [esp + 0x30]
mov eax, 0x7fff
cmp word [esi + 4], ax
lea ecx, [esi + 4]
je 0x4101cc
push 0
lea eax, [esp + 0x15]
mov byte [esp + 0x15], 0
push eax
push edi
call fcn.004143b0
add esp, 0xc
test eax, eax
je 0x4101c8
cmp byte [esp + 0x11], 0
jne 0x4101c8
push 0
push closesocket
push 0x7fff
push dword [esp + 0x28]
mov byte [esi + 0x11], 1
push edi
push 0
jmp 0x410752
or byte [esi + 0xc], 8
push 0x7fff
push dword [esp + 0x20]
push edi
push 0
jmp 0x40f12a
mov edx, dword [esp + 0x38]
mov ecx, dword [0x4e8fbc]
and edx, 0x7fff
mov dword [esp + 0x2c], edx
test ecx, ecx
je 0x410218
test ebp, ebp
jne 0x410209
cmp byte [ecx + 8], 0
je 0x410218
cmp byte [esp + 0x144], 0
jne 0x410218
mov eax, dword [0x4e8fbc]
cmp byte [eax + 0x12], 0xff
je 0x410218
mov byte [eax + 0x12], 2
test byte [0x4e8f95], 0xcc
je 0x4102df
cmp byte [esp + 0x11], 0
jne 0x4102df
cmp byte [0x4ea60d], 0
jne 0x410249
mov eax, dword [esp + 0x14]
cmp eax, dword [0x4e8e80]
jne 0x4102df
test byte [0x4e8f95], 0xc0
je 0x410275
cmp dx, word [0x4e8fec]
jae 0x410275
mov eax, dword [0x4e8fdc]
movzx ecx, dx
mov eax, dword [eax + ecx*4]
test byte [eax + 0xf], 0xc0
je 0x410275
mov byte [0x4ea60c], 1
jmp 0x4102df
cmp byte [0x4ea60c], 0
jne 0x4102df
mov al, byte [0x4e8f95]
test al, 0xc
je 0x4102df
test al, 3
jne 0x4102df
cmp dx, word [0x4e8fec]
jae 0x4102df
mov eax, dword [0x4e8fdc]
movzx ecx, dx
mov eax, dword [eax + ecx*4]
test byte [eax + 0xf], 0xc
je 0x4102df
cmp dword [0x4e8e84], 0
je 0x4102b7
mov byte [0x4ea60c], 1
jmp 0x4102df
movzx eax, word [0x4e4d04]
mov ecx, 2
mov dl, byte [0x4e484e]
push 0xffc3d44d
push 0
push 0
push eax
call fcn.00419b10
mov edx, dword [esp + 0x3c]
add esp, 0x10
movzx ecx, dx
lea eax, [ecx - 0x7ffa]
cmp eax, 4
ja case.default.0x4102f1
jmp dword [eax*4 + 0x41079c]
cmp byte [0x4ea60e], 0
je 0x410030
xor al, al
test byte [0x4e8f95], 4
je 0x410317
mov ecx, 0xa4
jmp 0x410329
test byte [0x4e8f95], 8
movzx ecx, al
mov eax, 0xa5
cmovne ecx, eax
cmp byte [0x4ea60e], 0
mov dword [esp + 0x48], ecx
je 0x4103b1
mov eax, 0x7ffb
cmp dx, ax
je case.0x4102f1.32765
push 0xffc3d44d
test cl, cl
movzx eax, cl
push 0
mov edx, 0x12
mov ebp, 1
push 0
cmovne edx, eax
mov ecx, ebp
push 0
call fcn.00419b10
mov esi, dword [esp + 0x40]
add esp, 0x10
cmp byte [esi + 8], 0
je 0x4103a0
cmp bl, 0x5b
je 0x4103a0
cmp bl, 0x5c
je 0x4103a0
cmp byte [esp + 0x144], 0
jne 0x4103a0
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, ebp
call fcn.00419b10
add esp, 0x10
mov byte [0x4ea60e], 0
mov ebp, 0x7fff
jmp 0x410662
cmp bl, 0xa4
je 0x4103c0
mov byte [esp + 0x2b], 0
cmp bl, 0xa5
jne 0x4103c5
mov byte [esp + 0x2b], 1
cmp bl, 0xa0
je 0x4103d3
cmp bl, 0xa1
je 0x4103d3
xor cl, cl
jmp 0x4103d5
mov cl, 1
mov byte [esp + 0x12], cl
cmp bl, 0xa2
je 0x4103e8
mov byte [esp + 0x13], 0
cmp bl, 0xa3
jne 0x4103ed
mov byte [esp + 0x13], 1
xor dl, dl
test byte [0x4e8f95], 0x10
mov dword [esp + 0x44], edx
je 0x410403
mov edx, 0xa0
jmp 0x410426
test byte [0x4e8f95], 0x20
mov eax, dword [esp + 0x144]
je 0x410417
mov dl, 0xa1
jmp 0x41042d
test al, al
jne 0x410431
test cl, cl
movzx edx, dl
movzx eax, bl
cmovne edx, eax
mov eax, dword [esp + 0x144]
mov dword [esp + 0x44], edx
xor cl, cl
test byte [0x4e8f95], 1
mov dword [esp + 0x40], ecx
je 0x410447
mov byte [esp + 0x40], 0xa2
jmp 0x41046d
test byte [0x4e8f95], 2
je 0x410457
mov byte [esp + 0x40], 0xa3
jmp 0x41046d
test al, al
jne 0x41046d
cmp byte [esp + 0x13], 0
movzx ecx, cl
movzx eax, bl
cmovne ecx, eax
mov dword [esp + 0x40], ecx
mov byte [esp + 0x13], 0
mov ebp, 1
test dl, dl
je 0x410495
push 0xffc3d44d
push 0
push 0
push 0
mov ecx, ebp
call fcn.00419b10
add esp, 0x10
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x40]
test al, al
je 0x4104b4
push 0xffc3d44d
push 0
push 0
push 0
mov dl, al
mov ecx, ebp
call fcn.00419b10
add esp, 0x10
cmp byte [esp + 0x2b], 0
je 0x4104c9
cmp byte [esp + 0x144], 0
jne 0x4104d1
mov al, bl
jmp 0x4104cd
mov eax, dword [esp + 0x48]
test al, al
jne 0x4104e8
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00419b10
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00419b10
add esp, 0x10
cmp byte [esp + 0x13], 0
je 0x410529
cmp byte [esp + 0x12], 0
jne 0x410529
mov dl, byte [esp + 0x44]
xor ecx, ecx
push 0xffc3d44d
push 0
push 0
push 0
call fcn.00419b10
add esp, 0x10
mov byte [0x4ea60e], 1
mov ebp, 0x7fff
jmp 0x41065e
cmp byte [0x4ea60e], 0
je 0x410030
mov eax, dword [esp + 0x144]
test al, al
jne 0x41058b
cmp bl, 0xa2
je 0x410566
cmp bl, 0xa3
je 0x410566
cmp bl, 0xa0
je 0x410566
cmp bl, 0xa1
jne 0x41058b
push 0xffc3d44d
push 0
push 0
mov ebp, 1
mov dl, bl
push 0
mov ecx, ebp
call fcn.00419b10
mov eax, dword [esp + 0x154]
add esp, 0x10
jmp 0x410590
mov ebp, 1
test byte [0x4e8f95], 0xc
je 0x4105a7
test al, al
je 0x4105be
cmp bl, 0xa4
je 0x4105a7
cmp bl, 0xa5
jne 0x4105be
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00419b10
add esp, 0x10
mov ecx, dword [esp + 0x2c]
mov eax, 0x7ffd
cmp cx, ax
jne 0x41061e
test byte [0x4e8f95], 0x30
jne 0x41061e
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.00419b10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00419b10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, ebp
call fcn.00419b10
add esp, 0x30
mov ebp, 0x7fff
jmp 0x41065e
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00419b10
add esp, 0x10
mov ebp, 0x7fff
jmp 0x41065e
mov eax, dword [esi + 8]
mov ebp, ecx
mov dword [esp + 0x54], ebp
test eax, eax
je 0x41065e
cmp byte [eax], 5
jne 0x41065e
movzx eax, word [esi + 0x18]
shl eax, 0x10
or ebp, eax
mov dword [esp + 0x54], ebp
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x50]
mov ecx, 0x68
mov word [eax], cx
mov ecx, dword [esp + 0x144]
test cl, cl
je 0x4106f4
cmp byte [esp + 0x22], 0
je 0x4106d3
cmp byte [esi + 9], 0
je 0x4106d3
mov ebp, dword [esp + 0x24]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push ebp
mov ecx, 1
call fcn.00419b10
push 0xffc3d44d
push 0
push 0
push ebp
mov dl, bl
mov ecx, 2
call fcn.00419b10
mov eax, dword [esp + 0x74]
add esp, 0x20
push 0
push closesocket
push eax
push dword [esp + 0x28]
push edi
push dword [esp + 0x158]
jmp 0x410752
cmp byte [esi + 8], 0
je 0x4106e1
cmp byte [esi + 0x11], 0
je 0x4106e8
jmp 0x410744
cmp byte [esp + 0x11], 0
je 0x410744
push ebp
push dword [esp + 0x20]
push edi
push ecx
jmp 0x40f12a
cmp byte [esp + 0x11], 0
mov byte [esi + 0x10], 1
je 0x41070f
or byte [esi + 0xc], 8
push ebp
push dword [esp + 0x20]
push edi
push ecx
jmp 0x40f12a
movzx eax, byte [0x4e8f95]
not eax
test byte [esi + 8], al
je 0x410740
push 0xffc3d450
push 0
push 0
push dword [esp + 0x30]
mov dl, bl
mov ecx, 1
call fcn.00419b10
mov ecx, dword [esp + 0x154]
add esp, 0x10
mov byte [esi + 0x11], 1
push 0
push closesocket
push ebp
push dword [esp + 0x28]
push edi
push ecx
push ecx
mov ecx, dword [esp + 0x30]
push ebx
mov edx, dword [esp + 0x158]
call fcn.004107b0
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret