Function at 0x40b1c7
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0xb0
xor eax, eax
lea edi, [ebp - 0x457]
mov byte [ebp - 0x458], 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 - 0x656]
mov word [ebp - 0x658], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x856]
mov word [ebp - 0x858], bx
rep stosd dword es:[edi], eax
push 0x889268
mov dword [ebp - 0x14c], ebx
mov word [ebp - 0x38], bx
mov word [ebp - 0x36], bx
stosw word es:[edi], ax
mov dword [ebp - 0x198], 4
call fcn.0082fc70
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x458]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x8892bc
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.0082fc70
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x308]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x889310
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.0082fc70
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x42e]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x8892bc
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.0082fc70
lea edx, [ebp - 0x2de]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
push 0x889364
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.0082fc70
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x404]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x88940c
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.0082fc70
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x2b4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x8893b8
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.0082fc70
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x3da]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x88940c
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.0082fc70
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 - 0x28a]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
fld qword [0x882578]
fld qword [0x882578]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
fld st(0)
fmul st(1)
fld st(0)
fmul qword [0x889680]
fsub st(1)
fxch st(1)
fmul qword [0x889678]
fadd qword [0x889670]
fdivp st(1)
faddp st(2)
fld st(1)
fcomp qword [0x889668]
fnstsw ax
test ah, 0x41
jne 0x40b19e
fld st(0)
fmul qword [0x889660]
fsubp st(2)
fadd qword [0x889468]
fcom qword [0x889658]
fnstsw ax
test ah, 1
jne 0x40b165
fxch st(1)
fst qword [ebp - 0x48]
fxch st(1)
fstp st(0)
fcomp qword [0x882578]
fnstsw ax
test ah, 1
je 0x40b222
inc eax
cmp dl, byte [ecx + edi + 0x6a]
jbe 0x40b217
and al, 0x6e
jae 0x40b24a
sub esi, dword ss:[ecx]
popal
inc ebp
pop ecx
ja 0x40b21b
push 0x2d
jbe 0x40b219
js 0x40b24f
cmp byte [si - 0x30], ch
push eax
rcl dword [edi - 0x31], cl
push esp
aad 0x5e
salc
push edi
int3
retf 0xcc5a
int3
int3
mov dword [ebp - 0x30], 0x40b1e5
mov dword [ebp - 0x3c], 0x40b1c7
xor eax, eax
mov byte [ebp + eax - 0x148], al
inc eax
cmp eax, 0x100
jb 0x40b232
fld qword [ebp - 0x48]
mov byte [ebp - 0x10], 0
xor edi, edi
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x34], 0xff
int3
mov eax, dword [ebp - 0x34]
mov ebx, 1
cmp eax, ebx
mov dword [ebp - 0x1c], 0
jbe 0x40b26f
lea ebx, [ebx + ebx + 1]
cmp ebx, eax
jb 0x40b267
cmp edi, 3
ja case.default.0x40b274
jmp dword [edi*4 + 0x40caf8]
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x148]
jmp 0x40b2f0
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x148]
shr eax, 8
jmp 0x40b2f0
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x148]
shr eax, 0x10
jmp 0x40b2f0
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x148]
shr eax, 0x18
jmp 0x40b2f0
mov ecx, dword [ebp - 0x3c]
and esi, 0xff
mov cl, byte [ecx + edi - 4]
mov al, byte [ebp + esi - 0x148]
add cl, al
inc edi
cmp edi, 0x22
mov byte [ebp - 0x10], cl
jb 0x40b303
xor edi, edi
add cl, 0x22
mov byte [ebp - 0x10], cl
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov edx, esi
and edx, 0xff
and edx, ebx
inc eax
cmp eax, 0xb
mov dword [ebp - 0x1c], eax
jbe 0x40b323
mov eax, edx
xor edx, edx
div dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
cmp eax, edx
jb 0x40b26f
je 0x40b35b
mov bl, byte [ebp + eax - 0x148]
lea edx, [ebp + edx - 0x148]
lea ecx, [ebp + eax - 0x148]
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 - 0x34]
dec eax
mov dword [ebp - 0x34], eax
jne 0x40b254
mov edi, dword [ebp - 0x30]
mov dl, byte [ebp - 0x141]
and esi, 0xff
mov byte [ebp - 0x20], dl
mov dl, byte [edi + 1]
mov bl, byte [ebp - 0x145]
mov al, byte [ebp + esi - 0x148]
sub dl, 0x50
mov byte [ebp - 0x2c], al
mov al, byte [edi]
add al, 7
mov cl, byte [ebp - 0x143]
shl al, 4
or al, dl
mov byte [ebp - 0x24], al
mov eax, dword [ebp - 0x2c]
and eax, 0xff
fstp st(0)
mov dl, byte [ebp + eax - 0x148]
lea esi, [ebp + eax - 0x148]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x147]
mov eax, edx
and eax, 0xff
mov al, byte [ebp + eax - 0x148]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 0x14], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
lea edx, [ebp + edx - 0x148]
mov byte [esi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x10], edx
lea ebx, [ebp + ebx - 0x148]
mov dword [ebp - 4], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 4]
and edx, 0xff
lea edx, [ebp + edx - 0x148]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x18], edx
mov bl, byte [ebp + edx - 0x148]
add cl, bl
mov bl, byte [esi]
mov esi, dword [ebp - 4]
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov dl, byte [ebp + edx - 0x148]
add edx, ebx
mov bl, byte [esi]
add edx, ebx
mov esi, dword [ebp - 0x18]
and edx, 0xff
xor ebx, ebx
mov bl, byte [ebp + edx - 0x148]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx]
mov bl, byte [ebp + ebx - 0x148]
add edx, esi
and edx, 0xff
xor bl, byte [ebp + edx - 0x148]
mov dl, byte [ebp - 0x24]
mov byte [ebp - 0x2c], dl
xor bl, dl
mov dl, byte [edi + 3]
mov byte [ebp - 0x20], bl
sub dl, 0x50
mov bl, byte [edi + 2]
add edi, 4
add bl, 7
shl bl, 4
or dl, bl
mov byte [ebp - 0x24], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea esi, [ebp + edx - 0x148]
mov dl, byte [ebp + edx - 0x148]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0xc]
mov bl, byte [edx]
mov dl, byte [ebp - 0x14]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 0x14], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
lea edx, [ebp + edx - 0x148]
mov byte [esi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x10], edx
lea ebx, [ebp + ebx - 0x148]
mov dword [ebp - 4], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 4]
and edx, 0xff
lea edx, [ebp + edx - 0x148]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x18], edx
mov bl, byte [ebp + edx - 0x148]
add cl, bl
mov bl, byte [esi]
mov esi, dword [ebp - 4]
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov dl, byte [ebp + edx - 0x148]
add edx, ebx
mov bl, byte [esi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
mov edx, dword [ebp - 0x10]
mov esi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x18]
add ebx, edx
mov dl, byte [ebp + esi - 0x148]
and ebx, 0xff
mov esi, 2
xor dl, byte [ebp + ebx - 0x148]
mov bl, byte [ebp - 0x24]
mov byte [ebp - 0x2c], bl
xor dl, bl
mov byte [ebp - 0x20], dl
movsx dx, dl
mov word [ebp - 0x184], dx
mov dl, byte [edi]
mov bl, byte [edi + 1]
add dl, 7
shl dl, 4
sub bl, 0x50
or dl, bl
mov byte [ebp - 0x24], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x148]
mov dword [ebp - 0x3c], 0xa
mov dl, byte [edi]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0xc]
mov bl, byte [edx]
mov dl, byte [ebp - 0x14]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 0x14], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
lea edx, [ebp + edx - 0x148]
mov byte [edi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x10], edx
lea ebx, [ebp + ebx - 0x148]
mov dword [ebp - 4], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 4]
and edx, 0xff
lea edx, [ebp + edx - 0x148]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x18], edx
mov bl, byte [ebp + edx - 0x148]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 4]
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov dl, byte [ebp + edx - 0x148]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
mov edx, dword [ebp - 0x10]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x18]
add ebx, edx
mov dl, byte [ebp + edi - 0x148]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x148]
mov bl, byte [ebp - 0x24]
mov byte [ebp - 0x2c], bl
xor dl, bl
mov byte [ebp - 0x20], dl
movsx dx, dl
mov word [ebp - 0x182], dx
mov edx, dword [ebp - 0x30]
lea edi, [edx + 4]
lea edx, [ebp - 0x182]
mov dword [ebp - 0x34], edx
jmp 0x40b6d2
mov edi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x34]
mov bl, byte [edi + 2]
add edi, 2
add edx, 2
mov dword [ebp - 0x34], edx
add bl, 7
mov dl, byte [edi + 1]
mov dword [ebp - 0x44], edi
sub dl, 0x50
inc esi
shl bl, 4
or dl, bl
mov byte [ebp - 0x24], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x148]
mov dl, byte [ebp + edx - 0x148]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0xc]
mov bl, byte [edx]
mov dl, byte [ebp - 0x14]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 0x14], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
lea edx, [ebp + edx - 0x148]
mov byte [edi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x10], edx
lea ebx, [ebp + ebx - 0x148]
mov dword [ebp - 4], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 4]
and edx, 0xff
lea edx, [ebp + edx - 0x148]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x18], edx
mov bl, byte [ebp + edx - 0x148]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 4]
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov dl, byte [ebp + edx - 0x148]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
mov edx, dword [ebp - 0x10]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x18]
add ebx, edx
mov dl, byte [ebp + edi - 0x148]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x148]
mov bl, byte [ebp - 0x24]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x20], dl
jbe 0x40b7f2
mov edi, dword [ebp - 0x34]
movsx dx, dl
mov word [edi], dx
mov edx, dword [ebp - 0x3c]
dec edx
mov dword [ebp - 0x3c], edx
jne 0x40b6cf
mov edx, dword [ebp - 0x30]
inc esi
mov bl, byte [edx + esi*2]
lea edi, [edx + esi*2]
add bl, 7
mov dl, byte [edi + 1]
sub dl, 0x50
shl bl, 4
or dl, bl
mov byte [ebp - 0x24], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x148]
mov dl, byte [ebp + edx - 0x148]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
mov dl, byte [ebp - 0x14]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 0x14], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
lea edx, [ebp + edx - 0x148]
mov byte [edi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x10], edx
lea ebx, [ebp + ebx - 0x148]
mov dword [ebp - 4], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 4]
and edx, 0xff
lea edx, [ebp + edx - 0x148]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x18], edx
mov bl, byte [ebp + edx - 0x148]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 4]
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov dl, byte [ebp + edx - 0x148]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
mov edx, dword [ebp - 0x10]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x18]
add ebx, edx
mov dl, byte [ebp + edi - 0x148]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x148]
mov bl, byte [ebp - 0x24]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x20], dl
jbe 0x40b923
movsx dx, dl
mov word [ebp + esi*2 - 0x186], dx
lea ebx, [esi + 1]
cmp ebx, 0x19
jge 0x40ba7b
mov edx, dword [ebp - 0x30]
lea edi, [edx + esi*2]
lea edx, [ebp + esi*2 - 0x186]
mov dword [ebp - 0x34], edx
mov edx, 0x19
sub edx, ebx
mov dword [ebp - 0x3c], edx
jmp 0x40b94e
mov edi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x34]
mov bl, byte [edi + 2]
add edi, 2
add edx, 2
mov dword [ebp - 0x34], edx
add bl, 7
mov dl, byte [edi + 1]
mov dword [ebp - 0x44], edi
sub dl, 0x50
inc esi
shl bl, 4
or dl, bl
mov byte [ebp - 0x24], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x148]
mov dl, byte [ebp + edx - 0x148]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0xc]
mov bl, byte [edx]
mov dl, byte [ebp - 0x14]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 0x14], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
lea edx, [ebp + edx - 0x148]
mov byte [edi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x10], edx
lea ebx, [ebp + ebx - 0x148]
mov dword [ebp - 4], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 4]
and edx, 0xff
lea edx, [ebp + edx - 0x148]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x18], edx
mov bl, byte [ebp + edx - 0x148]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 4]
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov dl, byte [ebp + edx - 0x148]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
mov edx, dword [ebp - 0x10]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x18]
add ebx, edx
mov dl, byte [ebp + edi - 0x148]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x148]
mov bl, byte [ebp - 0x24]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x20], dl
jbe 0x40ba6e
mov edi, dword [ebp - 0x34]
movsx dx, dl
mov word [edi], dx
mov edx, dword [ebp - 0x3c]
dec edx
mov dword [ebp - 0x3c], edx
jne 0x40b94b
mov edi, dword [ebp - 0x30]
inc esi
xor edx, edx
mov dl, byte [edi + esi*2]
mov bl, byte [edi + esi*2 + 1]
sub edx, 0xc9
sub bl, 0x50
shl edx, 4
or bl, dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
mov byte [ebp - 0x24], bl
lea edi, [ebp + edx - 0x148]
mov dl, byte [ebp + edx - 0x148]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
mov dl, byte [ebp - 0x14]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 0x14], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
lea edx, [ebp + edx - 0x148]
mov byte [edi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x10], edx
lea ebx, [ebp + ebx - 0x148]
mov dword [ebp - 4], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 4]
and edx, 0xff
lea edx, [ebp + edx - 0x148]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x18], edx
mov bl, byte [ebp + edx - 0x148]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 4]
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov dl, byte [ebp + edx - 0x148]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
mov edx, dword [ebp - 0x10]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x18]
add ebx, edx
mov dl, byte [ebp + edi - 0x148]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x148]
mov bl, byte [ebp - 0x24]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x20], dl
jbe 0x40bba2
movsx dx, dl
mov word [ebp + esi*2 - 0x186], dx
mov edi, dword [ebp - 0x30]
inc esi
xor edx, edx
xor ebx, ebx
mov dl, byte [edi + esi*2]
mov bl, byte [edi + esi*2 + 1]
sub edx, 0xc9
sub ebx, 0x50
shl edx, 4
or dl, bl
mov byte [ebp - 0x24], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x148]
mov dl, byte [ebp + edx - 0x148]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0xc]
mov bl, byte [edx]
mov dl, byte [ebp - 0x14]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 0x14], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
lea edx, [ebp + edx - 0x148]
mov byte [edi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x10], edx
lea ebx, [ebp + ebx - 0x148]
mov dword [ebp - 4], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 4]
and edx, 0xff
lea edx, [ebp + edx - 0x148]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x18], edx
mov bl, byte [ebp + edx - 0x148]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 4]
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov dl, byte [ebp + edx - 0x148]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
mov edx, dword [ebp - 0x10]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x18]
add ebx, edx
mov dl, byte [ebp + edi - 0x148]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x148]
mov bl, byte [ebp - 0x24]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x20], dl
jbe 0x40bcc0
movsx dx, dl
mov word [ebp + esi*2 - 0x186], dx
mov edi, dword [ebp - 0x30]
inc esi
mov bl, byte [edi + esi*2]
mov dl, byte [edi + esi*2 + 1]
add bl, 7
sub dl, 0x50
shl bl, 4
or dl, bl
mov byte [ebp - 0x24], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x148]
mov dl, byte [ebp + edx - 0x148]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0xc]
mov bl, byte [edx]
mov dl, byte [ebp - 0x14]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 0x14], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
lea edx, [ebp + edx - 0x148]
mov byte [edi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x10], edx
lea ebx, [ebp + ebx - 0x148]
mov dword [ebp - 4], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 4]
and edx, 0xff
lea edx, [ebp + edx - 0x148]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x18], edx
mov bl, byte [ebp + edx - 0x148]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 4]
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov dl, byte [ebp + edx - 0x148]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
mov edx, dword [ebp - 0x10]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x18]
add ebx, edx
mov dl, byte [ebp + edi - 0x148]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x148]
mov bl, byte [ebp - 0x24]
xor dl, bl
test esi, esi
mov byte [ebp - 0x20], dl
jbe 0x40bdd4
movsx dx, dl
mov word [ebp + esi*2 - 0x186], dx
mov edx, dword [ebp - 0x24]
inc esi
and edx, 0xff
lea edi, [ebp + edx - 0x148]
mov dl, byte [ebp + edx - 0x148]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0xc]
mov bl, byte [edx]
add al, bl
mov bl, byte [ebp - 0x14]
mov byte [ebp - 0x28], al
inc bl
mov eax, dword [ebp - 0x28]
mov byte [ebp - 0x14], bl
and eax, 0xff
mov dl, byte [ebp + eax - 0x148]
lea eax, [ebp + eax - 0x148]
mov byte [edi], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
lea edx, [ebp + edx - 0x148]
mov byte [eax], bl
mov ebx, dword [ebp - 0x14]
and ebx, 0xff
mov dword [ebp - 4], edx
test esi, esi
lea ebx, [ebp + ebx - 0x148]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
jbe 0x40bed6
mov edx, dword [ebp - 8]
mov al, byte [eax]
and edx, 0xff
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x30]
mov bl, byte [edx + esi*2 + 1]
mov dl, byte [edx + esi*2]
add dl, 7
sub bl, 0x50
shl dl, 4
or bl, dl
mov edx, dword [ebp - 0x18]
mov dl, byte [ebp + edx - 0x148]
add dl, cl
and edx, 0xff
mov cl, byte [ebp + edx - 0x148]
mov dl, byte [edi]
add ecx, edx
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 0x18]
mov dl, byte [edx]
add eax, edi
add ecx, edx
xor edx, edx
and ecx, 0xff
and eax, 0xff
mov dl, byte [ebp + ecx - 0x148]
mov cl, byte [ebp + edx - 0x148]
xor bl, cl
mov cl, byte [ebp + eax - 0x148]
xor bl, cl
movsx cx, bl
mov word [ebp + esi*2 - 0x186], cx
mov ebx, dword [ebp - 0x14c]
mov word [ebp - 0x14e], 0
lea edx, [ebp - 0x184]
lea eax, [ebp - 0x658]
push edx
push eax
call fcn.00830459
fld qword [0x882578]
fld qword [0x882578]
add esp, 8
fld st(0)
fmul st(1)
fld st(0)
fmul qword [0x889650]
fsub st(1)
fxch st(1)
fmul qword [0x889648]
fadd qword [0x889640]
fdivp st(1)
faddp st(2)
fld st(1)
fcomp qword [0x889638]
fnstsw ax
test ah, 0x41
jne 0x40bf40
fld st(0)
fmul qword [0x889630]
fsubp st(2)
fadd qword [0x8894a0]
fcom qword [0x889628]
fnstsw ax
test ah, 1
jne 0x40bf07
fxch st(1)
fst qword [ebp - 0x40]
fxch st(1)
fstp st(0)
fcomp qword [0x882578]
fnstsw ax
test ah, 1
je 0x40bfd0
not dword [ebx - 0xe]
pushal
in al, dx
pop ecx
out dx, al
pop ecx
out dx, al
push edx
invalid
mov dword [ebp - 0x34], 0x40bf69
mov dword [ebp - 0x44], 0x40bfb1
xor eax, eax
mov byte [ebp + eax - 0x148], al
inc eax
cmp eax, 0x100
jb 0x40bfe0
fld qword [ebp - 0x40]
mov eax, 0xff
mov byte [ebp - 0x30], 0
mov esi, dword [ebp - 0x30]
xor edi, edi
mov dword [ebp - 0x10], eax
mov ebx, 1
mov dword [ebp - 0x3c], 0
cmp eax, ebx
jbe 0x40c01b
lea ebx, [ebx + ebx + 1]
cmp ebx, eax
jb 0x40c013
cmp edi, 3
ja case.default.0x40c020
jmp dword [edi*4 + 0x40cb08]
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x148]
jmp 0x40c09c
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x148]
shr eax, 8
jmp 0x40c09c
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x148]
shr eax, 0x10
jmp 0x40c09c
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x148]
shr eax, 0x18
jmp 0x40c09c
mov edx, dword [ebp - 0x44]
and esi, 0xff
mov cl, byte [ebp + esi - 0x148]
mov al, byte [edx + edi - 4]
add cl, al
inc edi
cmp edi, 0x1e
mov byte [ebp - 0x30], cl
jb 0x40c0af
xor edi, edi
add cl, 0x1e
mov byte [ebp - 0x30], cl
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x3c]
mov edx, esi
and edx, 0xff
and edx, ebx
inc eax
cmp eax, 0xb
mov dword [ebp - 0x3c], eax
jbe 0x40c0cf
mov eax, edx
xor edx, edx
div dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, edx
jb 0x40c01b
je 0x40c107
mov bl, byte [ebp + eax - 0x148]
lea edx, [ebp + edx - 0x148]
lea ecx, [ebp + eax - 0x148]
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 - 0x10]
dec eax
mov dword [ebp - 0x10], eax
jne 0x40c003
mov dl, byte [ebp - 0x141]
and esi, 0xff
mov byte [ebp - 0x2c], dl
mov bl, byte [ebp - 0x145]
mov al, byte [ebp + esi - 0x148]
mov esi, dword [ebp - 0x34]
mov byte [ebp - 0x24], al
mov cl, byte [ebp - 0x143]
mov dl, byte [esi]
mov al, byte [esi + 1]
add dl, 5
sub al, 0x51
shl dl, 4
or al, dl
mov byte [ebp - 0x20], al
mov eax, dword [ebp - 0x24]
and eax, 0xff
fstp st(0)
mov dl, byte [ebp + eax - 0x148]
lea esi, [ebp + eax - 0x148]
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x147]
mov eax, edx
and eax, 0xff
mov al, byte [ebp + eax - 0x148]
add al, bl
inc dl
mov byte [ebp - 0x1c], al
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea edi, [ebp + edx - 0x148]
mov dl, byte [ebp + edx - 0x148]
mov byte [esi], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
lea edx, [ebp + edx - 0x148]
mov byte [edi], bl
mov ebx, dword [ebp - 0xc]
and ebx, 0xff
mov dword [ebp - 8], edx
lea ebx, [ebp + ebx - 0x148]
mov dword [ebp - 0x18], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov ebx, dword [ebp - 0x18]
mov dl, byte [ebp - 4]
mov byte [ebx], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x148]
add cl, bl
mov ebx, dword [ebp - 8]
mov byte [ebp - 0x28], cl
mov edx, dword [ebp - 0x28]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x148]
add edx, ebx
mov bl, byte [esi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov esi, 1
mov bl, byte [ebp + edx - 0x148]
mov dl, byte [edi]
mov edi, dword [ebp - 0x10]
mov bl, byte [ebp + ebx - 0x148]
add edx, edi
and edx, 0xff
xor bl, byte [ebp + edx - 0x148]
mov dl, byte [ebp - 0x20]
mov byte [ebp - 0x24], dl
xor bl, dl
mov edx, dword [ebp - 0x34]
mov byte [ebp - 0x2c], bl
lea edi, [edx + 2]
mov dl, byte [edx + 3]
sub dl, 0x51
mov bl, byte [edi]
mov dword [ebp - 0x3c], 0xf
add bl, 5
shl bl, 4
or dl, bl
mov byte [ebp - 0x20], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
lea edi, [ebp + edx - 0x148]
mov dl, byte [ebp + edx - 0x148]
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x18]
mov bl, byte [edx]
mov dl, byte [ebp - 0xc]
add al, bl
inc dl
mov byte [ebp - 0x1c], al
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
lea edx, [ebp + edx - 0x148]
mov byte [edi], bl
mov ebx, dword [ebp - 0x2c]
and ebx, 0xff
mov dword [ebp - 0x14], edx
lea ebx, [ebp + ebx - 0x148]
mov dword [ebp - 8], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
and edx, 0xff
lea edx, [ebp + edx - 0x148]
mov dword [ebp - 0x18], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x18]
mov dl, byte [ebp - 4]
mov byte [ebx], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x148]
add cl, bl
mov ebx, dword [ebp - 8]
mov byte [ebp - 0x28], cl
mov edx, dword [ebp - 0x28]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x148]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
mov edx, dword [ebp - 0x14]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x10]
add ebx, edx
mov dl, byte [ebp + edi - 0x148]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x148]
mov bl, byte [ebp - 0x20]
mov byte [ebp - 0x24], bl
xor dl, bl
mov byte [ebp - 0x2c], dl
movsx dx, dl
mov word [ebp - 0x194], dx
mov edx, dword [ebp - 0x34]
lea edi, [edx + 2]
lea edx, [ebp - 0x194]
mov dword [ebp - 0x30], edx
jmp 0x40c375
mov edi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x30]
mov bl, byte [edi + 2]
add edi, 2
add edx, 2
mov dword [ebp - 0x30], edx
add bl, 5
mov dl, byte [edi + 1]
mov dword [ebp - 0x44], edi
sub dl, 0x51
inc esi
shl bl, 4
or dl, bl
mov byte [ebp - 0x20], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
lea edi, [ebp + edx - 0x148]
mov dl, byte [ebp + edx - 0x148]
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x18]
mov bl, byte [edx]
mov dl, byte [ebp - 0xc]
add al, bl
inc dl
mov byte [ebp - 0x1c], al
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
lea edx, [ebp + edx - 0x148]
mov byte [edi], bl
mov ebx, dword [ebp - 0x2c]
and ebx, 0xff
mov dword [ebp - 0x14], edx
lea ebx, [ebp + ebx - 0x148]
mov dword [ebp - 8], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
and edx, 0xff
lea edx, [ebp + edx - 0x148]
mov dword [ebp - 0x18], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x18]
mov dl, byte [ebp - 4]
mov byte [ebx], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x148]
add cl, bl
mov ebx, dword [ebp - 8]
mov byte [ebp - 0x28], cl
mov edx, dword [ebp - 0x28]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x148]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
mov edx, dword [ebp - 0x14]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x10]
add ebx, edx
mov dl, byte [ebp + edi - 0x148]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x148]
mov bl, byte [ebp - 0x20]
mov byte [ebp - 0x24], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x2c], dl
jbe 0x40c495
mov edi, dword [ebp - 0x30]
movsx dx, dl
mov word [edi], dx
mov edx, dword [ebp - 0x3c]
dec edx
mov dword [ebp - 0x3c], edx
jne 0x40c372
mov edi, dword [ebp - 0x34]
inc esi
mov bl, byte [edi + esi*2]
mov dl, byte [edi + esi*2 + 1]
add bl, 5
sub dl, 0x51
shl bl, 4
or dl, bl
mov byte [ebp - 0x20], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
lea edi, [ebp + edx - 0x148]
mov dl, byte [ebp + edx - 0x148]
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
mov dl, byte [ebp - 0xc]
add al, bl
inc dl
mov byte [ebp - 0x1c], al
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
lea edx, [ebp + edx - 0x148]
mov byte [edi], bl
mov ebx, dword [ebp - 0x2c]
and ebx, 0xff
mov dword [ebp - 0x14], edx
lea ebx, [ebp + ebx - 0x148]
mov dword [ebp - 8], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
and edx, 0xff
lea edx, [ebp + edx - 0x148]
mov dword [ebp - 0x18], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x18]
mov dl, byte [ebp - 4]
mov byte [ebx], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x148]
add cl, bl
mov ebx, dword [ebp - 8]
mov byte [ebp - 0x28], cl
mov edx, dword [ebp - 0x28]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x148]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
mov edx, dword [ebp - 0x14]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x10]
add ebx, edx
mov dl, byte [ebp + edi - 0x148]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x148]
mov bl, byte [ebp - 0x20]
mov byte [ebp - 0x24], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x2c], dl
jbe 0x40c5c4
movsx dx, dl
mov word [ebp + esi*2 - 0x196], dx
mov edi, dword [ebp - 0x34]
inc esi
mov bl, byte [edi + esi*2]
mov dl, byte [edi + esi*2 + 1]
add bl, 5
sub dl, 0x51
shl bl, 4
or dl, bl
mov byte [ebp - 0x20], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
lea edi, [ebp + edx - 0x148]
mov dl, byte [ebp + edx - 0x148]
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x18]
mov bl, byte [edx]
mov dl, byte [ebp - 0xc]
add al, bl
inc dl
mov byte [ebp - 0x1c], al
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
lea edx, [ebp + edx - 0x148]
mov byte [edi], bl
mov ebx, dword [ebp - 0x2c]
and ebx, 0xff
mov dword [ebp - 0x14], edx
lea ebx, [ebp + ebx - 0x148]
mov dword [ebp - 8], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
and edx, 0xff
lea edx, [ebp + edx - 0x148]
mov dword [ebp - 0x18], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x18]
mov dl, byte [ebp - 4]
mov byte [ebx], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x148]
add cl, bl
mov ebx, dword [ebp - 8]
mov byte [ebp - 0x28], cl
mov edx, dword [ebp - 0x28]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x148]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
mov edx, dword [ebp - 0x14]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x10]
add ebx, edx
mov dl, byte [ebp + edi - 0x148]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x148]
mov bl, byte [ebp - 0x20]
mov byte [ebp - 0x24], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x2c], dl
jbe 0x40c6db
movsx dx, dl
mov word [ebp + esi*2 - 0x196], dx
mov edx, dword [ebp - 0x34]
inc esi
mov bl, byte [edx + esi*2]
lea edi, [edx + esi*2]
add bl, 5
mov dl, byte [edi + 1]
sub dl, 0x51
shl bl, 4
or dl, bl
mov byte [ebp - 0x20], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
lea edi, [ebp + edx - 0x148]
mov dl, byte [ebp + edx - 0x148]
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x18]
mov bl, byte [edx]
mov dl, byte [ebp - 0xc]
add al, bl
inc dl
mov byte [ebp - 0x1c], al
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
lea edx, [ebp + edx - 0x148]
mov byte [edi], bl
mov ebx, dword [ebp - 0x2c]
and ebx, 0xff
mov dword [ebp - 0x14], edx
lea ebx, [ebp + ebx - 0x148]
mov dword [ebp - 8], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
and edx, 0xff
lea edx, [ebp + edx - 0x148]
mov dword [ebp - 0x18], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x18]
mov dl, byte [ebp - 4]
mov byte [ebx], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x148]
add cl, bl
mov ebx, dword [ebp - 8]
mov byte [ebp - 0x28], cl
mov edx, dword [ebp - 0x28]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x148]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
mov edx, dword [ebp - 0x14]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x10]
add ebx, edx
mov dl, byte [ebp + edi - 0x148]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x148]
mov bl, byte [ebp - 0x20]
mov byte [ebp - 0x24], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x2c], dl
jbe 0x40c7f4
movsx dx, dl
mov word [ebp + esi*2 - 0x196], dx
lea ebx, [esi + 1]
cmp ebx, 0x24
jge 0x40c94b
mov edx, dword [ebp - 0x34]
lea edi, [edx + esi*2]
lea edx, [ebp + esi*2 - 0x196]
mov dword [ebp - 0x30], edx
mov edx, 0x24
sub edx, ebx
mov dword [ebp - 0x3c], edx
jmp 0x40c81f
mov edi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x30]
mov bl, byte [edi + 3]
add edx, 2
add edi, 2
mov dword [ebp - 0x30], edx
sub bl, 0x51
mov dl, byte [edi]
mov dword [ebp - 0x44], edi
add dl, 5
inc esi
shl dl, 4
or dl, bl
mov byte [ebp - 0x20], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
lea edi, [ebp + edx - 0x148]
mov dl, byte [ebp + edx - 0x148]
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x18]
mov bl, byte [edx]
mov dl, byte [ebp - 0xc]
add al, bl
inc dl
mov byte [ebp - 0x1c], al
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
lea edx, [ebp + edx - 0x148]
mov byte [edi], bl
mov ebx, dword [ebp - 0x2c]
and ebx, 0xff
mov dword [ebp - 0x14], edx
lea ebx, [ebp + ebx - 0x148]
mov dword [ebp - 8], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
and edx, 0xff
lea edx, [ebp + edx - 0x148]
mov dword [ebp - 0x18], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x18]
mov dl, byte [ebp - 4]
mov byte [ebx], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x148]
add cl, bl
mov ebx, dword [ebp - 8]
mov byte [ebp - 0x28], cl
mov edx, dword [ebp - 0x28]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x148]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
mov edx, dword [ebp - 0x14]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x10]
add ebx, edx
mov dl, byte [ebp + edi - 0x148]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x148]
mov bl, byte [ebp - 0x20]
mov byte [ebp - 0x24], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x2c], dl
jbe 0x40c93e
mov edi, dword [ebp - 0x30]
movsx dx, dl
mov word [edi], dx
mov edx, dword [ebp - 0x3c]
dec edx
mov dword [ebp - 0x3c], edx
jne 0x40c81c
mov edx, dword [ebp - 0x20]
inc esi
and edx, 0xff
lea edi, [ebp + edx - 0x148]
mov dl, byte [ebp + edx - 0x148]
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
add al, bl
mov bl, byte [ebp - 0xc]
mov byte [ebp - 0x1c], al
inc bl
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 0xc], bl
and eax, 0xff
mov dl, byte [ebp + eax - 0x148]
lea eax, [ebp + eax - 0x148]
mov byte [edi], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
mov bl, byte [ebp + edx - 0x148]
lea edx, [ebp + edx - 0x148]
mov byte [eax], bl
mov ebx, dword [ebp - 0xc]
and ebx, 0xff
mov dword [ebp - 8], edx
test esi, esi
lea ebx, [ebp + ebx - 0x148]
mov dword [ebp - 0x18], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov ebx, dword [ebp - 0x18]
mov dl, byte [ebp - 4]
mov byte [ebx], dl
jbe 0x40ca58
mov edx, dword [ebp - 4]
mov al, byte [eax]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x34]
mov bl, byte [edx + esi*2 + 1]
mov dl, byte [edx + esi*2]
add dl, 5
sub bl, 0x51
shl dl, 4
or bl, dl
mov edx, dword [ebp - 0x10]
mov dl, byte [ebp + edx - 0x148]
add dl, cl
and edx, 0xff
mov cl, byte [ebp + edx - 0x148]
mov dl, byte [edi]
add ecx, edx
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov dl, byte [edx]
add eax, edi
add ecx, edx
xor edx, edx
and ecx, 0xff
and eax, 0xff
mov dl, byte [ebp + ecx - 0x148]
mov cl, byte [ebp + edx - 0x148]
xor bl, cl
mov cl, byte [ebp + eax - 0x148]
xor bl, cl
movsx cx, bl
mov word [ebp + esi*2 - 0x196], cx
mov ebx, dword [ebp - 0x14c]
mov word [ebp - 0x14e], 0
lea edx, [ebp - 0x194]
lea eax, [ebp - 0x858]
push edx
push eax
call fcn.00830459
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x458]
push ecx
push 2
push 0
push edx
lea eax, [ebp - 0x658]
push 0x100
push eax
push reloc.WS2_32.dll_bind
call fcn.0040ab60
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x458]
push ecx
push 1
push 0
push edx
lea eax, [ebp - 0x858]
push 0x100
push eax
push reloc.WS2_32.dll_bind
call fcn.0040ab60
mov ecx, dword [ebp - 0x198]
add esp, 0x40
test ecx, ecx
jle 0x40cae7
lea eax, [ebp - 0x1b8]
cmp dword [eax], 0
je 0x40cae1
mov ebx, 1
add eax, 4
dec ecx
jne 0x40cad7
mov eax, ebx
pop edi
neg eax
sbb eax, eax
pop esi
and eax, 0x10
pop ebx
mov esp, ebp
pop ebp
ret