Function at 0x40ceb0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x380
push ebx
push esi
xor eax, eax
push edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
lea eax, [ebp - 0x40]
push eax
push 0xf01ff
push ebx
mov dword [ebp - 0x4c], ebx
call dword [0x8cf8f8]
push 0x150404
mov dword [ebp - 0x28], eax
call fcn.00839718
mov esi, eax
mov ecx, 0x54101
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [0x8cf8e8]
add esp, 4
test eax, eax
mov dword [ebp - 0x50], esi
je 0x40dbff
mov eax, dword [0x8cf8d8]
test eax, eax
je 0x40dbff
push esi
call fcn.00406610
mov eax, dword [ebp - 0x28]
add esp, 4
test eax, eax
je 0x40dbe1
fld qword [0x88b578]
fld qword [0x88b578]
fld st(0)
fmul st(1)
fld st(0)
fmul qword [0x8926d8]
fsub st(1)
fxch st(1)
fmul qword [0x8926d0]
fadd qword [0x8926c8]
fdivp st(1)
faddp st(2)
fld st(1)
fcomp qword [0x8926c0]
fnstsw ax
test ah, 0x41
jne 0x40cf72
fld st(0)
fmul qword [0x8926b8]
fsubp st(2)
fadd qword [0x88b548]
fcom qword [0x8926b0]
fnstsw ax
test ah, 1
jne 0x40cf39
fxch st(1)
fst qword [ebp - 0x48]
fxch st(1)
fstp st(0)
fcomp qword [0x88b578]
fnstsw ax
test ah, 1
je 0x40cfd2
pop edi
xchg ebp, eax
pop ebp
cdq
invalid
mov dword [ebp - 0x38], 0x40cf9b
mov dword [ebp - 0x28], 0x40cfbd
xor eax, eax
mov byte [ebp + eax - 0x178], al
inc eax
cmp eax, 0x100
jb 0x40cfe2
fld qword [ebp - 0x48]
mov byte [ebp - 4], 0
mov eax, 0xff
mov esi, dword [ebp - 4]
xor edi, edi
mov dword [ebp - 0x14], eax
mov ebx, 1
mov dword [ebp - 0x30], 0
cmp eax, ebx
jbe 0x40d01d
lea ebx, [ebx + ebx + 1]
cmp ebx, eax
jb 0x40d015
cmp edi, 3
ja case.default.0x40d022
jmp dword [edi*4 + 0x40dc08]
fld st(0)
and esi, 0xff
call fcn.008397f4
mov cl, byte [ebp + esi - 0x178]
jmp 0x40d09e
fld st(0)
and esi, 0xff
call fcn.008397f4
mov cl, byte [ebp + esi - 0x178]
shr eax, 8
jmp 0x40d09e
fld st(0)
and esi, 0xff
call fcn.008397f4
mov cl, byte [ebp + esi - 0x178]
shr eax, 0x10
jmp 0x40d09e
fld st(0)
and esi, 0xff
call fcn.008397f4
mov cl, byte [ebp + esi - 0x178]
shr eax, 0x18
jmp 0x40d09e
mov ecx, dword [ebp - 0x28]
and esi, 0xff
mov cl, byte [ecx + edi - 4]
mov al, byte [ebp + esi - 0x178]
add cl, al
inc edi
cmp edi, 0x14
mov byte [ebp - 4], cl
jb 0x40d0b1
xor edi, edi
add cl, 0x14
mov byte [ebp - 4], cl
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x30]
mov edx, esi
and edx, 0xff
and edx, ebx
inc eax
cmp eax, 0xb
mov dword [ebp - 0x30], eax
jbe 0x40d0d1
mov eax, edx
xor edx, edx
div dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, edx
jb 0x40d01d
je 0x40d109
mov bl, byte [ebp + eax - 0x178]
lea edx, [ebp + edx - 0x178]
lea ecx, [ebp + eax - 0x178]
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 - 0x14]
dec eax
mov dword [ebp - 0x14], eax
jne 0x40d005
mov dl, byte [ebp - 0x171]
mov edi, dword [ebp - 0x38]
and esi, 0xff
mov byte [ebp - 0x20], dl
xor edx, edx
mov bl, byte [ebp - 0x175]
mov al, byte [ebp + esi - 0x178]
mov dl, byte [edi]
mov byte [ebp - 0x2c], al
mov eax, edx
xor edx, edx
sub eax, 0x58
mov dl, byte [edi + 1]
xor esi, esi
shl eax, 4
sub edx, 0x8b
mov cl, byte [ebp - 0x173]
or eax, edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
and eax, 0xff
fstp st(0)
mov dl, byte [ebp + eax - 0x178]
lea edi, [ebp + eax - 0x178]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x177]
mov eax, edx
and eax, 0xff
mov al, byte [ebp + eax - 0x178]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [edi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x14], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0x18], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x18]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 0x34], cl
mov edx, dword [ebp - 0x34]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x178]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
mov edi, dword [ebp - 0x1c]
and edx, 0xff
xor ebx, ebx
mov bl, byte [ebp + edx - 0x178]
mov edx, dword [ebp - 0x14]
mov dl, byte [edx]
mov bl, byte [ebp + ebx - 0x178]
add edx, edi
and edx, 0xff
xor bl, byte [ebp + edx - 0x178]
mov dl, byte [ebp - 0x28]
xor bl, dl
mov edi, dword [ebp - 0x38]
mov byte [ebp - 0x2c], dl
lea edx, [ebp - 0x78]
mov byte [ebp - 0x20], bl
sub edx, 2
mov dword [ebp - 0x28], 5
jmp 0x40d26a
mov edi, dword [ebp - 0x44]
mov bl, byte [edi + 3]
add edx, 2
add edi, 2
mov dword [ebp - 0x30], edx
add bl, 0x75
mov dword [ebp - 0x44], edi
mov dl, byte [edi]
inc esi
add dl, 8
shl dl, 4
or dl, bl
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x18]
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [edi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x14], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0x18], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x18]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 0x34], cl
mov edx, dword [ebp - 0x34]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x178]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
mov edx, dword [ebp - 0x14]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov dl, byte [ebp + edi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 4]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x20], dl
jbe 0x40d388
movsx di, dl
mov edx, dword [ebp - 0x30]
mov word [edx], di
jmp 0x40d38b
mov edx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x28]
dec edi
mov dword [ebp - 0x28], edi
jne 0x40d267
mov edi, dword [ebp - 0x38]
inc esi
mov bl, byte [edi + esi*2]
mov dl, byte [edi + esi*2 + 1]
add bl, 8
add dl, 0x75
shl bl, 4
or dl, bl
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [edi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x14], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0x18], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x18]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 0x34], cl
mov edx, dword [ebp - 0x34]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x178]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
mov edx, dword [ebp - 0x14]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov dl, byte [ebp + edi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 4]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x20], dl
jbe 0x40d4b7
movsx dx, dl
mov word [ebp + esi*2 - 0x7a], dx
mov edi, dword [ebp - 0x38]
inc esi
xor ebx, ebx
mov dl, byte [edi + esi*2]
mov bl, byte [edi + esi*2 + 1]
add dl, 8
sub ebx, 0x8b
shl dl, 4
or dl, bl
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x18]
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [edi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x14], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0x18], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x18]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 0x34], cl
mov edx, dword [ebp - 0x34]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x178]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
mov edx, dword [ebp - 0x14]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov dl, byte [ebp + edi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 4]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x20], dl
jbe 0x40d5d0
movsx dx, dl
mov word [ebp + esi*2 - 0x7a], dx
mov edx, dword [ebp - 0x38]
inc esi
xor ebx, ebx
mov bl, byte [edx + esi*2 + 1]
lea edi, [edx + esi*2]
xor edx, edx
sub ebx, 0x8b
mov dl, byte [edi]
add edx, 0xffffffa8
shl edx, 4
or dl, bl
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x18]
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [edi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x14], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0x18], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x18]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 0x34], cl
mov edx, dword [ebp - 0x34]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x178]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
mov edx, dword [ebp - 0x14]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov dl, byte [ebp + edi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 4]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x20], dl
jbe 0x40d6ed
movsx dx, dl
mov word [ebp + esi*2 - 0x7a], dx
lea ebx, [esi + 1]
cmp ebx, 0x10
jge 0x40d841
mov edx, dword [ebp - 0x38]
lea edi, [edx + esi*2]
lea edx, [ebp + esi*2 - 0x7a]
mov dword [ebp - 0x30], edx
mov edx, 0x10
sub edx, ebx
mov dword [ebp - 0x28], edx
jmp 0x40d715
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
add bl, 0x75
mov dl, byte [edi]
mov dword [ebp - 0x44], edi
add dl, 8
inc esi
shl dl, 4
or dl, bl
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x18]
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [edi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x14], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0x18], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x18]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 0x34], cl
mov edx, dword [ebp - 0x34]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x178]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
mov edx, dword [ebp - 0x14]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov dl, byte [ebp + edi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 4]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x20], dl
jbe 0x40d834
mov edi, dword [ebp - 0x30]
movsx dx, dl
mov word [edi], dx
mov edx, dword [ebp - 0x28]
dec edx
mov dword [ebp - 0x28], edx
jne 0x40d712
mov edi, dword [ebp - 0x38]
inc esi
mov bl, byte [edi + esi*2]
mov dl, byte [edi + esi*2 + 1]
add bl, 8
add dl, 0x75
shl bl, 4
or dl, bl
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [edi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x14], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0x18], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x18]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 0x34], cl
mov edx, dword [ebp - 0x34]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x178]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
mov edx, dword [ebp - 0x14]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov dl, byte [ebp + edi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 4]
xor dl, bl
test esi, esi
mov byte [ebp - 0x20], dl
jbe 0x40d95d
movsx dx, dl
mov word [ebp + esi*2 - 0x7a], dx
mov edx, dword [ebp - 4]
inc esi
and edx, 0xff
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x18]
mov bl, byte [edx]
add al, bl
mov bl, byte [ebp - 8]
mov byte [ebp - 0x24], al
inc bl
mov eax, dword [ebp - 0x24]
mov byte [ebp - 8], bl
and eax, 0xff
mov dl, byte [ebp + eax - 0x178]
lea eax, [ebp + eax - 0x178]
mov byte [edi], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [eax], bl
mov ebx, dword [ebp - 8]
and ebx, 0xff
mov dword [ebp - 0x10], edx
test esi, esi
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0x18], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov ebx, dword [ebp - 0x18]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
jbe 0x40da5c
mov edx, dword [ebp - 0xc]
mov al, byte [eax]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x38]
mov bl, byte [edx + esi*2 + 1]
mov dl, byte [edx + esi*2]
sub dl, 8
add bl, 0x75
shl dl, 4
or bl, dl
mov edx, dword [ebp - 0x1c]
mov dl, byte [ebp + edx - 0x178]
add dl, cl
and edx, 0xff
mov cl, byte [ebp + edx - 0x178]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx]
add ecx, edx
mov dl, byte [edi]
mov edi, dword [ebp - 0x1c]
add ecx, edx
and ecx, 0xff
xor edx, edx
add eax, edi
mov dl, byte [ebp + ecx - 0x178]
and eax, 0xff
mov cl, byte [ebp + edx - 0x178]
xor bl, cl
mov cl, byte [ebp + eax - 0x178]
xor bl, cl
movsx cx, bl
mov word [ebp + esi*2 - 0x7a], cx
mov ebx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
mov word [ebp - 0x58], 0
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x78]
push 1
push edx
push eax
call fcn.0040dc20
add esp, 0xc
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x44], eax
push ecx
push 0
push 0
push ebx
call dword [0x8cf8e8]
test eax, eax
je 0x40dbc8
mov eax, dword [ebp - 0x3c]
mov edi, eax
mov esi, eax
add eax, 8
push eax
shr esi, 2
call fcn.00839718
add esp, 4
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x14], eax
push edx
push edi
push eax
push ebx
call dword [0x8cf8e8]
test eax, eax
je 0x40dbb9
test esi, esi
jbe 0x40dbb9
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x380]
push 0x104
push ecx
mov eax, dword [edx]
push eax
call dword [0x8cf8d8]
test eax, eax
je 0x40dba3
lea ecx, [ebp - 0x380]
push ecx
call fcn.00839690
mov esi, eax
push esi
call fcn.00402a90
push 0x5c
push esi
call fcn.00839de0
add esp, 0x10
test eax, eax
je 0x40dba3
inc eax
push eax
call fcn.00402af0
mov edx, dword [ebp - 0x50]
add esp, 4
mov dword [ebp - 0x4c], eax
mov ecx, dword [edx + 0x150400]
test ecx, ecx
jle 0x40dba3
lea eax, [edx + 0x2a04]
mov dword [ebp - 0x38], ecx
mov ecx, dword [eax]
test ecx, ecx
jle 0x40db95
lea edi, [eax - 0x2a04]
mov dword [ebp - 0x28], ecx
mov esi, dword [ebp - 0x4c]
mov ecx, edi
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x40db75
test dl, dl
je 0x40db71
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x40db75
add ecx, 2
add esi, 2
test dl, dl
jne 0x40db51
xor ecx, ecx
jmp 0x40db7a
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x40db89
mov edx, dword [eax - 4]
mov ecx, dword [ebp - 0x54]
or ecx, edx
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x28]
add edi, 0x2a
dec ecx
mov dword [ebp - 0x28], ecx
jne 0x40db4c
mov ecx, dword [ebp - 0x38]
add eax, 0x2a08
dec ecx
mov dword [ebp - 0x38], ecx
jne 0x40db3d
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
add ecx, 4
dec eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], eax
jne 0x40dad3
mov eax, dword [ebp - 0x14]
push eax
call fcn.008396d0
mov esi, dword [ebp - 0x50]
add esp, 4
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40dbe1
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x78]
push 0
push ecx
push edx
call fcn.0040dc20
add esp, 0xc
mov ecx, 0x54101
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
call fcn.008396d0
mov eax, dword [ebp - 0x54]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret