Function at 0x40cbf0
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 - 0x38], 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 [0x8de8f8]
push 0x150404
mov dword [ebp - 0x30], eax
call fcn.00848368
mov esi, eax
mov ecx, 0x54101
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [0x8de8e8]
add esp, 4
test eax, eax
mov dword [ebp - 0x54], esi
je 0x40d7fd
mov eax, dword [0x8de8d8]
test eax, eax
je 0x40d7fd
push esi
call fcn.00406d40
mov eax, dword [ebp - 0x30]
add esp, 4
test eax, eax
je 0x40d7df
fld qword [0x89a578]
fld qword [0x89a578]
fld st(0)
fmul st(1)
fld st(0)
fmul qword [0x8a1660]
fsub st(1)
fxch st(1)
fmul qword [0x8a1658]
fadd qword [0x8a1650]
fdivp st(1)
faddp st(2)
fld st(1)
fcomp qword [0x8a1648]
fnstsw ax
test ah, 0x41
jne 0x40ccb2
fld st(0)
fmul qword [0x8a1640]
fsubp st(2)
fadd qword [0x89a548]
fcom qword [0x8a1638]
fnstsw ax
test ah, 1
jne 0x40cc79
fxch st(1)
fst qword [ebp - 0x48]
fxch st(1)
fstp st(0)
fcomp qword [0x89a578]
fnstsw ax
test ah, 1
je 0x40cd12
imul esi, dword [ebx], 0x3c592a5a
xor dword [ebx + 0x31], eax
sub edi, dword ds:[esi + 0x6c]
jp 0x40cd43
push 0xffffffffffffffee
out dx, eax
aaa
in eax, 0x31
ljmp 0xe634
mov dword [ebp - 0x3c], 0x40cceb
mov dword [ebp - 0x30], 0x40ccdb
xor eax, eax
mov byte [ebp + eax - 0x178], al
inc eax
cmp eax, 0x100
jb 0x40cd22
fld qword [ebp - 0x48]
mov byte [ebp - 4], 0
mov eax, 0xff
mov edi, dword [ebp - 4]
xor esi, esi
mov dword [ebp - 0x14], eax
inc ebp
in al, dx
mov ebx, 1
mov dword [ebp - 0x1c], 0
cmp eax, ebx
jbe 0x40cd5d
lea ebx, [ebx + ebx + 1]
cmp ebx, eax
jb 0x40cd55
cmp esi, 3
ja case.default.0x40cd62
jmp dword [esi*4 + 0x40d808]
fld st(0)
and edi, 0xff
call fcn.00848444
mov cl, byte [ebp + edi - 0x178]
jmp 0x40cdde
fld st(0)
and edi, 0xff
call fcn.00848444
mov cl, byte [ebp + edi - 0x178]
shr eax, 8
jmp 0x40cdde
fld st(0)
and edi, 0xff
call fcn.00848444
mov cl, byte [ebp + edi - 0x178]
shr eax, 0x10
jmp 0x40cdde
fld st(0)
and edi, 0xff
call fcn.00848444
mov cl, byte [ebp + edi - 0x178]
shr eax, 0x18
jmp 0x40cdde
mov ecx, dword [ebp - 0x30]
and edi, 0xff
mov cl, byte [ecx + esi - 4]
mov al, byte [ebp + edi - 0x178]
add cl, al
inc esi
cmp esi, 0x14
mov byte [ebp - 4], cl
jb 0x40cdf1
xor esi, esi
add cl, 0x14
mov byte [ebp - 4], cl
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
mov edx, edi
and edx, 0xff
and edx, ebx
inc eax
cmp eax, 0xb
mov dword [ebp - 0x1c], eax
jbe 0x40ce11
mov eax, edx
xor edx, edx
div dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, edx
jb 0x40cd5d
je 0x40ce49
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 0x40cd45
mov dl, byte [ebp - 0x171]
mov esi, dword [ebp - 0x3c]
and edi, 0xff
mov byte [ebp - 0x24], dl
mov dl, byte [esi]
mov bl, byte [ebp - 0x175]
mov al, byte [ebp + edi - 0x178]
mov cl, byte [ebp - 0x173]
mov byte [ebp - 0x34], al
mov al, byte [esi + 1]
sub al, 0x2d
shl dl, 4
or al, dl
mov byte [ebp - 0x2c], al
mov eax, dword [ebp - 0x34]
and eax, 0xff
fstp st(0)
mov dl, byte [ebp + eax - 0x178]
lea edi, [ebp + eax - 0x178]
mov byte [ebp - 0x10], 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 - 0x28], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x28]
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 - 0x20], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
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 - 0x10]
mov byte [ebx], dl
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov dword [ebp - 4], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 0xc]
mov byte [ebp - 0x14], cl
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov dl, byte [ebp + edx - 0x178]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
mov edi, dword [ebp - 4]
and edx, 0xff
xor ebx, ebx
mov bl, byte [ebp + edx - 0x178]
mov edx, dword [ebp - 0x20]
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 - 0x2c]
mov byte [ebp - 0x34], dl
xor bl, dl
mov dl, byte [esi + 3]
mov byte [ebp - 0x24], bl
mov bl, byte [esi + 2]
sub dl, 0x2d
shl bl, 4
or dl, bl
add esi, 4
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x34]
and edx, 0xff
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 0x10], dl
mov edx, dword [ebp - 0x18]
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x28]
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 - 0x20], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
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 - 0x10]
mov byte [ebx], dl
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov dword [ebp - 4], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [edi]
mov edi, dword [ebp - 0xc]
mov byte [ebp - 0x14], cl
mov edx, dword [ebp - 0x14]
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 - 0x20]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 4]
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 - 0x2c]
mov byte [ebp - 0x34], bl
xor dl, bl
mov byte [ebp - 0x24], dl
movsx dx, dl
mov word [ebp - 0x78], dx
mov dl, byte [esi + 1]
mov bl, byte [esi]
sub dl, 0x2d
shl bl, 4
or dl, bl
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x34]
and edx, 0xff
lea esi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 0x10], dl
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x30], 6
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [esi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
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 - 0x10]
mov byte [ebx], dl
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov dword [ebp - 4], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [esi]
mov esi, dword [ebp - 0xc]
mov byte [ebp - 0x14], cl
mov edx, dword [ebp - 0x14]
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 - 0x20]
mov esi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 4]
add ebx, edx
mov dl, byte [ebp + esi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 0x2c]
mov byte [ebp - 0x34], bl
xor dl, bl
mov byte [ebp - 0x24], dl
movsx dx, dl
mov word [ebp - 0x76], dx
mov edx, dword [ebp - 0x3c]
lea esi, [edx + 4]
lea edx, [ebp - 0x76]
mov dword [ebp - 0x1c], edx
jmp 0x40d1b3
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x1c]
mov bl, byte [esi + 2]
add edx, 2
add esi, 2
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x44], esi
mov dl, byte [esi + 1]
inc edi
sub dl, 0x2d
shl bl, 4
or dl, bl
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x34]
and edx, 0xff
lea esi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 0x10], dl
mov edx, dword [ebp - 0x18]
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [esi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
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 - 0x10]
mov byte [ebx], dl
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov dword [ebp - 4], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [esi]
mov esi, dword [ebp - 0xc]
mov byte [ebp - 0x14], cl
mov edx, dword [ebp - 0x14]
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 - 0x20]
mov esi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 4]
add ebx, edx
mov dl, byte [ebp + esi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 0x2c]
mov byte [ebp - 0x34], bl
xor dl, bl
test edi, edi
mov byte [ebp - 0x24], dl
jbe 0x40d2d0
mov esi, dword [ebp - 0x1c]
movsx dx, dl
mov word [esi], dx
mov edx, dword [ebp - 0x30]
dec edx
mov dword [ebp - 0x30], edx
jne 0x40d1b0
mov edx, dword [ebp - 0x3c]
inc edi
mov bl, byte [edx + edi*2]
lea esi, [edx + edi*2]
mov dl, byte [edx + edi*2 + 1]
sub dl, 0x2d
shl bl, 4
or dl, bl
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x34]
and edx, 0xff
lea esi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 0x10], 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 - 0x28], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [esi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
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 - 0x10]
mov byte [ebx], dl
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov dword [ebp - 4], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [esi]
mov esi, dword [ebp - 0xc]
mov byte [ebp - 0x14], cl
mov edx, dword [ebp - 0x14]
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 - 0x20]
mov esi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 4]
add ebx, edx
mov dl, byte [ebp + esi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 0x2c]
mov byte [ebp - 0x34], bl
xor dl, bl
test edi, edi
mov byte [ebp - 0x24], dl
jbe 0x40d3fc
movsx dx, dl
mov word [ebp + edi*2 - 0x7a], dx
lea ebx, [edi + 1]
cmp ebx, 0x11
jge 0x40d54e
mov edx, dword [ebp - 0x3c]
lea esi, [edx + edi*2]
lea edx, [ebp + edi*2 - 0x7a]
mov dword [ebp - 0x1c], edx
mov edx, 0x11
sub edx, ebx
mov dword [ebp - 0x30], edx
jmp 0x40d424
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x1c]
mov bl, byte [esi + 2]
add edx, 2
add esi, 2
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x44], esi
mov dl, byte [esi + 1]
inc edi
sub dl, 0x2d
shl bl, 4
or dl, bl
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x34]
and edx, 0xff
lea esi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 0x10], dl
mov edx, dword [ebp - 0x18]
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x28], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
lea edx, [ebp + edx - 0x178]
mov byte [esi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
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 - 0x10]
mov byte [ebx], dl
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov dword [ebp - 4], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov bl, byte [esi]
mov esi, dword [ebp - 0xc]
mov byte [ebp - 0x14], cl
mov edx, dword [ebp - 0x14]
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 - 0x20]
mov esi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 4]
add ebx, edx
mov dl, byte [ebp + esi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 0x2c]
mov byte [ebp - 0x34], bl
xor dl, bl
test edi, edi
mov byte [ebp - 0x24], dl
jbe 0x40d541
mov esi, dword [ebp - 0x1c]
movsx dx, dl
mov word [esi], dx
mov edx, dword [ebp - 0x30]
dec edx
mov dword [ebp - 0x30], edx
jne 0x40d421
mov ebx, dword [ebp - 0x3c]
inc edi
xor edx, edx
lea esi, [edi + edi]
mov dword [ebp - 0x44], esi
mov dl, byte [esi + ebx]
mov esi, dword [ebp - 0x2c]
and esi, 0xff
mov bl, byte [ebp + esi - 0x178]
lea esi, [ebp + esi - 0x178]
mov byte [ebp - 0x10], bl
mov ebx, dword [ebp - 8]
and ebx, 0xff
add al, byte [ebp + ebx - 0x178]
mov byte [ebp - 0x28], al
mov al, byte [ebp - 8]
inc al
mov byte [ebp - 8], al
mov eax, dword [ebp - 0x28]
and eax, 0xff
mov bl, byte [ebp + eax - 0x178]
lea eax, [ebp + eax - 0x178]
mov byte [esi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0x20], eax
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [eax], bl
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
and eax, 0xff
test edi, edi
lea eax, [ebp + eax - 0x178]
mov dword [ebp - 0x18], eax
mov al, byte [eax]
mov byte [ebx], al
mov ebx, dword [ebp - 0x18]
mov al, byte [ebp - 0x10]
mov byte [ebx], al
jbe 0x40d65a
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x44]
mov edi, dword [ebp - 0x10]
mov bl, byte [ebx + eax + 1]
and edi, 0xff
sub bl, 0x2d
shl dl, 4
or bl, dl
mov dl, byte [ebp + edi - 0x178]
add dl, cl
and edx, 0xff
mov cl, byte [ebp + edx - 0x178]
mov dl, byte [esi]
add ecx, edx
mov edx, dword [ebp - 0xc]
mov dl, byte [edx]
add ecx, edx
xor edx, edx
and ecx, 0xff
mov dl, byte [ebp + ecx - 0x178]
mov cl, byte [ebp + edx - 0x178]
xor bl, cl
mov ecx, dword [ebp - 0x20]
mov dl, byte [ecx]
add edx, edi
and edx, 0xff
xor bl, byte [ebp + edx - 0x178]
movsx cx, bl
mov word [ebp + eax - 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.0040d820
add esp, 0xc
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x44], eax
push ecx
push 0
push 0
push ebx
call dword [0x8de8e8]
test eax, eax
je 0x40d7c6
mov eax, dword [ebp - 0x38]
mov edi, eax
mov esi, eax
add eax, 8
push eax
shr esi, 2
call fcn.00848368
add esp, 4
lea edx, [ebp - 0x38]
mov dword [ebp - 0x14], eax
push edx
push edi
push eax
push ebx
call dword [0x8de8e8]
test eax, eax
je 0x40d7b7
test esi, esi
jbe 0x40d7b7
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x380]
push 0x104
push ecx
mov eax, dword [edx]
push eax
call dword [0x8de8d8]
test eax, eax
je 0x40d7a1
lea ecx, [ebp - 0x380]
push ecx
call fcn.008482e0
mov esi, eax
push esi
call fcn.00402ee0
push 0x5c
push esi
call fcn.00848a30
add esp, 0x10
test eax, eax
je 0x40d7a1
inc eax
push eax
call fcn.00402f40
mov edx, dword [ebp - 0x54]
add esp, 4
mov dword [ebp - 0x4c], eax
mov ecx, dword [edx + 0x150400]
test ecx, ecx
jle 0x40d7a1
lea eax, [edx + 0x2a04]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [eax]
test ecx, ecx
jle 0x40d793
lea edi, [eax - 0x2a04]
mov dword [ebp - 0x30], ecx
mov esi, dword [ebp - 0x4c]
mov ecx, edi
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x40d773
test dl, dl
je 0x40d76f
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x40d773
add ecx, 2
add esi, 2
test dl, dl
jne 0x40d74f
xor ecx, ecx
jmp 0x40d778
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x40d787
mov edx, dword [eax - 4]
mov ecx, dword [ebp - 0x50]
or ecx, edx
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x30]
add edi, 0x2a
dec ecx
mov dword [ebp - 0x30], ecx
jne 0x40d74a
mov ecx, dword [ebp - 0x3c]
add eax, 0x2a08
dec ecx
mov dword [ebp - 0x3c], ecx
jne 0x40d73b
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
add ecx, 4
dec eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], eax
jne 0x40d6d1
mov eax, dword [ebp - 0x14]
push eax
call fcn.00848320
mov esi, dword [ebp - 0x54]
add esp, 4
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40d7df
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x78]
push 0
push ecx
push edx
call fcn.0040d820
add esp, 0xc
mov ecx, 0x54101
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
call fcn.00848320
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