Function at 0x40cb20
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 - 0x50], 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 [0x8c68f8]
push 0x150404
mov dword [ebp - 0x38], eax
call fcn.0082fdf8
mov esi, eax
mov ecx, 0x54101
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [0x8c68e8]
add esp, 4
test eax, eax
mov dword [ebp - 0x54], esi
je 0x40d979
mov eax, dword [0x8c68d8]
test eax, eax
je 0x40d979
push esi
call fcn.00406b20
mov eax, dword [ebp - 0x38]
add esp, 4
test eax, eax
je 0x40d95b
fld qword [0x882578]
fld qword [0x882578]
fld st(0)
fmul st(1)
fld st(0)
fmul qword [0x8896b0]
fsub st(1)
fxch st(1)
fmul qword [0x8896a8]
fadd qword [0x8896a0]
fdivp st(1)
faddp st(2)
fld st(1)
fcomp qword [0x889698]
fnstsw ax
test ah, 0x41
jne 0x40cbe2
fld st(0)
fmul qword [0x889690]
fsubp st(2)
fadd qword [0x882548]
fcom qword [0x889688]
fnstsw ax
test ah, 1
jne 0x40cba9
fxch st(1)
fst qword [ebp - 0x48]
fxch st(1)
fstp st(0)
fcomp qword [0x882578]
fnstsw ax
test ah, 1
je 0x40cc4d
cmp ecx, dword [esi + 0x47]
push eax
inc esi
dec esp
inc eax
dec edi
aas
inc esp
cmp al, 0x49
cmp eax, dword [edi + 0x3a]
dec esp
cmp cl, byte [ebx + 0x43]
dec ebx
cmp al, 0x45
cmp al, 0x50
aas
dec ebp
cmp dword [eax + 0x47], ecx
dec esi
aas
inc ebx
dec esp
push 0x7c
and al, 0x3d
dec edx
sub eax, 0x6a472f5a
dec eax
and edi, dword [esi + eax*2]
dec esp
dec ebp
dec ebp
jb 0x40ccab
pop esi
push esp
jo 0x40cc8f
pop ebx
aas
jmp 0x40d7e2
mov dword [ebp - 0x34], 0x40cc0b
mov dword [ebp - 0x38], 0x40cc2d
xor eax, eax
mov byte [ebp + eax - 0x178], al
inc eax
cmp eax, 0x100
jb 0x40cc5d
fld qword [ebp - 0x48]
mov byte [ebp - 0xc], 0
mov eax, 0xff
mov esi, dword [ebp - 0xc]
xor edi, edi
mov dword [ebp - 0x18], eax
mov ebx, 1
mov dword [ebp - 0x30], 0
cmp eax, ebx
jbe 0x40cc98
or byte [ebp + 0x3b011b5c], cl
fdiv dword [edx - 8]
lea ebx, [ebx + ebx + 1]
cmp ebx, eax
jb 0x40cc90
cmp edi, 3
ja case.default.0x40cc9d
jmp dword [edi*4 + 0x40d984]
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x178]
jmp 0x40cd19
add al, ch
and esi, dword [edx]
inc edx
add byte [edx - 0x177ca74], cl
invalid
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x178]
shr eax, 8
jmp 0x40cd19
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x178]
shr eax, 0x10
jmp 0x40cd19
fld st(0)
and esi, 0xff
call fcn.0082fed4
mov cl, byte [ebp + esi - 0x178]
shr eax, 0x18
jmp 0x40cd19
mov ecx, dword [ebp - 0x38]
and esi, 0xff
mov cl, byte [ecx + edi - 4]
mov al, byte [ebp + esi - 0x178]
add cl, al
inc edi
cmp edi, 0x1f
mov byte [ebp - 0xc], cl
jb 0x40cd2c
xor edi, edi
add cl, 0x1f
mov byte [ebp - 0xc], cl
mov esi, dword [ebp - 0xc]
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 0x40cd4c
mov eax, edx
xor edx, edx
div dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, edx
jb 0x40cc98
je 0x40cd84
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 - 0x18]
dec eax
mov dword [ebp - 0x18], eax
jne 0x40cc80
mov dl, byte [ebp - 0x171]
and esi, 0xff
mov byte [ebp - 0x24], dl
xor edx, edx
mov al, byte [ebp + esi - 0x178]
mov esi, dword [ebp - 0x34]
mov byte [ebp - 0x2c], al
xor eax, eax
mov dl, byte [esi]
mov al, byte [esi + 1]
add edx, 0xffffffc8
sub al, 0x41
shl dl, 4
or al, dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
mov byte [ebp - 0x28], al
mov bl, byte [ebp - 0x175]
mov cl, byte [ebp - 0x173]
mov al, byte [ebp + edx - 0x178]
lea esi, [ebp + edx - 0x178]
mov edx, dword [ebp - 0x177]
mov byte [ebp - 8], al
mov eax, edx
and eax, 0xff
fstp st(0)
mov al, byte [ebp + eax - 0x178]
add al, bl
inc dl
mov byte [ebp - 0x20], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [esi], 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 - 4]
and ebx, 0xff
mov dword [ebp - 0x10], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [esi]
mov esi, dword [ebp - 0x10]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
and edx, 0xff
mov dl, byte [ebp + edx - 0x178]
add edx, ebx
mov bl, byte [esi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov esi, 1
mov bl, byte [ebp + edx - 0x178]
mov dl, byte [edi]
mov edi, dword [ebp - 0x1c]
mov bl, byte [ebp + ebx - 0x178]
add edx, edi
and edx, 0xff
xor bl, byte [ebp + edx - 0x178]
mov dl, byte [ebp - 0x28]
mov byte [ebp - 0x2c], dl
xor bl, dl
mov edx, dword [ebp - 0x34]
mov byte [ebp - 0x24], bl
lea edi, [edx + 2]
mov dl, byte [edi]
mov bl, byte [edi + 1]
add dl, 8
sub bl, 0x41
shl dl, 4
or dl, bl
mov dword [ebp - 0x38], 5
mov byte [ebp - 0x28], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x20], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [edi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0xc], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 0x10]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
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 - 0xc]
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 - 0x28]
mov byte [ebp - 0x2c], bl
xor dl, bl
mov byte [ebp - 0x24], dl
movsx dx, dl
mov word [ebp - 0x78], dx
mov edx, dword [ebp - 0x34]
lea edi, [edx + 2]
lea edx, [ebp - 0x78]
mov dword [ebp - 0x30], edx
jmp 0x40cff1
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, 8
mov dl, byte [edi + 1]
mov dword [ebp - 0x44], edi
sub dl, 0x41
inc esi
shl bl, 4
or dl, bl
mov byte [ebp - 0x28], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x20], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [edi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0xc], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 0x10]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
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 - 0xc]
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 - 0x28]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x24], dl
jbe 0x40d111
mov edi, dword [ebp - 0x30]
movsx dx, dl
mov word [edi], dx
mov edx, dword [ebp - 0x38]
dec edx
mov dword [ebp - 0x38], edx
jne 0x40cfee
mov edi, dword [ebp - 0x34]
inc esi
mov bl, byte [edi + esi*2]
mov dl, byte [edi + esi*2 + 1]
add bl, 8
sub dl, 0x41
shl bl, 4
or dl, bl
mov byte [ebp - 0x28], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x20], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [edi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0xc], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 0x10]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
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 - 0xc]
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 - 0x28]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x24], dl
jbe 0x40d23d
movsx dx, dl
mov word [ebp + esi*2 - 0x7a], dx
mov edi, dword [ebp - 0x34]
inc esi
mov dl, byte [edi + esi*2]
mov bl, byte [edi + esi*2 + 1]
add dl, 8
sub bl, 0x41
shl dl, 4
or dl, bl
mov byte [ebp - 0x28], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x20], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [edi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0xc], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 0x10]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
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 - 0xc]
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 - 0x28]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x24], dl
jbe 0x40d351
movsx dx, dl
mov word [ebp + esi*2 - 0x7a], dx
mov edi, dword [ebp - 0x34]
inc esi
xor edx, edx
mov dl, byte [edi + esi*2]
mov bl, byte [edi + esi*2 + 1]
add dl, 8
sub bl, 0x41
shl dl, 4
or bl, dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
mov byte [ebp - 0x28], bl
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x20], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [edi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0xc], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 0x10]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
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 - 0xc]
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 - 0x28]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x24], dl
jbe 0x40d467
movsx dx, dl
mov word [ebp + esi*2 - 0x7a], dx
lea ebx, [esi + 1]
cmp ebx, 0x10
jge 0x40d5bb
mov edx, dword [ebp - 0x34]
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 - 0x38], edx
jmp 0x40d48f
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, 0x41
mov dl, byte [edi]
mov dword [ebp - 0x44], edi
add dl, 8
inc esi
shl dl, 4
or dl, bl
mov byte [ebp - 0x28], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x20], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [edi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0xc], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 0x10]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
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 - 0xc]
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 - 0x28]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x24], dl
jbe 0x40d5ae
mov edi, dword [ebp - 0x30]
movsx dx, dl
mov word [edi], dx
mov edx, dword [ebp - 0x38]
dec edx
mov dword [ebp - 0x38], edx
jne 0x40d48c
mov edi, dword [ebp - 0x34]
inc esi
mov bl, byte [edi + esi*2]
mov dl, byte [edi + esi*2 + 1]
add bl, 8
sub dl, 0x41
shl bl, 4
or dl, bl
mov byte [ebp - 0x28], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x20], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [edi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0xc], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 0x10]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
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 - 0xc]
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 - 0x28]
xor dl, bl
test esi, esi
mov byte [ebp - 0x24], dl
jbe 0x40d6d7
movsx dx, dl
mov word [ebp + esi*2 - 0x7a], dx
mov edx, dword [ebp - 0x28]
inc esi
and edx, 0xff
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
add al, bl
mov bl, byte [ebp - 4]
mov byte [ebp - 0x20], al
inc bl
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], bl
and eax, 0xff
mov dl, byte [ebp + eax - 0x178]
lea eax, [ebp + eax - 0x178]
mov byte [edi], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [eax], bl
mov ebx, dword [ebp - 4]
and ebx, 0xff
mov dword [ebp - 0x10], edx
test esi, esi
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
jbe 0x40d7d6
mov edx, dword [ebp - 8]
mov al, byte [eax]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x34]
mov bl, byte [edx + esi*2 + 1]
mov dl, byte [edx + esi*2]
sub dl, 8
sub bl, 0x41
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 dl, byte [edi]
add ecx, edx
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
mov dl, byte [edx]
add eax, edi
add ecx, edx
xor edx, edx
and ecx, 0xff
and eax, 0xff
mov dl, byte [ebp + ecx - 0x178]
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 - 0x54]
mov word [ebp - 0x58], 0
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x78]
push 1
push edx
push eax
call fcn.0040d9a0
add esp, 0xc
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x44], eax
push ecx
push 0
push 0
push ebx
call dword [0x8c68e8]
test eax, eax
je 0x40d942
mov eax, dword [ebp - 0x3c]
mov edi, eax
mov esi, eax
add eax, 8
push eax
shr esi, 2
call fcn.0082fdf8
add esp, 4
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x18], eax
push edx
push edi
push eax
push ebx
call dword [0x8c68e8]
test eax, eax
je 0x40d933
test esi, esi
jbe 0x40d933
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], 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 [0x8c68d8]
test eax, eax
je 0x40d91d
lea ecx, [ebp - 0x380]
push ecx
call fcn.0082fd70
mov esi, eax
push esi
call fcn.00402a90
push 0x5c
push esi
call fcn.008304c0
add esp, 0x10
test eax, eax
je 0x40d91d
inc eax
push eax
call fcn.00402af0
mov edx, dword [ebp - 0x54]
add esp, 4
mov dword [ebp - 0x4c], eax
mov ecx, dword [edx + 0x150400]
test ecx, ecx
jle 0x40d91d
lea eax, [edx + 0x2a04]
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax]
test ecx, ecx
jle 0x40d90f
lea edi, [eax - 0x2a04]
mov dword [ebp - 0x38], ecx
mov esi, dword [ebp - 0x4c]
mov ecx, edi
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x40d8ef
test dl, dl
je 0x40d8eb
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x40d8ef
add ecx, 2
add esi, 2
test dl, dl
jne 0x40d8cb
xor ecx, ecx
jmp 0x40d8f4
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x40d903
mov edx, dword [eax - 4]
mov ecx, dword [ebp - 0x50]
or ecx, edx
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x38]
add edi, 0x2a
dec ecx
mov dword [ebp - 0x38], ecx
jne 0x40d8c6
mov ecx, dword [ebp - 0x34]
add eax, 0x2a08
dec ecx
mov dword [ebp - 0x34], ecx
jne 0x40d8b7
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
add ecx, 4
dec eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0xc], eax
jne 0x40d84d
mov eax, dword [ebp - 0x18]
push eax
call fcn.0082fdb0
mov esi, dword [ebp - 0x54]
add esp, 4
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40d95b
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x78]
push 0
push ecx
push edx
call fcn.0040d9a0
add esp, 0xc
mov ecx, 0x54101
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
call fcn.0082fdb0
mov eax, dword [ebp - 0x50]
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