Function at 0x40b4c0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using speck

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0xb0
xor eax, eax
lea edi, [ebp - 0x45b]
mov byte [ebp - 0x45c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x85a]
mov word [ebp - 0x85c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x65a]
mov word [ebp - 0x65c], bx
rep stosd dword es:[edi], eax
push 0x8a120c
mov dword [ebp - 0x50], ebx
mov word [ebp - 0x3c], bx
mov word [ebp - 0x3a], bx
stosw word es:[edi], ax
mov dword [ebp - 0x19c], 4
call fcn.008481e0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x45c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x8a1260
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.008481e0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x30c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x8a12b4
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.008481e0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x432]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x8a1260
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.008481e0
lea edx, [ebp - 0x2e2]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
push 0x8a1308
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.008481e0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x408]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x8a13b0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.008481e0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x2b8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x8a135c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.008481e0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x3de]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x8a13b0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.008481e0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0x20
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x28e]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
fld qword [0x89a578]
fld qword [0x89a578]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
fld st(0)
fmul st(1)
fld st(0)
fmul qword [0x8a1630]
fsub st(1)
fxch st(1)
fmul qword [0x8a1628]
fadd qword [0x8a1620]
fdivp st(1)
faddp st(2)
fld st(1)
fcomp qword [0x8a1618]
fnstsw ax
test ah, 0x41
jne 0x40b6eb
fld st(0)
fmul qword [0x8a1610]
fsubp st(2)
fadd qword [0x8a1448]
fcom qword [0x8a1608]
fnstsw ax
test ah, 1
jne 0x40b6b2
fxch st(1)
fst qword [ebp - 0x4c]
fxch st(1)
fstp st(0)
fcomp qword [0x89a578]
fnstsw ax
test ah, 1
je 0x40b76c
xchg ebp, eax
fist word [eax - 0x631e6721]
in eax, 0x95
ljmp 0xdd99
mov dword [ebp - 0x20], 0x40b714
mov dword [ebp - 0x40], 0x40b74c
xor eax, eax
mov byte [ebp + eax - 0x150], al
inc eax
cmp eax, 0x100
jb 0x40b77c
fld qword [ebp - 0x4c]
mov byte [ebp - 4], 0
xor edi, edi
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], 0xff
mov eax, dword [ebp - 0xc]
mov ebx, 1
cmp eax, ebx
mov dword [ebp - 0x38], 0
jbe 0x40b7b9
lea ebx, [ebx + ebx + 1]
cmp ebx, eax
jb 0x40b7b1
cmp edi, 3
ja case.default.0x40b7be
jmp dword [edi*4 + 0x40cbd0]
fld st(0)
and esi, 0xff
call fcn.00848444
mov cl, byte [ebp + esi - 0x150]
jmp 0x40b83a
fld st(0)
and esi, 0xff
call fcn.00848444
mov cl, byte [ebp + esi - 0x150]
shr eax, 8
jmp 0x40b83a
fld st(0)
and esi, 0xff
call fcn.00848444
mov cl, byte [ebp + esi - 0x150]
shr eax, 0x10
jmp 0x40b83a
fld st(0)
and esi, 0xff
call fcn.00848444
mov cl, byte [ebp + esi - 0x150]
shr eax, 0x18
jmp 0x40b83a
mov ecx, dword [ebp - 0x40]
and esi, 0xff
mov cl, byte [ecx + edi - 4]
mov al, byte [ebp + esi - 0x150]
add cl, al
inc edi
cmp edi, 0x1f
mov byte [ebp - 4], cl
jb 0x40b84d
xor edi, edi
add cl, 0x1f
mov byte [ebp - 4], cl
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x38]
mov edx, esi
and edx, 0xff
and edx, ebx
inc eax
cmp eax, 0xb
mov dword [ebp - 0x38], eax
jbe 0x40b86d
mov eax, edx
xor edx, edx
div dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, edx
jb 0x40b7b9
je 0x40b8a5
mov bl, byte [ebp + eax - 0x150]
lea edx, [ebp + edx - 0x150]
lea ecx, [ebp + eax - 0x150]
mov al, byte [edx]
xor bl, al
mov byte [ecx], bl
mov al, bl
mov bl, byte [edx]
xor bl, al
mov byte [edx], bl
mov al, byte [ecx]
mov dl, bl
xor al, dl
mov byte [ecx], al
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
jne 0x40b79e
mov dl, byte [ebp - 0x149]
mov edi, dword [ebp - 0x20]
and esi, 0xff
mov byte [ebp - 0x1c], dl
mov dl, byte [edi]
mov bl, byte [ebp - 0x14d]
mov al, byte [ebp + esi - 0x150]
xor esi, esi
mov byte [ebp - 0x18], al
mov al, byte [edi + 1]
add al, 0x23
mov cl, byte [ebp - 0x14b]
shl dl, 4
or al, dl
mov byte [ebp - 0x30], al
mov eax, dword [ebp - 0x18]
and eax, 0xff
fstp st(0)
mov dl, byte [ebp + eax - 0x150]
lea edi, [ebp + eax - 0x150]
mov byte [ebp - 0x34], dl
mov edx, dword [ebp - 0x14f]
mov eax, edx
and eax, 0xff
mov al, byte [ebp + eax - 0x150]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
lea edx, [ebp + edx - 0x150]
mov byte [edi], bl
mov ebx, dword [ebp - 0x1c]
and ebx, 0xff
mov dword [ebp - 4], edx
lea ebx, [ebp + ebx - 0x150]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x14]
and edx, 0xff
lea edx, [ebp + edx - 0x150]
mov dword [ebp - 0x10], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x10]
mov dl, byte [ebp - 0x34]
mov byte [ebx], dl
mov edx, dword [ebp - 0x34]
and edx, 0xff
mov dword [ebp - 0x24], edx
mov bl, byte [ebp + edx - 0x150]
add cl, bl
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 0xc], cl
mov edx, dword [ebp - 0xc]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x150]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
mov edi, dword [ebp - 0x24]
and edx, 0xff
xor ebx, ebx
mov bl, byte [ebp + edx - 0x150]
mov edx, dword [ebp - 4]
mov dl, byte [edx]
mov bl, byte [ebp + ebx - 0x150]
add edx, edi
mov edi, dword [ebp - 0x20]
and edx, 0xff
xor bl, byte [ebp + edx - 0x150]
mov dl, byte [ebp - 0x30]
mov byte [ebp - 0x18], dl
xor bl, dl
lea edx, [ebp - 0x188]
mov byte [ebp - 0x1c], bl
sub edx, 2
mov dword [ebp - 0x40], 0xa
jmp 0x40b9fc
mov edi, dword [ebp - 0x48]
mov bl, byte [edi + 2]
add edx, 2
add edi, 2
mov dword [ebp - 0x38], edx
shl bl, 4
mov dl, byte [edi + 1]
mov dword [ebp - 0x48], edi
add dl, 0x23
inc esi
or dl, bl
mov byte [ebp - 0x30], dl
mov edx, dword [ebp - 0x18]
and edx, 0xff
lea edi, [ebp + edx - 0x150]
mov dl, byte [ebp + edx - 0x150]
mov byte [ebp - 0x34], dl
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov dl, byte [ebp - 0x2c]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
lea edx, [ebp + edx - 0x150]
mov byte [edi], bl
mov ebx, dword [ebp - 0x1c]
and ebx, 0xff
mov dword [ebp - 4], edx
lea ebx, [ebp + ebx - 0x150]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x14]
and edx, 0xff
lea edx, [ebp + edx - 0x150]
mov dword [ebp - 0x10], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x10]
mov dl, byte [ebp - 0x34]
mov byte [ebx], dl
mov edx, dword [ebp - 0x34]
and edx, 0xff
mov dword [ebp - 0x24], edx
mov bl, byte [ebp + edx - 0x150]
add cl, bl
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 0xc], cl
mov edx, dword [ebp - 0xc]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x150]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
mov edx, dword [ebp - 4]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x24]
add ebx, edx
mov dl, byte [ebp + edi - 0x150]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x150]
mov bl, byte [ebp - 0x30]
mov byte [ebp - 0x18], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x1c], dl
jbe 0x40bb18
movsx di, dl
mov edx, dword [ebp - 0x38]
mov word [edx], di
jmp 0x40bb1b
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x40]
dec edi
mov dword [ebp - 0x40], edi
jne 0x40b9f9
mov edi, dword [ebp - 0x20]
inc esi
mov dl, byte [edi + esi*2 + 1]
mov bl, byte [edi + esi*2]
add dl, 0x23
shl bl, 4
or dl, bl
mov byte [ebp - 0x30], dl
mov edx, dword [ebp - 0x18]
and edx, 0xff
lea edi, [ebp + edx - 0x150]
mov dl, byte [ebp + edx - 0x150]
mov byte [ebp - 0x34], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
mov dl, byte [ebp - 0x2c]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
lea edx, [ebp + edx - 0x150]
mov byte [edi], bl
mov ebx, dword [ebp - 0x1c]
and ebx, 0xff
mov dword [ebp - 4], edx
lea ebx, [ebp + ebx - 0x150]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x14]
and edx, 0xff
lea edx, [ebp + edx - 0x150]
mov dword [ebp - 0x10], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x10]
mov dl, byte [ebp - 0x34]
mov byte [ebx], dl
mov edx, dword [ebp - 0x34]
and edx, 0xff
mov dword [ebp - 0x24], edx
mov bl, byte [ebp + edx - 0x150]
add cl, bl
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 0xc], cl
mov edx, dword [ebp - 0xc]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x150]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
mov edx, dword [ebp - 4]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x24]
add ebx, edx
mov dl, byte [ebp + edi - 0x150]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x150]
mov bl, byte [ebp - 0x30]
mov byte [ebp - 0x18], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x1c], dl
jbe 0x40bc47
movsx dx, dl
mov word [ebp + esi*2 - 0x18a], dx
mov edi, dword [ebp - 0x20]
inc esi
mov dl, byte [edi + esi*2 + 1]
mov bl, byte [edi + esi*2]
add dl, 0x23
shl bl, 4
or dl, bl
mov byte [ebp - 0x30], dl
mov edx, dword [ebp - 0x18]
and edx, 0xff
lea edi, [ebp + edx - 0x150]
mov dl, byte [ebp + edx - 0x150]
mov byte [ebp - 0x34], dl
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov dl, byte [ebp - 0x2c]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
lea edx, [ebp + edx - 0x150]
mov byte [edi], bl
mov ebx, dword [ebp - 0x1c]
and ebx, 0xff
mov dword [ebp - 4], edx
lea ebx, [ebp + ebx - 0x150]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x14]
and edx, 0xff
lea edx, [ebp + edx - 0x150]
mov dword [ebp - 0x10], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x10]
mov dl, byte [ebp - 0x34]
mov byte [ebx], dl
mov edx, dword [ebp - 0x34]
and edx, 0xff
mov dword [ebp - 0x24], edx
mov bl, byte [ebp + edx - 0x150]
add cl, bl
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 0xc], cl
mov edx, dword [ebp - 0xc]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x150]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
mov edx, dword [ebp - 4]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x24]
add ebx, edx
mov dl, byte [ebp + edi - 0x150]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x150]
mov bl, byte [ebp - 0x30]
mov byte [ebp - 0x18], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x1c], dl
jbe 0x40bd5b
movsx dx, dl
mov word [ebp + esi*2 - 0x18a], dx
mov edx, dword [ebp - 0x20]
inc esi
mov bl, byte [edx + esi*2]
lea edi, [edx + esi*2]
shl bl, 4
mov dl, byte [edi + 1]
add dl, 0x23
or dl, bl
mov byte [ebp - 0x30], dl
mov edx, dword [ebp - 0x18]
and edx, 0xff
lea edi, [ebp + edx - 0x150]
mov dl, byte [ebp + edx - 0x150]
mov byte [ebp - 0x34], dl
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov dl, byte [ebp - 0x2c]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
lea edx, [ebp + edx - 0x150]
mov byte [edi], bl
mov ebx, dword [ebp - 0x1c]
and ebx, 0xff
mov dword [ebp - 4], edx
lea ebx, [ebp + ebx - 0x150]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x14]
and edx, 0xff
lea edx, [ebp + edx - 0x150]
mov dword [ebp - 0x10], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x10]
mov dl, byte [ebp - 0x34]
mov byte [ebx], dl
mov edx, dword [ebp - 0x34]
and edx, 0xff
mov dword [ebp - 0x24], edx
mov bl, byte [ebp + edx - 0x150]
add cl, bl
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 0xc], cl
mov edx, dword [ebp - 0xc]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x150]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
mov edx, dword [ebp - 4]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x24]
add ebx, edx
mov dl, byte [ebp + edi - 0x150]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x150]
mov bl, byte [ebp - 0x30]
mov byte [ebp - 0x18], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x1c], dl
jbe 0x40be71
movsx dx, dl
mov word [ebp + esi*2 - 0x18a], dx
lea ebx, [esi + 1]
cmp ebx, 0x1a
jge 0x40bfc6
mov edx, dword [ebp - 0x20]
lea edi, [edx + esi*2]
lea edx, [ebp + esi*2 - 0x18a]
mov dword [ebp - 0x38], edx
mov edx, 0x1a
sub edx, ebx
mov dword [ebp - 0x40], edx
jmp 0x40be9c
mov edi, dword [ebp - 0x48]
mov edx, dword [ebp - 0x38]
mov bl, byte [edi + 2]
add edx, 2
add edi, 2
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x48], edi
mov dl, byte [edi + 1]
inc esi
add dl, 0x23
shl bl, 4
or dl, bl
mov byte [ebp - 0x30], dl
mov edx, dword [ebp - 0x18]
and edx, 0xff
lea edi, [ebp + edx - 0x150]
mov dl, byte [ebp + edx - 0x150]
mov byte [ebp - 0x34], dl
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov dl, byte [ebp - 0x2c]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
lea edx, [ebp + edx - 0x150]
mov byte [edi], bl
mov ebx, dword [ebp - 0x1c]
and ebx, 0xff
mov dword [ebp - 4], edx
lea ebx, [ebp + ebx - 0x150]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x14]
and edx, 0xff
lea edx, [ebp + edx - 0x150]
mov dword [ebp - 0x10], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x10]
mov dl, byte [ebp - 0x34]
mov byte [ebx], dl
mov edx, dword [ebp - 0x34]
and edx, 0xff
mov dword [ebp - 0x24], edx
mov bl, byte [ebp + edx - 0x150]
add cl, bl
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 0xc], cl
mov edx, dword [ebp - 0xc]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x150]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
mov edx, dword [ebp - 4]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x24]
add ebx, edx
mov dl, byte [ebp + edi - 0x150]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x150]
mov bl, byte [ebp - 0x30]
mov byte [ebp - 0x18], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x1c], dl
jbe 0x40bfb9
mov edi, dword [ebp - 0x38]
movsx dx, dl
mov word [edi], dx
mov edx, dword [ebp - 0x40]
dec edx
mov dword [ebp - 0x40], edx
jne 0x40be99
mov edi, dword [ebp - 0x20]
inc esi
mov dl, byte [edi + esi*2 + 1]
mov bl, byte [edi + esi*2]
add dl, 0x23
shl bl, 4
or dl, bl
mov byte [ebp - 0x30], dl
mov edx, dword [ebp - 0x18]
and edx, 0xff
lea edi, [ebp + edx - 0x150]
mov dl, byte [ebp + edx - 0x150]
mov byte [ebp - 0x34], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
mov dl, byte [ebp - 0x2c]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
lea edx, [ebp + edx - 0x150]
mov byte [edi], bl
mov ebx, dword [ebp - 0x1c]
and ebx, 0xff
mov dword [ebp - 4], edx
lea ebx, [ebp + ebx - 0x150]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x14]
and edx, 0xff
lea edx, [ebp + edx - 0x150]
mov dword [ebp - 0x10], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x10]
mov dl, byte [ebp - 0x34]
mov byte [ebx], dl
mov edx, dword [ebp - 0x34]
and edx, 0xff
mov dword [ebp - 0x24], edx
mov bl, byte [ebp + edx - 0x150]
add cl, bl
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 0xc], cl
mov edx, dword [ebp - 0xc]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x150]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
mov edx, dword [ebp - 4]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x24]
add ebx, edx
mov dl, byte [ebp + edi - 0x150]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x150]
mov bl, byte [ebp - 0x30]
mov byte [ebp - 0x18], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x1c], dl
jbe 0x40c0e5
movsx dx, dl
mov word [ebp + esi*2 - 0x18a], dx
mov edi, dword [ebp - 0x20]
inc esi
mov dl, byte [edi + esi*2 + 1]
mov bl, byte [edi + esi*2]
add dl, 0x23
shl bl, 4
or dl, bl
mov byte [ebp - 0x30], dl
mov edx, dword [ebp - 0x18]
and edx, 0xff
lea edi, [ebp + edx - 0x150]
mov dl, byte [ebp + edx - 0x150]
mov byte [ebp - 0x34], dl
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov dl, byte [ebp - 0x2c]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
lea edx, [ebp + edx - 0x150]
mov byte [edi], bl
mov ebx, dword [ebp - 0x1c]
and ebx, 0xff
mov dword [ebp - 4], edx
lea ebx, [ebp + ebx - 0x150]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x14]
and edx, 0xff
lea edx, [ebp + edx - 0x150]
mov dword [ebp - 0x10], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x10]
mov dl, byte [ebp - 0x34]
mov byte [ebx], dl
mov edx, dword [ebp - 0x34]
and edx, 0xff
mov dword [ebp - 0x24], edx
mov bl, byte [ebp + edx - 0x150]
add cl, bl
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 0xc], cl
mov edx, dword [ebp - 0xc]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x150]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
mov edx, dword [ebp - 4]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x24]
add ebx, edx
mov dl, byte [ebp + edi - 0x150]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x150]
mov bl, byte [ebp - 0x30]
xor dl, bl
test esi, esi
mov byte [ebp - 0x1c], dl
jbe 0x40c1f6
movsx dx, dl
mov word [ebp + esi*2 - 0x18a], dx
mov edx, dword [ebp - 0x30]
inc esi
and edx, 0xff
lea edi, [ebp + edx - 0x150]
mov dl, byte [ebp + edx - 0x150]
mov byte [ebp - 0x34], dl
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
add al, bl
mov bl, byte [ebp - 0x2c]
mov byte [ebp - 0x28], al
inc bl
mov eax, dword [ebp - 0x28]
mov byte [ebp - 0x2c], bl
and eax, 0xff
mov dl, byte [ebp + eax - 0x150]
lea eax, [ebp + eax - 0x150]
mov byte [edi], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
lea edx, [ebp + edx - 0x150]
mov byte [eax], bl
mov ebx, dword [ebp - 0x2c]
and ebx, 0xff
mov dword [ebp - 0x14], edx
test esi, esi
lea ebx, [ebp + ebx - 0x150]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov ebx, dword [ebp - 0x10]
mov dl, byte [ebp - 0x34]
mov byte [ebx], dl
jbe 0x40c2f5
mov edx, dword [ebp - 0x34]
mov al, byte [eax]
and edx, 0xff
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x20]
mov bl, byte [edx + esi*2 + 1]
mov dl, byte [edx + esi*2]
add bl, 0x23
shl dl, 4
or bl, dl
mov edx, dword [ebp - 0x24]
mov dl, byte [ebp + edx - 0x150]
add dl, cl
and edx, 0xff
mov cl, byte [ebp + edx - 0x150]
mov dl, byte [edi]
add ecx, edx
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x24]
mov dl, byte [edx]
add eax, edi
add ecx, edx
xor edx, edx
and ecx, 0xff
and eax, 0xff
mov dl, byte [ebp + ecx - 0x150]
mov cl, byte [ebp + edx - 0x150]
xor bl, cl
mov cl, byte [ebp + eax - 0x150]
xor bl, cl
movsx cx, bl
mov word [ebp + esi*2 - 0x18a], cx
mov ebx, dword [ebp - 0x50]
mov word [ebp - 0x152], 0
lea edx, [ebp - 0x188]
lea eax, [ebp - 0x85c]
push edx
push eax
call fcn.008489c9
fld qword [0x89a578]
fld qword [0x89a578]
add esp, 8
fld st(0)
fmul st(1)
rcr al, 0xc9
fld st(0)
fmul qword [0x8a1600]
fsub st(1)
fxch st(1)
fmul qword [0x8a15f8]
fadd qword [0x8a15f0]
fdivp st(1)
faddp st(2)
fld st(1)
fcomp qword [0x8a15e8]
fnstsw ax
test ah, 0x41
jne 0x40c35c
fld st(0)
fmul qword [0x8a15e0]
fsubp st(2)
fadd qword [0x8a1578]
fcom qword [0x8a15d8]
fnstsw ax
test ah, 1
jne 0x40c323
fxch st(1)
fst qword [ebp - 0x44]
fxch st(1)
fstp st(0)
fcomp qword [0x89a578]
fnstsw ax
test ah, 1
je 0x40c3e4
cmp byte [eax], dh
jo 0x40c3f3
jnp 0x40c3e1
jbe 0x40c3df
arpl word [edx + 0x2d], bp
cmp dword [ecx], esi
outsb dx, byte [esi]
pop esp
js 0x40c3fb
jae 0x40c324
jmp 0xecd0ad25
jmp 0x40cb3e
pop es
add byte [eax], al
mov dword [ebp - 0x14], 0x40c397
mov dword [ebp - 0x48], 0x40c385
xor eax, eax
ror byte [eax - 0x14ffa7c], 0xff
inc dword [eax + 0x3d]
add byte [ecx], al
add byte [eax], al
mov byte [ebp + eax - 0x150], al
inc eax
cmp eax, 0x100
jb 0x40c3f4
fld qword [ebp - 0x44]
mov eax, 0xff
mov byte [ebp - 0x20], 0
mov esi, dword [ebp - 0x20]
xor edi, edi
mov dword [ebp - 4], eax
mov ebx, 1
mov dword [ebp - 0x40], 0
cmp eax, ebx
jbe 0x40c42f
lea ebx, [ebx + ebx + 1]
cmp ebx, eax
jb 0x40c427
cmp edi, 3
ja case.default.0x40c434
jmp dword [edi*4 + 0x40cbe0]
fld st(0)
and esi, 0xff
call fcn.00848444
mov cl, byte [ebp + esi - 0x150]
jmp 0x40c4b0
fld st(0)
and esi, 0xff
call fcn.00848444
mov cl, byte [ebp + esi - 0x150]
shr eax, 8
jmp 0x40c4b0
fld st(0)
and esi, 0xff
call fcn.00848444
mov cl, byte [ebp + esi - 0x150]
shr eax, 0x10
jmp 0x40c4b0
fld st(0)
and esi, 0xff
call fcn.00848444
mov cl, byte [ebp + esi - 0x150]
shr eax, 0x18
jmp 0x40c4b0
mov ecx, dword [ebp - 0x48]
and esi, 0xff
mov cl, byte [ecx + edi - 4]
mov al, byte [ebp + esi - 0x150]
add cl, al
inc edi
cmp edi, 0x16
mov byte [ebp - 0x20], cl
jb 0x40c4c3
xor edi, edi
add cl, 0x16
mov byte [ebp - 0x20], cl
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x40]
mov edx, esi
and edx, 0xff
and edx, ebx
inc eax
cmp eax, 0xb
mov dword [ebp - 0x40], eax
jbe 0x40c4e3
mov eax, edx
xor edx, edx
div dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, edx
jb 0x40c42f
je 0x40c51b
mov bl, byte [ebp + eax - 0x150]
lea edx, [ebp + edx - 0x150]
lea ecx, [ebp + eax - 0x150]
mov al, byte [edx]
xor bl, al
mov byte [ecx], bl
mov al, bl
mov bl, byte [edx]
xor bl, al
mov byte [edx], bl
mov al, byte [ecx]
mov dl, bl
xor al, dl
mov byte [ecx], al
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
jne 0x40c417
mov cl, byte [ebp - 0x14b]
mov dl, byte [ebp - 0x149]
and esi, 0xff
mov byte [ebp - 4], cl
mov byte [ebp - 0x30], dl
mov bl, byte [ebp - 0x14d]
mov al, byte [ebp + esi - 0x150]
mov esi, dword [ebp - 0x14]
mov byte [ebp - 0x1c], al
xor eax, eax
mov cl, byte [esi]
mov dl, byte [esi + 1]
add cl, 0xf
add dl, 0x21
shl cl, 4
or cl, dl
mov byte [ebp - 5], cl
mov ecx, dword [ebp - 0x1c]
and ecx, 0xff
fstp st(0)
mov dl, byte [ebp + ecx - 0x150]
lea edi, [ebp + ecx - 0x150]
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0x14f]
mov ecx, edx
and ecx, 0xff
mov cl, byte [ebp + ecx - 0x150]
add cl, bl
inc dl
mov byte [ebp - 0x20], cl
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
lea esi, [ebp + edx - 0x150]
mov dword [ebp - 0x10], esi
mov dl, byte [esi]
mov byte [edi], dl
mov edx, dword [ebp - 0x30]
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
lea edx, [ebp + edx - 0x150]
mov byte [esi], bl
mov esi, dword [ebp - 0xc]
and esi, 0xff
mov dword [ebp - 0x28], edx
mov bl, byte [ebp + esi - 0x150]
lea esi, [ebp + esi - 0x150]
mov byte [edx], bl
mov dl, byte [ebp - 0x18]
mov bl, byte [ebp - 4]
mov byte [esi], dl
mov edx, dword [ebp - 0x18]
and edx, 0xff
mov dword [ebp - 0x24], edx
mov dl, byte [ebp + edx - 0x150]
add bl, dl
mov byte [ebp - 4], bl
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x150]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
mov edi, dword [ebp - 0x24]
and edx, 0xff
xor ebx, ebx
mov bl, byte [ebp + edx - 0x150]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx]
mov bl, byte [ebp + ebx - 0x150]
add edx, edi
mov edi, dword [ebp - 0x14]
and edx, 0xff
xor bl, byte [ebp + edx - 0x150]
mov dl, byte [ebp - 5]
mov byte [ebp - 0x1c], dl
xor bl, dl
lea edx, [ebp - 0x198]
mov byte [ebp - 0x30], bl
sub edx, 2
mov dword [ebp - 0x38], 0x10
jmp 0x40c67a
mov edi, dword [ebp - 0x48]
mov bl, byte [edi + 2]
add edi, 2
add edx, 2
add bl, 0xf
mov dword [ebp - 0x40], edx
mov dl, byte [edi + 1]
add dl, 0x21
mov dword [ebp - 0x48], edi
shl bl, 4
or dl, bl
mov bl, byte [ebp - 0xc]
mov byte [ebp - 5], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
inc eax
lea edi, [ebp + edx - 0x150]
mov dl, byte [ebp + edx - 0x150]
mov byte [ebp - 0x18], dl
mov dl, byte [esi]
add cl, dl
inc bl
mov byte [ebp - 0x20], cl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov byte [ebp - 0xc], bl
lea esi, [ebp + edx - 0x150]
mov dword [ebp - 0x10], esi
mov dl, byte [esi]
mov byte [edi], dl
mov edx, dword [ebp - 0x30]
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
lea edx, [ebp + edx - 0x150]
mov byte [esi], bl
mov esi, dword [ebp - 0xc]
and esi, 0xff
mov dword [ebp - 0x28], edx
mov bl, byte [ebp + esi - 0x150]
lea esi, [ebp + esi - 0x150]
mov byte [edx], bl
mov dl, byte [ebp - 0x18]
mov bl, byte [ebp - 4]
mov byte [esi], dl
mov edx, dword [ebp - 0x18]
and edx, 0xff
mov dword [ebp - 0x24], edx
mov dl, byte [ebp + edx - 0x150]
add bl, dl
mov byte [ebp - 4], bl
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x150]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
mov edx, dword [ebp - 0x10]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x24]
add ebx, edx
mov dl, byte [ebp + edi - 0x150]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x150]
mov bl, byte [ebp - 5]
mov byte [ebp - 0x1c], bl
xor dl, bl
test eax, eax
mov byte [ebp - 0x30], dl
jbe 0x40c795
movsx di, dl
mov edx, dword [ebp - 0x40]
mov word [edx], di
jmp 0x40c798
mov edx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x38]
dec edi
mov dword [ebp - 0x38], edi
jne 0x40c677
mov esi, dword [ebp - 0x14]
inc eax
mov dl, byte [esi + eax*2]
mov bl, byte [esi + eax*2 + 1]
add dl, 0xf
add bl, 0x21
shl dl, 4
or dl, bl
mov byte [ebp - 5], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea edi, [ebp + edx - 0x150]
mov dl, byte [ebp + edx - 0x150]
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
add cl, bl
mov bl, byte [ebp - 0xc]
mov byte [ebp - 0x20], cl
mov edx, dword [ebp - 0x20]
and edx, 0xff
inc bl
mov byte [ebp - 0xc], bl
lea esi, [ebp + edx - 0x150]
mov dl, byte [ebp + edx - 0x150]
mov byte [edi], dl
mov edx, dword [ebp - 0x30]
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
lea edx, [ebp + edx - 0x150]
mov byte [esi], bl
mov ebx, dword [ebp - 0xc]
and ebx, 0xff
mov dword [ebp - 0x28], edx
lea ebx, [ebp + ebx - 0x150]
mov dword [ebp - 0x40], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov ebx, dword [ebp - 0x40]
mov dl, byte [ebp - 0x18]
mov byte [ebx], dl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebp - 4]
and edx, 0xff
mov dword [ebp - 0x24], edx
mov dl, byte [ebp + edx - 0x150]
add bl, dl
mov byte [ebp - 4], bl
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x150]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
mov edx, ebx
mov bl, byte [esi]
mov esi, dword [ebp - 0x24]
mov dl, byte [ebp + edx - 0x150]
add ebx, esi
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x150]
mov bl, byte [ebp - 5]
mov byte [ebp - 0x1c], bl
xor dl, bl
test eax, eax
mov byte [ebp - 0x30], dl
jbe 0x40c8c6
movsx dx, dl
mov word [ebp + eax*2 - 0x19a], dx
mov edx, dword [ebp - 0x14]
inc eax
mov bl, byte [edx + eax*2 + 1]
lea esi, [edx + eax*2]
add bl, 0x21
mov dword [ebp - 0x48], esi
mov dl, byte [esi]
add dl, 0xf
shl dl, 4
or dl, bl
mov byte [ebp - 5], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea edi, [ebp + edx - 0x150]
mov dl, byte [ebp + edx - 0x150]
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0x40]
mov bl, byte [edx]
add cl, bl
mov bl, byte [ebp - 0xc]
mov byte [ebp - 0x20], cl
mov edx, dword [ebp - 0x20]
and edx, 0xff
inc bl
mov byte [ebp - 0xc], bl
lea esi, [ebp + edx - 0x150]
mov dword [ebp - 0x10], esi
mov dl, byte [esi]
mov byte [edi], dl
mov edx, dword [ebp - 0x30]
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
lea edx, [ebp + edx - 0x150]
mov byte [esi], bl
mov esi, dword [ebp - 0xc]
and esi, 0xff
mov dword [ebp - 0x28], edx
mov bl, byte [ebp + esi - 0x150]
lea esi, [ebp + esi - 0x150]
mov byte [edx], bl
mov dl, byte [ebp - 0x18]
mov bl, byte [ebp - 4]
mov byte [esi], dl
mov edx, dword [ebp - 0x18]
and edx, 0xff
mov dword [ebp - 0x24], edx
mov dl, byte [ebp + edx - 0x150]
add bl, dl
mov byte [ebp - 4], bl
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x150]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
mov edx, dword [ebp - 0x10]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x24]
add ebx, edx
mov dl, byte [ebp + edi - 0x150]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x150]
mov bl, byte [ebp - 5]
mov byte [ebp - 0x1c], bl
xor dl, bl
test eax, eax
mov byte [ebp - 0x30], dl
jbe 0x40c9e1
movsx dx, dl
mov word [ebp + eax*2 - 0x19a], dx
lea ebx, [eax + 1]
cmp ebx, 0x25
jge 0x40cb32
mov edi, dword [ebp - 0x48]
lea edx, [ebp + eax*2 - 0x19a]
mov dword [ebp - 0x38], edx
mov edx, 0x25
sub edx, ebx
mov dword [ebp - 0x40], edx
jmp 0x40ca09
mov edi, dword [ebp - 0x48]
mov edx, dword [ebp - 0x38]
mov bl, byte [edi + 2]
add edi, 2
add edx, 2
mov dword [ebp - 0x38], edx
add bl, 0xf
mov dl, byte [edi + 1]
mov dword [ebp - 0x48], edi
add dl, 0x21
inc eax
shl bl, 4
or dl, bl
mov bl, byte [ebp - 0xc]
mov byte [ebp - 5], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea edi, [ebp + edx - 0x150]
mov dl, byte [ebp + edx - 0x150]
mov byte [ebp - 0x18], dl
mov dl, byte [esi]
add cl, dl
inc bl
mov byte [ebp - 0x20], cl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov byte [ebp - 0xc], bl
lea esi, [ebp + edx - 0x150]
mov dword [ebp - 0x10], esi
mov dl, byte [esi]
mov byte [edi], dl
mov edx, dword [ebp - 0x30]
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
lea edx, [ebp + edx - 0x150]
mov byte [esi], bl
mov esi, dword [ebp - 0xc]
and esi, 0xff
mov dword [ebp - 0x28], edx
mov bl, byte [ebp + esi - 0x150]
lea esi, [ebp + esi - 0x150]
mov byte [edx], bl
mov dl, byte [ebp - 0x18]
mov bl, byte [ebp - 4]
mov byte [esi], dl
mov edx, dword [ebp - 0x18]
and edx, 0xff
mov dword [ebp - 0x24], edx
mov dl, byte [ebp + edx - 0x150]
add bl, dl
mov byte [ebp - 4], bl
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x150]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x150]
mov edx, dword [ebp - 0x10]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x24]
add ebx, edx
mov dl, byte [ebp + edi - 0x150]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x150]
mov bl, byte [ebp - 5]
mov byte [ebp - 0x1c], bl
xor dl, bl
test eax, eax
mov byte [ebp - 0x30], dl
jbe 0x40cb25
mov edi, dword [ebp - 0x38]
movsx dx, dl
mov word [edi], dx
mov edx, dword [ebp - 0x40]
dec edx
mov dword [ebp - 0x40], edx
jne 0x40ca06
mov ebx, dword [ebp - 0x50]
mov word [ebp - 0x152], 0
lea eax, [ebp - 0x198]
lea ecx, [ebp - 0x65c]
push eax
push ecx
call fcn.008489c9
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x45c]
push edx
push 2
push 0
push eax
lea ecx, [ebp - 0x85c]
push 0x100
push ecx
push reloc.WS2_32.dll_bind
call fcn.0040b0b0
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x45c]
push edx
push 1
push 0
push eax
lea ecx, [ebp - 0x65c]
push 0x100
push ecx
push reloc.WS2_32.dll_bind
call fcn.0040b0b0
mov ecx, dword [ebp - 0x19c]
add esp, 0x40
test ecx, ecx
jle 0x40cbbe
lea eax, [ebp - 0x1bc]
cmp dword [eax], 0
je 0x40cbb8
mov ebx, 1
add eax, 4
dec ecx
jne 0x40cbae
mov eax, ebx
pop edi
neg eax
sbb eax, eax
pop esi
and eax, 0x10
pop ebx
mov esp, ebp
pop ebp
ret