Function at 0x40d470
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 [0x8d38f8]
push 0x150404
mov dword [ebp - 0x34], eax
call fcn.0083dc08
mov esi, eax
mov ecx, 0x54101
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [0x8d38e8]
add esp, 4
test eax, eax
mov dword [ebp - 0x50], esi
je 0x40e2b0
mov eax, dword [0x8d38d8]
test eax, eax
je 0x40e2b0
push esi
call fcn.00406c10
mov eax, dword [ebp - 0x34]
add esp, 4
test eax, eax
je 0x40e292
fld qword [0x88f578]
fld qword [0x88f578]
fld st(0)
fmul st(1)
fld st(0)
fmul qword [0x896678]
fsub st(1)
fxch st(1)
fmul qword [0x896650]
fadd qword [0x8965b0]
fdivp st(1)
faddp st(2)
fld st(1)
fcomp qword [0x896670]
fnstsw ax
test ah, 0x41
jne 0x40d532
fld st(0)
fmul qword [0x896668]
fsubp st(2)
fadd qword [0x896438]
fcom qword [0x896660]
fnstsw ax
test ah, 1
jne 0x40d4f9
fxch st(1)
fst qword [ebp - 0x48]
fxch st(1)
fstp st(0)
fcomp qword [0x88f578]
fnstsw ax
test ah, 1
je 0x40d596
pop ebx
xchg esp, eax
xchg edx, eax
pop ebx
popfd
pushfd
arpl word [edi - 0x67a465a2], dx
pop ebx
xchg edi, eax
push 0x6a985f9a
xchg ecx, eax
pop esi
xchg edi, eax
push 0x6494619e
cdq
popal
xchg esi, eax
push 0x20354790
inc edx
inc edi
jl 0x40d5e4
and eax, 0x374b6666
cmp dh, byte [0x7a53235d]
dec ecx
jmp 0x40e119
mov dword [ebp - 0x38], 0x40d55b
mov dword [ebp - 0x34], 0x40d57d
xor eax, eax
mov byte [ebp + eax - 0x178], al
inc eax
cmp eax, 0x100
jb 0x40d5a6
fld qword [ebp - 0x48]
mov byte [ebp - 8], 0
mov eax, 0xff
mov esi, dword [ebp - 8]
xor edi, edi
mov dword [ebp - 0x18], eax
mov ebx, 1
mov dword [ebp - 0x30], 0
cmp eax, ebx
jbe 0x40d5e1
lea ebx, [ebx + ebx + 1]
cmp ebx, eax
jb 0x40d5d9
cmp edi, 3
ja case.default.0x40d5e6
jmp dword [edi*4 + 0x40e2bc]
fld st(0)
and esi, 0xff
call fcn.0083dce4
mov cl, byte [ebp + esi - 0x178]
jmp 0x40d662
fld st(0)
and esi, 0xff
call fcn.0083dce4
mov cl, byte [ebp + esi - 0x178]
shr eax, 8
jmp 0x40d662
fld st(0)
and esi, 0xff
call fcn.0083dce4
mov cl, byte [ebp + esi - 0x178]
shr eax, 0x10
jmp 0x40d662
fld st(0)
and esi, 0xff
call fcn.0083dce4
mov cl, byte [ebp + esi - 0x178]
shr eax, 0x18
jmp 0x40d662
mov ecx, dword [ebp - 0x34]
and esi, 0xff
mov cl, byte [ecx + edi - 4]
mov al, byte [ebp + esi - 0x178]
add cl, al
inc edi
cmp edi, 0x18
mov byte [ebp - 8], cl
jb 0x40d675
xor edi, edi
add cl, 0x18
mov byte [ebp - 8], cl
mov esi, dword [ebp - 8]
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 0x40d695
mov eax, edx
xor edx, edx
div dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, edx
jb 0x40d5e1
je 0x40d6cd
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 0x40d5c9
mov dl, byte [ebp - 0x171]
and esi, 0xff
mov byte [ebp - 0x20], dl
mov bl, byte [ebp - 0x175]
mov al, byte [ebp + esi - 0x178]
mov esi, dword [ebp - 0x38]
mov byte [ebp - 0x2c], al
mov cl, byte [ebp - 0x173]
mov al, byte [esi]
mov dl, byte [esi + 1]
add al, 5
add dl, 0x70
shl al, 4
or al, dl
mov byte [ebp - 0x28], al
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 - 4], 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 - 8], 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 - 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 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
mov edi, dword [ebp - 0x1c]
and edx, 0xff
xor ebx, ebx
mov bl, byte [ebp + edx - 0x178]
mov edx, dword [ebp - 8]
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]
mov byte [ebp - 0x2c], dl
xor bl, dl
mov dl, byte [esi + 3]
mov byte [ebp - 0x20], bl
add dl, 0x70
mov bl, byte [esi + 2]
add esi, 4
add bl, 5
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 - 0xc], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], 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 - 8], 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 - 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 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 - 8]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov dl, byte [ebp + edi - 0x178]
and ebx, 0xff
mov edi, 2
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 0x28]
mov byte [ebp - 0x2c], bl
xor dl, bl
mov byte [ebp - 0x20], dl
movsx dx, dl
mov word [ebp - 0x78], dx
mov dl, byte [esi]
mov bl, byte [esi + 1]
add dl, 5
shl dl, 4
add bl, 0x70
or dl, bl
mov byte [ebp - 0x28], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea esi, [ebp + edx - 0x178]
mov dword [ebp - 0x34], 5
mov dl, byte [esi]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [esi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 8], 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 - 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 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 bl, byte [ebp + edx - 0x178]
mov edx, dword [ebp - 8]
mov esi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov dl, byte [ebp + esi - 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 - 0x20], dl
movsx dx, dl
mov word [ebp - 0x76], dx
mov edx, dword [ebp - 0x38]
lea esi, [edx + 4]
lea edx, [ebp - 0x76]
mov dword [ebp - 0x30], edx
jmp 0x40da3b
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x30]
mov bl, byte [esi + 2]
add esi, 2
add edx, 2
mov dword [ebp - 0x30], edx
add bl, 5
mov dl, byte [esi + 1]
mov dword [ebp - 0x44], esi
add dl, 0x70
inc edi
shl bl, 4
or dl, bl
mov byte [ebp - 0x28], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea esi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [esi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 8], 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 - 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 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 bl, byte [ebp + edx - 0x178]
mov edx, dword [ebp - 8]
mov esi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov dl, byte [ebp + esi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 0x28]
mov byte [ebp - 0x2c], bl
xor dl, bl
test edi, edi
mov byte [ebp - 0x20], dl
jbe 0x40db5b
mov esi, dword [ebp - 0x30]
movsx dx, dl
mov word [esi], dx
mov edx, dword [ebp - 0x34]
dec edx
mov dword [ebp - 0x34], edx
jne 0x40da38
mov esi, dword [ebp - 0x38]
inc edi
mov dl, byte [esi + edi*2]
mov bl, byte [esi + edi*2 + 1]
add dl, 5
add bl, 0x70
shl dl, 4
or dl, bl
mov byte [ebp - 0x28], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea esi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 0xc], 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 - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [esi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 8], 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 - 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 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 bl, byte [ebp + edx - 0x178]
mov edx, dword [ebp - 8]
mov esi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov dl, byte [ebp + esi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 0x28]
mov byte [ebp - 0x2c], bl
xor dl, bl
test edi, edi
mov byte [ebp - 0x20], dl
jbe 0x40dc87
movsx dx, dl
mov word [ebp + edi*2 - 0x7a], dx
mov esi, dword [ebp - 0x38]
inc edi
mov dl, byte [esi + edi*2]
mov bl, byte [esi + edi*2 + 1]
add dl, 5
add bl, 0x70
shl dl, 4
or dl, bl
mov byte [ebp - 0x28], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea esi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [esi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 8], 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 - 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 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 bl, byte [ebp + edx - 0x178]
mov edx, dword [ebp - 8]
mov esi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov dl, byte [ebp + esi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 0x28]
mov byte [ebp - 0x2c], bl
xor dl, bl
test edi, edi
mov byte [ebp - 0x20], dl
jbe 0x40dd9b
movsx dx, dl
mov word [ebp + edi*2 - 0x7a], dx
mov edx, dword [ebp - 0x38]
inc edi
mov bl, byte [edx + edi*2 + 1]
lea esi, [edx + edi*2]
add bl, 0x70
mov dl, byte [esi]
add dl, 5
shl dl, 4
or dl, bl
mov byte [ebp - 0x28], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea esi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [esi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 8], 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 - 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 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 bl, byte [ebp + edx - 0x178]
mov edx, dword [ebp - 8]
mov esi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov dl, byte [ebp + esi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 0x28]
mov byte [ebp - 0x2c], bl
xor dl, bl
test edi, edi
mov byte [ebp - 0x20], dl
jbe 0x40deb1
movsx dx, dl
mov word [ebp + edi*2 - 0x7a], dx
lea ebx, [edi + 1]
cmp ebx, 0x11
jge 0x40e005
mov edx, dword [ebp - 0x38]
lea esi, [edx + edi*2]
lea edx, [ebp + edi*2 - 0x7a]
mov dword [ebp - 0x30], edx
mov edx, 0x11
sub edx, ebx
mov dword [ebp - 0x34], edx
jmp 0x40ded9
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x30]
mov bl, byte [esi + 3]
add edx, 2
add esi, 2
mov dword [ebp - 0x30], edx
add bl, 0x70
mov dl, byte [esi]
mov dword [ebp - 0x44], esi
add dl, 5
inc edi
shl dl, 4
or dl, bl
mov byte [ebp - 0x28], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea esi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [esi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 8], 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 - 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 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 bl, byte [ebp + edx - 0x178]
mov edx, dword [ebp - 8]
mov esi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov dl, byte [ebp + esi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 0x28]
mov byte [ebp - 0x2c], bl
xor dl, bl
test edi, edi
mov byte [ebp - 0x20], dl
jbe 0x40dff8
mov esi, dword [ebp - 0x30]
movsx dx, dl
mov word [esi], dx
mov edx, dword [ebp - 0x34]
dec edx
mov dword [ebp - 0x34], edx
jne 0x40ded6
mov edx, dword [ebp - 0x28]
inc edi
and edx, 0xff
lea esi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
add al, bl
mov bl, byte [ebp - 4]
mov byte [ebp - 0x24], al
inc bl
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], bl
and eax, 0xff
lea edx, [ebp + eax - 0x178]
mov al, byte [ebp + eax - 0x178]
mov byte [esi], al
mov eax, dword [ebp - 0x20]
and eax, 0xff
mov bl, byte [ebp + eax - 0x178]
lea eax, [ebp + eax - 0x178]
mov byte [edx], bl
mov ebx, dword [ebp - 4]
and ebx, 0xff
mov dword [ebp - 0x10], eax
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [eax], bl
mov ebx, dword [ebp - 0x14]
mov al, byte [ebp - 0xc]
mov byte [ebx], al
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x38]
and eax, 0xff
mov dword [ebp - 0x1c], eax
mov dl, byte [edx]
mov al, byte [ebx + edi*2]
mov bl, byte [ebx + edi*2 + 1]
add al, 5
add bl, 0x70
shl al, 4
or al, bl
mov ebx, dword [ebp - 0x1c]
mov bl, byte [ebp + ebx - 0x178]
add bl, cl
and ebx, 0xff
mov cl, byte [ebp + ebx - 0x178]
mov ebx, dword [ebp - 0x10]
mov bl, byte [ebx]
add ecx, ebx
mov bl, byte [esi]
mov esi, dword [ebp - 0x1c]
add ecx, ebx
and ecx, 0xff
xor ebx, ebx
add edx, esi
mov bl, byte [ebp + ecx - 0x178]
and edx, 0xff
mov cl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp + edx - 0x178]
xor al, cl
xor al, bl
test edi, edi
jbe 0x40e10d
movsx ax, al
mov word [ebp + edi*2 - 0x7a], ax
mov ebx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
mov word [ebp - 0x58], 0
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x78]
push 1
push ecx
push edx
call fcn.0040e2d0
add esp, 0xc
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push ebx
call dword [0x8d38e8]
test eax, eax
je 0x40e279
mov eax, dword [ebp - 0x3c]
mov edi, eax
mov esi, eax
add eax, 8
push eax
shr esi, 2
call fcn.0083dc08
add esp, 4
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x18], eax
push ecx
push edi
push eax
push ebx
call dword [0x8d38e8]
test eax, eax
je 0x40e26a
test esi, esi
jbe 0x40e26a
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], esi
mov dword [ebp - 0x30], edx
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x380]
push 0x104
push eax
mov edx, dword [ecx]
push edx
call dword [0x8d38d8]
test eax, eax
je 0x40e254
lea eax, [ebp - 0x380]
push eax
call fcn.0083db80
mov esi, eax
push esi
call fcn.00402cb0
push 0x5c
push esi
call fcn.0083e2d0
add esp, 0x10
test eax, eax
je 0x40e254
inc eax
push eax
call fcn.00402d10
mov edx, dword [ebp - 0x50]
add esp, 4
mov dword [ebp - 0x4c], eax
mov ecx, dword [edx + 0x150400]
test ecx, ecx
jle 0x40e254
lea eax, [edx + 0x2a04]
mov dword [ebp - 0x38], ecx
mov ecx, dword [eax]
test ecx, ecx
jle 0x40e246
lea edi, [eax - 0x2a04]
mov dword [ebp - 0x34], ecx
mov esi, dword [ebp - 0x4c]
mov ecx, edi
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x40e226
test dl, dl
je 0x40e222
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x40e226
add ecx, 2
add esi, 2
test dl, dl
jne 0x40e202
xor ecx, ecx
jmp 0x40e22b
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x40e23a
mov ecx, dword [eax - 4]
mov edx, dword [ebp - 0x54]
or edx, ecx
mov dword [ebp - 0x54], edx
mov ecx, dword [ebp - 0x34]
add edi, 0x2a
dec ecx
mov dword [ebp - 0x34], ecx
jne 0x40e1fd
mov ecx, dword [ebp - 0x38]
add eax, 0x2a08
dec ecx
mov dword [ebp - 0x38], ecx
jne 0x40e1ee
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 8]
add ecx, 4
dec eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 8], eax
jne 0x40e184
mov edx, dword [ebp - 0x18]
push edx
call fcn.0083dbc0
mov esi, dword [ebp - 0x50]
add esp, 4
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40e292
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x78]
push 0
push eax
push ecx
call fcn.0040e2d0
add esp, 0xc
mov ecx, 0x54101
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
call fcn.0083dbc0
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