Function at 0x40eeb0
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 0x40eefa
cmp edx, 0xffc3d44e
je 0x40eefa
mov byte [esp + 0x22], 0
cmp edx, 0xffc3d44d
jne 0x40eeff
mov byte [esp + 0x22], 1
mov ecx, dword [0x4eee00]
mov ebx, dword [esp + 0x13c]
test ecx, ecx
jne 0x40ef1d
lea esi, [esp + 0x5c]
mov dword [esp + 0x1c], esi
jmp 0x40efe4
mov eax, dword [0x4eee18]
imul esi, eax, 0xd4
inc eax
mov dword [0x4eee18], eax
add esi, ecx
mov dword [esp + 0x1c], esi
cmp eax, dword [0x4ea82c]
jl 0x40ef46
mov dword [0x4eee18], 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 [0x4eee14], eax
sub ecx, dword [0x4f0900]
mov dword [0x4f0900], eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4e2010]
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4e1f0c]
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 0x40efc6
cmp esi, dword [0x4eee10]
je 0x40efbf
push esi
push ecx
push 0x418
push dword [0x4eedf0]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40efd3
xor eax, eax
mov word [ecx], ax
jmp 0x40efd3
mov dword [ecx], 0x2f004e
mov dword [ecx + 4], 0x41
mov edx, dword [esp + 0x148]
mov dword [0x4eee10], esi
mov esi, dword [esp + 0x1c]
cmp bl, 0xe7
jne 0x40f039
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.00410aa0
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 [0x4f0930]
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 [0x4ef010]
jne 0x40f099
mov cl, byte [esp + 0x14c]
and cl, 1
mov dword [esp + 0x40], ecx
jne 0x40f120
mov al, byte [esp + 0x144]
movzx ecx, bl
xor al, 1
shl al, 7
mov byte [ecx + 0x4ef020], al
mov ecx, dword [esp + 0x40]
jmp 0x40f120
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 0x40f11c
test dl, 0x10
jne 0x40f11c
cmp bl, 0xa0
je 0x40f0d1
cmp bl, 0xa1
jne 0x40f0f0
cmp byte [esp + 0x144], 0
jne 0x40f0f0
cmp bl, 0xa0
mov eax, edi
mov edx, 0x10
cmove eax, edx
test byte [0x4ef01c], al
jne 0x40f11c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x4f0930]
mov ecx, dword [esp + 0x40]
mov dword [0x4f0908], eax
mov dword [0x4f0904], eax
mov al, byte [esp + 0x144]
xor al, 1
shl al, 7
mov byte [ebp + 0x4ef020], al
mov ebp, dword [esp + 0x14]
mov dl, byte [esp + 0x22]
test dl, dl
je 0x40f12f
mov eax, 0x69
jmp 0x40f13c
mov eax, 0x61
test cl, cl
cmovne edi, eax
movzx eax, di
cmp byte [0x4ef00d], 0
mov ecx, dword [esp + 0x1c]
lea edi, [ecx + 4]
mov word [edi], ax
mov dword [esp + 0x50], edi
je 0x40f187
cmp bl, 0x5b
je 0x40f15d
cmp bl, 0x5c
jne 0x40f187
mov eax, dword [esp + 0x144]
test al, al
jne 0x40f18e
push 0
push closesocket
push 0x7fff
push ecx
mov ecx, dword [esp + 0x158]
push ecx
push 0
push ecx
mov ecx, ebp
jmp 0x4108f7
mov eax, dword [esp + 0x144]
cmp byte [0x4f0796], 0
mov ebp, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, dword [sym.imp.USER32.dll_FindWindowW]
je 0x40f242
cmp bl, 0x1b
jne 0x40f242
test al, al
jne 0x40f242
push 0
push str.32771
call edi
test eax, eax
je 0x40f238
push 0
push eax
call ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
jne 0x40f238
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
xor ecx, ecx
call fcn.00419d60
mov dl, byte [0x4ef01f]
mov ecx, 1
push 0xffc3d44d
shr dl, 3
push 0
and dl, 1
push 0
push 0
or dl, 0xa4
call fcn.00419d60
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 0x4108f8
mov esi, dword [0x4f0930]
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 [0x4f0934]
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 [0x4ef014]
jne 0x40f274
test dh, dh
jne 0x40f281
movzx eax, bl
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
mov dword [esp + 0x30], eax
test dl, dl
je 0x40f2f8
mov edx, dword [esp + 0x148]
cmp edx, 0xffc3d44e
jne 0x40f2b8
cmp byte [esp + 0x144], 0
je 0x40f2b8
cmp dword [0x4ef14c], eax
jne 0x40f2b8
mov byte [eax + 0xd], 0
mov byte [eax + 0x10], 0
mov dword [0x4ef14c], 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.00410aa0
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
mov edx, dword [esp + 0x144]
test dl, dl
jne 0x40f306
mov byte [eax + 0x11], dl
mov eax, ecx
cmp eax, dword [0x4ef010]
jne 0x40f396
test bl, bl
jne 0x40f358
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.00410aa0
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
cmp bl, 1
je 0x40f362
cmp bl, 2
jne 0x40f396
cmp byte [0x4eedbe], 0
jne 0x40f3cb
push 0
push str.32768
call edi
test eax, eax
je 0x40f385
push 0
push eax
call ebp
cmp eax, dword [0x4f0038]
je 0x40f3c4
mov esi, dword [0x4f0930]
mov edx, dword [esp + 0x144]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4ef14c]
mov edi, dword [esp + 0x30]
test ecx, ecx
je 0x40f403
cmp ecx, edi
je 0x40f403
test dl, dl
jne 0x40f403
cmp byte [ecx + 0x12], 0xff
je 0x40f403
cmp eax, dword [0x4ef014]
jne 0x40f3f2
xor eax, eax
cmp byte [edi + 8], al
sete al
jmp 0x40f3fb
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 0x40f2ca
mov eax, dword [0x4ef14c]
movzx eax, byte [eax + 8]
test eax, eax
je 0x40f403
mov byte [ecx + 0x12], 1
cmp byte [edi + 9], 0
jne 0x40f42e
cmp byte [edi + 0xa], 0
jne 0x40f42e
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 0x40f2ca
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 0x40f48b
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 0x40f478
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 0x40f49b
and al, 0xf7
mov byte [esp + 0x11], 1
mov byte [edi + 0xc], al
jmp 0x40f49b
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 [0x4ef014]
jne 0x40f519
cmp byte [edi + 8], cl
je 0x40f53f
cmp byte [esi + 0xcb5], cl
jne 0x40f4cd
cmp byte [esi + 0xcc9], cl
jne 0x40f4cd
xor al, al
jmp 0x40f4cf
mov al, 1
cmp byte [esi + 0xcdd], 0
mov byte [esi + 0x161], al
jne 0x40f4eb
cmp byte [esi + 0xcf1], 0
jne 0x40f4eb
xor al, al
jmp 0x40f4ed
mov al, 1
cmp byte [esi + 0xc8d], 0
mov byte [esi + 0x175], al
jne 0x40f50f
cmp byte [esi + 0xca1], 0
jne 0x40f50f
xor al, al
mov byte [esi + 0x14d], al
jmp 0x40f53f
mov al, 1
mov byte [esi + 0x14d], al
jmp 0x40f53f
cmp dword [0x4ef014], 0
jne 0x40f53f
mov cl, 1
call fcn.0041c490
mov esi, dword [0x4f0930]
mov ah, al
mov byte [0x4ef01e], ah
mov cl, 1
mov byte [0x4ef01f], ah
mov eax, dword [edi]
test eax, eax
je 0x40f54f
cmp dword [eax], 6
mov byte [esp + 0x22], 1
je 0x40f554
mov byte [esp + 0x22], 0
test cl, cl
jne 0x40f565
mov cl, 1
call fcn.0041c490
mov esi, dword [0x4f0930]
mov al, byte [edi + 9]
mov ecx, dword [esp + 0x144]
test al, al
je 0x40f971
test cl, cl
jne 0x40f971
mov ecx, dword [0x4ef14c]
test ecx, ecx
je 0x40f597
cmp byte [edi + 0xa], 0
je 0x40f597
cmp edi, ecx
jne 0x40f964
mov dh, byte [edi + 0xc]
shr dh, 4
not dh
and dh, 1
mov byte [esp + 0x1b], dh
cmp al, 1
jne 0x40f717
cmp byte [esp + 0x23], 0
mov ecx, dword [esp + 0x40]
jne 0x40f5bc
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.0041c6d0
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 [0x4ef17c]
jae 0x40f777
nop dword [eax]
nop word [eax + eax]
cmp byte [esp + 0x23], 0
mov ecx, dword [0x4ef16c]
mov edi, dword [ecx + eax*4]
je 0x40f626
movzx eax, word [edi + 0xa]
jmp 0x40f62a
movzx eax, byte [edi + 0x11]
cmp dword [esp + 0x48], eax
je 0x40f639
test byte [edi + 0xe], dh
je 0x40f6f2
cmp word [edi + 6], 0
je 0x40f675
cmp byte [edi + 0x19], 0
je 0x40f6f2
cmp byte [0x4ef007], 0
jne 0x40f6f2
test byte [edi + 0x13], 1
mov dh, byte [esp + 0x1b]
jne 0x40f70d
test dh, dh
jne 0x40f70d
mov dl, 1
mov byte [esp + 0x3f], dl
jmp 0x40f6ee
mov esi, dword [edi + 0x20]
mov eax, esi
test eax, eax
je 0x40f6f2
nop
cmp byte [eax + 0x20], 0
jne 0x40f68f
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x40f680
jmp 0x40f6f2
test dl, dl
je 0x40f6a0
test byte [edi + 0x13], 1
je 0x40f6f2
nop dword [eax]
cmp byte [esi + 0x20], 0
je 0x40f6e7
cmp byte [0x4ef007], 0
je 0x40f6b5
cmp byte [esi + 0x21], 0
je 0x40f6e7
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40f6c8
mov edx, dword [edi + 0x1c]
call fcn.00413d40
test eax, eax
je 0x40f6e3
test byte [esi + 0x1d], 1
mov dh, byte [esp + 0x1b]
jne 0x40f70d
test dh, dh
jne 0x40f70d
mov dl, 1
mov byte [esp + 0x3f], dl
test byte [edi + 0x13], dl
je 0x40f6ee
jmp 0x40f6e7
mov dl, byte [esp + 0x3f]
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x40f6a0
mov dh, byte [esp + 0x12]
mov ecx, dword [esp + 0x4c]
movzx eax, word [0x4ef17c]
inc ecx
mov dword [esp + 0x4c], ecx
cmp ecx, eax
jge 0x40f76d
mov eax, ecx
jmp 0x40f610
mov esi, dword [0x4f0930]
mov edi, dword [esp + 0x30]
mov byte [esp + 0x12], 0
cmp edi, dword [0x4ef14c]
je 0x40f72e
mov dword [0x4ef14c], edi
mov byte [edi + 0x12], 0
cmp byte [edi + 0xa], 0
je 0x40f8ef
mov al, byte [edi + 8]
mov dl, byte [0x4ef01e]
test al, al
je 0x40f749
not al
and dl, al
mov eax, dword [esp + 0x14]
cmp eax, dword [0x4ef014]
jne 0x40f788
cmp byte [esp + 0x23], 0
je 0x40f788
mov eax, dword [0x4f0928]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x40]
jmp 0x40f798
mov esi, dword [0x4f0930]
mov edi, dword [esp + 0x30]
mov dh, dl
mov byte [esp + 0x1b], dh
test dl, dl
jne 0x40f717
mov byte [esp + 0x12], 1
jmp 0x40f72e
movzx ecx, dl
movzx eax, bl
shl ecx, 8
add ecx, eax
mov eax, dword [0x4f0924]
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 0x40f8fd
mov eax, 0x7fff
cmp cx, ax
je 0x40f8fd
test dh, dh
jne 0x40f7ec
mov byte [edi + 0x12], 0xff
mov dl, byte [esp + 0x11]
test ebp, 0x8000
je 0x40f8d4
mov word [edi + 4], bp
jmp 0x40f8fd
test dl, dl
jne 0x40f7d3
push 0
lea eax, [esp + 0x15]
push eax
push dword [esp + 0x150]
lea ecx, [esp + 0x44]
call fcn.00414650
mov dl, byte [esp + 0x1d]
add esp, 0xc
mov dword [esp + 0x44], eax
test eax, eax
je 0x40f82e
test dl, dl
je 0x40f82e
mov ebp, dword [esp + 0x38]
mov esi, dword [0x4f0930]
mov dh, byte [esp + 0x1b]
mov dword [esp + 0x2c], ebp
jmp 0x40f7d7
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x2c], ebp
cmp bp, word [0x4ef17c]
jae 0x40f8b8
mov ecx, dword [0x4f092c]
mov eax, 0x7fff
movzx esi, bp
add esi, esi
add ecx, esi
cmp word [ecx], ax
je 0x40f8b8
push 0
lea eax, [esp + 0x15]
mov byte [esp + 0x15], 0
push eax
push dword [esp + 0x150]
call fcn.00414650
mov dl, byte [esp + 0x1d]
add esp, 0xc
test eax, eax
je 0x40f8b8
test dl, dl
je 0x40f8b8
cmp dword [esp + 0x44], 0
mov dh, byte [esp + 0x1b]
je 0x40f898
mov esi, dword [0x4f0930]
mov byte [esp + 0x11], 0
jmp 0x40f7d3
mov dword [esp + 0x44], eax
mov eax, dword [0x4f092c]
movzx ebp, word [esi + eax]
mov esi, dword [0x4f0930]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], ebp
jmp 0x40f7d7
mov esi, dword [0x4f0930]
mov ebp, 0x7fff
mov dh, byte [esp + 0x1b]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], ebp
jmp 0x40f7d7
cmp bp, word [0x4ef17c]
jae 0x40f8f3
mov eax, dword [0x4f092c]
movzx ecx, bp
mov ax, word [eax + ecx*2]
mov word [edi + 4], ax
jmp 0x40f8f3
mov dl, byte [esp + 0x11]
mov eax, 0x7fff
cmp bp, ax
jne 0x40f968
cmp byte [esp + 0x12], 0
je 0x40f910
mov eax, dword [esp + 0x50]
mov ecx, 0x23
mov word [eax], cx
test dh, dh
jne 0x40f918
or byte [edi + 0xc], 8
cmp byte [edi + 8], 0
jne 0x40f94c
test dh, dh
je 0x40f94c
cmp byte [esp + 0x22], 0
jne 0x40f94c
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 0x4108f2
mov ecx, dword [esp + 0x1c]
push 0x7fff
push ecx
push dword [esp + 0x150]
push 0
jmp 0x40f2ca
mov dl, byte [esp + 0x11]
mov ecx, dword [esp + 0x144]
jmp 0x40f975
mov dl, byte [esp + 0x11]
cmp byte [edi + 0xa], 0
mov byte [esp + 0x12], 0
je 0x40f9e3
test cl, cl
je 0x40f9e3
mov al, byte [esp + 0x2b]
cmp dword [0x4ef14c], edi
jne 0x40f99e
test al, al
je 0x40f9e3
mov dword [0x4ef14c], 0
cmp byte [edi + 0xb], 0
jne 0x40f9de
test al, al
je 0x40f9c8
test dl, dl
jne 0x40f9c8
push 0
push closesocket
push 0x7fff
push dword [esp + 0x28]
push dword [esp + 0x158]
jmp 0x4108f1
push 0x7fff
push dword [esp + 0x20]
push dword [esp + 0x150]
push ecx
jmp 0x40f2ca
mov byte [esp + 0x12], 1
cmp byte [edi + 9], 0
mov eax, 1
je 0x40fb20
test cl, cl
je 0x40fb20
cmp dword [0x4ef14c], edi
jne 0x40fa0c
mov dword [0x4ef14c], 0
cmp byte [edi + 0xe], 0
je 0x40fa38
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
mov byte [edi + 0xe], 0
mov ecx, eax
call fcn.00419d60
mov esi, dword [0x4f0930]
add esp, 0x10
mov eax, 1
cmp byte [edi + 0xf], 0
je 0x40fa5f
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov byte [edi + 0xf], 0
mov ecx, eax
call fcn.00419d60
mov esi, dword [0x4f0930]
add esp, 0x10
mov cl, byte [esp + 0x22]
mov al, byte [edi + 0x12]
test cl, cl
je 0x40fadd
cmp al, 2
jne 0x40fac4
mov ebp, dword [esp + 0x24]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push ebp
mov ecx, 1
call fcn.00419d60
push 0xffc3d44d
push 0
push 0
push ebp
mov dl, bl
mov ecx, 2
call fcn.00419d60
add esp, 0x20
push 0
push closesocket
push 0x7fff
push dword [esp + 0x28]
push dword [esp + 0x158]
push dword [esp + 0x158]
jmp 0x4108f2
cmp al, 1
jne 0x40fafa
push 0x7fff
push dword [esp + 0x20]
push dword [esp + 0x150]
jmp 0x40f2c3
test al, al
jle 0x40fafa
mov eax, 0x7fff
cmp bp, ax
jne 0x40fafa
cmp byte [edi + 8], 0
jne 0x40fac8
cmp byte [esp + 0x11], 0
jne 0x40fac8
jmp 0x40faa1
cmp byte [edi + 0xa], 0
jne 0x40fb13
cmp byte [edi + 8], 0
jne 0x40fac8
cmp byte [esp + 0x11], 0
jne 0x40fac8
test cl, cl
jne 0x40fac8
jmp 0x40faa1
cmp byte [esp + 0x13], 0
jne 0x40fb20
cmp byte [edi + 0xb], 0
je 0x40fac8
xor ebp, ebp
mov dword [esp + 0x4c], ebp
cmp dword [0x4ef14c], ebp
je 0x40fed5
mov ecx, dword [esp + 0x144]
test cl, cl
je 0x40fb47
cmp byte [edi + 0xb], 0
je 0x40fed5
mov edx, dword [esp + 0x2c]
mov eax, 0x7fff
cmp dx, ax
jne 0x41017b
movzx edi, word [edi + 6]
cmp di, ax
je 0x40fca6
nop word [eax + eax]
mov eax, dword [0x4ef16c]
movzx ecx, di
mov edx, dword [eax + ecx*4]
mov al, byte [edx + 0x11]
test al, al
jne 0x40fb9a
cmp word [edx + 0xa], 0
je 0x40fbf8
movzx eax, word [edx + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4f0934]
lea eax, [eax + ecx*4]
jmp 0x40fba3
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 0x40fbe4
cmp byte [edx + 0x16], 0
je 0x40fbd7
test cl, cl
jne 0x40fbf0
mov ecx, dword [esp + 0x30]
mov ax, word [edx + 4]
mov word [ecx + 4], ax
test ebp, ebp
jne 0x40fc07
mov ecx, dword [esp + 0x144]
jmp 0x40fbe4
test cl, cl
jne 0x40fbe4
test ebp, ebp
cmove ebp, edx
mov dword [esp + 0x4c], ebp
mov eax, 0x7fff
cmp di, ax
jne 0x40fb70
jmp 0x40fbff
mov ebp, edx
mov dword [esp + 0x4c], ebp
jmp 0x40fbff
mov ecx, dword [esp + 0x144]
test ebp, ebp
je 0x40fca2
movzx ecx, byte [ebp + 0x11]
cmp ecx, 0x12
ja case.0x40fc17.1
movzx eax, byte [ecx + 0x410928]
jmp dword [eax*4 + 0x410914]
cmp byte [esi + 0xca1], 0
mov eax, 0xc80
mov ecx, 0xc94
cmovne eax, ecx
add eax, esi
jmp 0x40fc7d
cmp byte [esi + 0xcc9], 0
mov eax, 0xca8
mov ecx, 0xcbc
cmovne eax, ecx
add eax, esi
jmp 0x40fc7d
cmp byte [esi + 0xcf1], 0
mov eax, 0xcd0
mov ecx, 0xce4
cmovne eax, ecx
add eax, esi
jmp 0x40fc7d
movzx eax, word [ebp + 0xa]
lea ecx, [eax + eax*4]
mov eax, dword [0x4f0934]
lea eax, [eax + ecx*4]
jmp 0x40fc7d
lea eax, [ecx + ecx*4]
lea eax, [esi + eax*4]
mov dword [0x4ef14c], eax
movzx eax, word [ebp + 6]
test ax, ax
jne 0x40fc8f
movzx eax, word [ebp + 4]
mov ecx, dword [esp + 0x144]
movzx edx, ax
mov dword [esp + 0x38], edx
movzx edi, ax
jmp 0x40fca6
mov edx, dword [esp + 0x2c]
mov eax, 0x7ffe
cmp di, ax
je 0x40fcbe
mov eax, 0x7ffd
cmp di, ax
jne 0x40fecf
mov eax, dword [0x4ef14c]
cmp byte [eax + 0x12], 0xff
je 0x40fccd
mov byte [eax + 0x12], 2
mov esi, dword [esp + 0x30]
test cl, cl
jne 0x40fcd9
mov byte [esi + 0x10], 1
test byte [0x4ef01f], 0xc
jne 0x40fd00
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00419d60
mov ecx, dword [esp + 0x154]
add esp, 0x10
cmp bl, 0xa2
je 0x40fd0a
cmp bl, 0xa3
jne 0x40fd2d
mov ebp, dword [esp + 0x24]
test cl, cl
jne 0x40fd31
push 0xffc3d44d
push 0
push 0
push ebp
mov dl, bl
mov ecx, 1
call fcn.00419d60
add esp, 0x10
jmp 0x40fd31
mov ebp, dword [esp + 0x24]
mov eax, dword [0x4ef14c]
mov byte [eax + 0xe], 1
mov eax, 0x7ffd
cmp di, ax
jne 0x40fd72
test byte [0x4ef01f], 0x30
jne 0x40fd64
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.00419d60
add esp, 0x10
mov eax, dword [0x4ef14c]
mov byte [eax + 0xf], 1
jmp 0x40fdf2
mov eax, 0x7ffe
cmp di, ax
jne 0x40fdf2
cmp bl, 0xa0
je 0x40fd86
cmp bl, 0xa1
jne 0x40fdad
cmp byte [esp + 0x144], 0
jne 0x40fdad
push 0xffc3d44d
push 0
push 0
push ebp
mov ebp, 1
mov dl, bl
mov ecx, ebp
call fcn.00419d60
add esp, 0x10
jmp 0x40fdb2
mov ebp, 1
test byte [0x4ef01f], 0x10
je 0x40fdd2
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa0
mov ecx, ebp
call fcn.00419d60
add esp, 0x10
test byte [0x4ef01f], 0x20
je 0x40fdf2
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa1
mov ecx, ebp
call fcn.00419d60
add esp, 0x10
test byte [0x4ef01f], 1
mov ebp, 1
je 0x40fe17
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa2
mov ecx, ebp
call fcn.00419d60
add esp, 0x10
test byte [0x4ef01f], 2
je 0x40fe37
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0xa3
mov ecx, ebp
call fcn.00419d60
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00419d60
mov eax, 0x7ffd
add esp, 0x10
cmp di, ax
jne 0x40fe95
mov eax, dword [0x4ef14c]
cmp byte [eax + 0xf], 0
je 0x40fe95
cmp bl, 0x60
jb 0x40fe70
cmp bl, 0x69
jbe 0x40fe75
cmp bl, 0x6e
jne 0x40fe95
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, ebp
call fcn.00419d60
mov eax, dword [0x4ef14c]
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 0x40feb0
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 0x4108f2
mov edi, dword [esp + 0x30]
jmp 0x40fed9
mov edx, dword [esp + 0x2c]
mov eax, 0x7fff
cmp dx, ax
jne 0x41017b
mov al, byte [edi + 8]
mov dl, byte [0x4ef01e]
test al, al
je 0x40fef8
not al
and dl, al
mov eax, dword [esp + 0x14]
mov dh, byte [esp + 0x23]
cmp eax, dword [0x4ef014]
jne 0x40ff28
test dh, dh
je 0x40ff28
mov eax, dword [0x4f0928]
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 0x40ff40
movzx eax, bl
movzx ecx, dl
shl ecx, 8
add ecx, eax
mov dword [esp + 0x48], eax
mov eax, dword [0x4f0924]
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 0x40ffe3
cmp byte [0x4f0796], 0
je 0x40ffe3
cmp bl, 9
je 0x40ffe3
mov edi, dword [esp + 0x14]
and dl, 0xf3
cmp edi, dword [0x4ef014]
jne 0x40ff91
test dh, dh
je 0x40ff91
mov eax, dword [0x4f0928]
movzx ecx, dl
shl ecx, 9
add ecx, dword [esp + 0x40]
jmp 0x40ffa0
mov eax, dword [0x4f0924]
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 0x410219
mov ecx, edx
mov esi, edx
mov edi, edx
mov edx, 0x7fff
cmp ax, dx
jb 0x40ffe7
mov ecx, dword [esp + 0x144]
mov eax, edx
jmp 0x410229
mov ebp, dword [esp + 0x2c]
test cx, cx
movzx eax, di
mov ecx, dword [esp + 0x144]
movzx edx, si
jns 0x4100e4
test cl, cl
jne 0x410165
mov edi, dword [esp + 0x30]
mov eax, 0x7fff
cmp word [edi + 4], ax
jne 0x410018
mov word [edi + 4], bp
mov ah, byte [0x4ef01e]
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 0x4100b8
nop dword [eax + eax]
mov eax, dword [0x4ef16c]
movzx ecx, dx
mov ecx, dword [eax + ecx*4]
cmp byte [ecx + 0x15], 0
movzx edx, word [ecx + 0xc]
jne 0x410083
movzx eax, byte [ecx + 0xf]
not eax
test byte [0x4ef01e], al
jne 0x4100b3
cmp byte [ecx + 0x16], 0
jne 0x4100b3
cmp byte [ecx + 0x11], 0
jne 0x4100b3
cmp word [ecx + 0xa], 0
jne 0x4100b3
cmp word [ecx + 6], 0
jne 0x4100b3
mov eax, esi
not eax
test dword [ecx], eax
jne 0x4100b3
movzx eax, byte [0x4ef01e]
not eax
test byte [ecx + 0xe], al
je 0x4100cd
cmp dx, bp
jne 0x410060
mov ecx, dword [esp + 0x144]
mov eax, ebp
movzx edx, ax
mov dword [esp + 0x38], edx
jmp 0x410169
movzx eax, word [ecx + 4]
mov ecx, dword [esp + 0x144]
movzx edx, ax
mov dword [esp + 0x38], edx
jmp 0x410169
mov ebp, 0x7fff
cmp dx, bp
je 0x410227
and eax, ebp
test cl, cl
je 0x4101df
cmp ax, word [0x4ef17c]
jae 0x41015a
mov esi, eax
mov eax, dword [0x4f092c]
cmp word [eax + esi*2], bp
je 0x41015a
cmp byte [esp + 0x12], 0
jne 0x41014b
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x38]
push eax
lea eax, [esp + 0x15]
push eax
push dword [esp + 0x150]
call fcn.00414650
mov ecx, dword [esp + 0x150]
add esp, 0xc
mov dword [esp + 0x44], eax
test eax, eax
je 0x41014b
mov edx, dword [esp + 0x38]
jmp 0x410169
mov eax, dword [0x4f092c]
movzx edx, word [eax + esi*2]
mov dword [esp + 0x38], edx
jmp 0x410169
cmp byte [esp + 0x12], 0
jne 0x410231
mov edx, dword [esp + 0x2c]
mov eax, 0x7fff
cmp dx, ax
je 0x410229
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x44]
mov eax, edx
mov edi, dword [esp + 0x148]
and eax, 0x7fff
cmp ax, word [0x4ef17c]
jae 0x410381
test esi, esi
jne 0x410381
push dword [esp + 0x50]
lea eax, [esp + 0x15]
push eax
push edi
lea ecx, [esp + 0x44]
call fcn.00414650
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41037d
mov eax, dword [esp + 0x50]
cmp word [eax], 0x69
jne 0x4102e4
push 0x7fff
push dword [esp + 0x20]
push edi
jmp 0x40f2c3
mov edx, dword [esp + 0x2c]
cmp ax, word [0x4ef17c]
jae 0x410169
mov edi, dword [esp + 0x30]
cmp word [edi + 4], bp
jne 0x410169
mov ecx, eax
mov eax, dword [0x4f092c]
mov ax, word [eax + ecx*2]
mov ecx, dword [esp + 0x144]
mov word [edi + 4], ax
jmp 0x410169
mov ecx, dword [esp + 0x144]
mov eax, 0x7fff
jmp 0x41022d
mov eax, ebp
mov edi, dword [esp + 0x14]
test cl, cl
je 0x41025e
mov eax, dword [esp + 0x30]
cmp byte [eax + 8], 0
jne 0x40f9c8
cmp byte [eax + 9], 0
je 0x40f9c8
cmp byte [esp + 0x11], 0
jne 0x40f9c8
cmp byte [esp + 0x22], 0
jmp 0x40f9aa
mov esi, dword [esp + 0x30]
cmp word [esi + 4], ax
lea ecx, [esi + 4]
jne 0x410284
push 0x7fff
push dword [esp + 0x20]
mov ecx, edi
push dword [esp + 0x150]
push 0
jmp 0x40f2ce
mov ebp, dword [esp + 0x148]
lea eax, [esp + 0x11]
push 0
push eax
push ebp
call fcn.00414650
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 0x4102c9
push 0x7fff
push dword [esp + 0x20]
mov ecx, edi
push ebp
push 0
jmp 0x40f2ce
push 0
push closesocket
push 0x7fff
push dword [esp + 0x28]
push ebp
push 0
push ecx
mov ecx, edi
jmp 0x4108f7
mov ecx, dword [esp + 0x144]
test cl, cl
je 0x41031a
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x11], 0
je 0x41030a
push 0
push closesocket
push 0x7fff
jmp 0x4108ec
push 0x7fff
push dword [esp + 0x20]
push edi
push ecx
jmp 0x40f2ca
mov esi, dword [esp + 0x30]
mov eax, 0x7fff
cmp word [esi + 4], ax
lea ecx, [esi + 4]
je 0x41036c
push 0
lea eax, [esp + 0x15]
mov byte [esp + 0x15], 0
push eax
push edi
call fcn.00414650
add esp, 0xc
test eax, eax
je 0x410368
cmp byte [esp + 0x11], 0
jne 0x410368
push 0
push closesocket
push 0x7fff
push dword [esp + 0x28]
mov byte [esi + 0x11], 1
push edi
push 0
jmp 0x4108f2
or byte [esi + 0xc], 8
push 0x7fff
push dword [esp + 0x20]
push edi
push 0
jmp 0x40f2ca
mov edx, dword [esp + 0x38]
mov ecx, dword [0x4ef14c]
and edx, 0x7fff
mov dword [esp + 0x2c], edx
test ecx, ecx
je 0x4103b8
test ebp, ebp
jne 0x4103a9
cmp byte [ecx + 8], 0
je 0x4103b8
cmp byte [esp + 0x144], 0
jne 0x4103b8
mov eax, dword [0x4ef14c]
cmp byte [eax + 0x12], 0xff
je 0x4103b8
mov byte [eax + 0x12], 2
test byte [0x4ef01f], 0xcc
je 0x41047f
cmp byte [esp + 0x11], 0
jne 0x41047f
cmp byte [0x4f0795], 0
jne 0x4103e9
mov eax, dword [esp + 0x14]
cmp eax, dword [0x4ef010]
jne 0x41047f
test byte [0x4ef01f], 0xc0
je 0x410415
cmp dx, word [0x4ef17c]
jae 0x410415
mov eax, dword [0x4ef16c]
movzx ecx, dx
mov eax, dword [eax + ecx*4]
test byte [eax + 0xf], 0xc0
je 0x410415
mov byte [0x4f0794], 1
jmp 0x41047f
cmp byte [0x4f0794], 0
jne 0x41047f
mov al, byte [0x4ef01f]
test al, 0xc
je 0x41047f
test al, 3
jne 0x41047f
cmp dx, word [0x4ef17c]
jae 0x41047f
mov eax, dword [0x4ef16c]
movzx ecx, dx
mov eax, dword [eax + ecx*4]
test byte [eax + 0xf], 0xc
je 0x41047f
cmp dword [0x4ef014], 0
je 0x410457
mov byte [0x4f0794], 1
jmp 0x41047f
movzx eax, word [0x4eada8]
mov ecx, 2
mov dl, byte [0x4ead8e]
push 0xffc3d44d
push 0
push 0
push eax
call fcn.00419d60
mov edx, dword [esp + 0x3c]
add esp, 0x10
movzx ecx, dx
lea eax, [ecx - 0x7ffa]
cmp eax, 4
ja case.default.0x410491
jmp dword [eax*4 + 0x41093c]
cmp byte [0x4f0796], 0
je 0x4101d0
xor al, al
test byte [0x4ef01f], 4
je 0x4104b7
mov ecx, 0xa4
jmp 0x4104c9
test byte [0x4ef01f], 8
movzx ecx, al
mov eax, 0xa5
cmovne ecx, eax
cmp byte [0x4f0796], 0
mov dword [esp + 0x48], ecx
je 0x410551
mov eax, 0x7ffb
cmp dx, ax
je case.0x410491.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.00419d60
mov esi, dword [esp + 0x40]
add esp, 0x10
cmp byte [esi + 8], 0
je 0x410540
cmp bl, 0x5b
je 0x410540
cmp bl, 0x5c
je 0x410540
cmp byte [esp + 0x144], 0
jne 0x410540
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, ebp
call fcn.00419d60
add esp, 0x10
mov byte [0x4f0796], 0
mov ebp, 0x7fff
jmp 0x410802
cmp bl, 0xa4
je 0x410560
mov byte [esp + 0x2b], 0
cmp bl, 0xa5
jne 0x410565
mov byte [esp + 0x2b], 1
cmp bl, 0xa0
je 0x410573
cmp bl, 0xa1
je 0x410573
xor cl, cl
jmp 0x410575
mov cl, 1
mov byte [esp + 0x12], cl
cmp bl, 0xa2
je 0x410588
mov byte [esp + 0x13], 0
cmp bl, 0xa3
jne 0x41058d
mov byte [esp + 0x13], 1
xor dl, dl
test byte [0x4ef01f], 0x10
mov dword [esp + 0x44], edx
je 0x4105a3
mov edx, 0xa0
jmp 0x4105c6
test byte [0x4ef01f], 0x20
mov eax, dword [esp + 0x144]
je 0x4105b7
mov dl, 0xa1
jmp 0x4105cd
test al, al
jne 0x4105d1
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 [0x4ef01f], 1
mov dword [esp + 0x40], ecx
je 0x4105e7
mov byte [esp + 0x40], 0xa2
jmp 0x41060d
test byte [0x4ef01f], 2
je 0x4105f7
mov byte [esp + 0x40], 0xa3
jmp 0x41060d
test al, al
jne 0x41060d
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 0x410635
push 0xffc3d44d
push 0
push 0
push 0
mov ecx, ebp
call fcn.00419d60
add esp, 0x10
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x40]
test al, al
je 0x410654
push 0xffc3d44d
push 0
push 0
push 0
mov dl, al
mov ecx, ebp
call fcn.00419d60
add esp, 0x10
cmp byte [esp + 0x2b], 0
je 0x410669
cmp byte [esp + 0x144], 0
jne 0x410671
mov al, bl
jmp 0x41066d
mov eax, dword [esp + 0x48]
test al, al
jne 0x410688
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00419d60
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00419d60
add esp, 0x10
cmp byte [esp + 0x13], 0
je 0x4106c9
cmp byte [esp + 0x12], 0
jne 0x4106c9
mov dl, byte [esp + 0x44]
xor ecx, ecx
push 0xffc3d44d
push 0
push 0
push 0
call fcn.00419d60
add esp, 0x10
mov byte [0x4f0796], 1
mov ebp, 0x7fff
jmp 0x4107fe
cmp byte [0x4f0796], 0
je 0x4101d0
mov eax, dword [esp + 0x144]
test al, al
jne 0x41072b
cmp bl, 0xa2
je 0x410706
cmp bl, 0xa3
je 0x410706
cmp bl, 0xa0
je 0x410706
cmp bl, 0xa1
jne 0x41072b
push 0xffc3d44d
push 0
push 0
mov ebp, 1
mov dl, bl
push 0
mov ecx, ebp
call fcn.00419d60
mov eax, dword [esp + 0x154]
add esp, 0x10
jmp 0x410730
mov ebp, 1
test byte [0x4ef01f], 0xc
je 0x410747
test al, al
je 0x41075e
cmp bl, 0xa4
je 0x410747
cmp bl, 0xa5
jne 0x41075e
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x12
xor ecx, ecx
call fcn.00419d60
add esp, 0x10
mov ecx, dword [esp + 0x2c]
mov eax, 0x7ffd
cmp cx, ax
jne 0x4107be
test byte [0x4ef01f], 0x30
jne 0x4107be
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
xor ecx, ecx
call fcn.00419d60
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00419d60
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, ebp
call fcn.00419d60
add esp, 0x30
mov ebp, 0x7fff
jmp 0x4107fe
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 9
mov ecx, 2
call fcn.00419d60
add esp, 0x10
mov ebp, 0x7fff
jmp 0x4107fe
mov eax, dword [esi + 8]
mov ebp, ecx
mov dword [esp + 0x54], ebp
test eax, eax
je 0x4107fe
cmp byte [eax], 5
jne 0x4107fe
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 0x410894
cmp byte [esp + 0x22], 0
je 0x410873
cmp byte [esi + 9], 0
je 0x410873
mov ebp, dword [esp + 0x24]
mov dl, bl
push 0xffc3d44e
push 0
push 0
push ebp
mov ecx, 1
call fcn.00419d60
push 0xffc3d44d
push 0
push 0
push ebp
mov dl, bl
mov ecx, 2
call fcn.00419d60
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 0x4108f2
cmp byte [esi + 8], 0
je 0x410881
cmp byte [esi + 0x11], 0
je 0x410888
jmp 0x4108e4
cmp byte [esp + 0x11], 0
je 0x4108e4
push ebp
push dword [esp + 0x20]
push edi
push ecx
jmp 0x40f2ca
cmp byte [esp + 0x11], 0
mov byte [esi + 0x10], 1
je 0x4108af
or byte [esi + 0xc], 8
push ebp
push dword [esp + 0x20]
push edi
push ecx
jmp 0x40f2ca
movzx eax, byte [0x4ef01f]
not eax
test byte [esi + 8], al
je 0x4108e0
push 0xffc3d450
push 0
push 0
push dword [esp + 0x30]
mov dl, bl
mov ecx, 1
call fcn.00419d60
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.00410950
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret