Function at 0x40caa0
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 - 0x3c]
push eax
push 0xf01ff
push ebx
mov dword [ebp - 0x4c], ebx
call dword [0x8d78f8]
push 0x150404
mov dword [ebp - 0x34], eax
call fcn.00841608
mov esi, eax
mov ecx, 0x54101
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [0x8d78e8]
add esp, 4
test eax, eax
mov dword [ebp - 0x54], esi
je 0x40d6db
mov eax, dword [0x8d78d8]
test eax, eax
je 0x40d6db
push esi
call fcn.00406490
mov eax, dword [ebp - 0x34]
add esp, 4
test eax, eax
je 0x40d6bd
fld qword [0x893578]
fld qword [0x893578]
fld st(0)
fmul st(1)
fld st(0)
fmul qword [0x89a698]
fsub st(1)
fxch st(1)
fmul qword [0x89a690]
fadd qword [0x89a688]
fdivp st(1)
faddp st(2)
fld st(1)
fcomp qword [0x89a680]
fnstsw ax
test ah, 0x41
jne 0x40cb62
fld st(0)
fmul qword [0x89a678]
fsubp st(2)
fadd qword [0x89a488]
fcom qword [0x89a670]
fnstsw ax
test ah, 1
jne 0x40cb29
fxch st(1)
fst qword [ebp - 0x48]
fxch st(1)
fstp st(0)
fcomp qword [0x893578]
fnstsw ax
test ah, 1
je 0x40cbd0
pop esp
mov edx, 0xc35cb761
imul edi, dword [eax - 0x429e3aa1], 0x60
mov esp, 0xbe67c16b
ret
mov dword [ebp - 0x40], 0x40cb8b
mov dword [ebp - 0x34], 0x40cbad
xor eax, eax
mov byte [ebp + eax - 0x178], al
inc eax
cmp eax, 0x100
jb 0x40cbe0
fld qword [ebp - 0x48]
mov byte [ebp - 8], 0
mov eax, 0xff
mov esi, dword [ebp - 8]
xor edi, edi
mov dword [ebp - 0xc], eax
mov ebx, 1
mov dword [ebp - 0x28], 0
cmp eax, ebx
jbe 0x40cc1b
lea ebx, [ebx + ebx + 1]
cmp ebx, eax
jb 0x40cc13
cmp edi, 3
ja case.default.0x40cc20
jmp dword [edi*4 + 0x40d6e4]
fld st(0)
and esi, 0xff
call fcn.008416e4
mov cl, byte [ebp + esi - 0x178]
jmp 0x40cc9c
fld st(0)
and esi, 0xff
call fcn.008416e4
mov cl, byte [ebp + esi - 0x178]
shr eax, 8
jmp 0x40cc9c
fld st(0)
and esi, 0xff
call fcn.008416e4
mov cl, byte [ebp + esi - 0x178]
shr eax, 0x10
jmp 0x40cc9c
fld st(0)
and esi, 0xff
call fcn.008416e4
mov cl, byte [ebp + esi - 0x178]
shr eax, 0x18
jmp 0x40cc9c
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, 0x22
mov byte [ebp - 8], cl
jb 0x40ccaf
xor edi, edi
add cl, 0x22
mov byte [ebp - 8], cl
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x28]
mov edx, esi
and edx, 0xff
and edx, ebx
inc eax
cmp eax, 0xb
mov dword [ebp - 0x28], eax
jbe 0x40cccf
mov eax, edx
xor edx, edx
div dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, edx
jb 0x40cc1b
je 0x40cd07
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 - 0xc]
dec eax
mov dword [ebp - 0xc], eax
jne 0x40cc03
mov dl, byte [ebp - 0x171]
and esi, 0xff
mov byte [ebp - 0x24], dl
mov bl, byte [ebp - 0x175]
mov al, byte [ebp + esi - 0x178]
mov esi, dword [ebp - 0x40]
mov byte [ebp - 0x20], al
mov cl, byte [ebp - 0x173]
mov al, byte [esi]
mov dl, byte [esi + 1]
add al, 4
add dl, 0x49
shl al, 4
or al, dl
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x20]
and eax, 0xff
fstp st(0)
mov dl, byte [ebp + eax - 0x178]
lea edi, [ebp + eax - 0x178]
mov byte [ebp - 0x14], 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 - 0x30], al
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0x30]
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 - 0x18]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0x1c], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x1c]
mov dl, byte [ebp - 0x14]
mov byte [ebx], dl
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov dword [ebp - 8], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 0x2c], cl
mov edx, dword [ebp - 0x2c]
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 - 8]
and edx, 0xff
xor ebx, ebx
mov bl, byte [ebp + edx - 0x178]
mov edx, dword [ebp - 0xc]
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 - 1]
mov byte [ebp - 0x20], dl
xor bl, dl
mov dl, byte [esi + 2]
mov byte [ebp - 0x24], bl
add dl, 4
mov bl, byte [esi + 3]
add esi, 4
shl dl, 4
add bl, 0x49
or dl, bl
mov byte [ebp - 1], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
lea edi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 0x14], dl
mov edx, dword [ebp - 0x1c]
mov bl, byte [edx]
mov dl, byte [ebp - 0x18]
add al, bl
inc dl
mov byte [ebp - 0x30], al
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0x30]
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 - 0x18]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0x1c], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x1c]
mov dl, byte [ebp - 0x14]
mov byte [ebx], dl
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov dword [ebp - 8], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 0x2c], cl
mov edx, dword [ebp - 0x2c]
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 - 0xc]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 8]
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 - 1]
mov byte [ebp - 0x20], bl
xor dl, bl
mov byte [ebp - 0x24], dl
movsx dx, dl
mov word [ebp - 0x78], dx
mov bl, byte [esi]
mov dl, byte [esi + 1]
add bl, 4
add dl, 0x49
shl bl, 4
or dl, bl
mov byte [ebp - 1], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
lea esi, [ebp + edx - 0x178]
mov dword [ebp - 0x34], 6
mov dl, byte [esi]
mov byte [ebp - 0x14], dl
mov edx, dword [ebp - 0x1c]
mov bl, byte [edx]
mov dl, byte [ebp - 0x18]
add al, bl
inc dl
mov byte [ebp - 0x30], al
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0x30]
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 - 0xc], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0x1c], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x1c]
mov dl, byte [ebp - 0x14]
mov byte [ebx], dl
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov dword [ebp - 8], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 0x2c], cl
mov edx, dword [ebp - 0x2c]
mov bl, byte [ebx]
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 - 0xc]
mov esi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 8]
add ebx, edx
mov dl, byte [ebp + esi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 1]
mov byte [ebp - 0x20], bl
xor dl, bl
mov byte [ebp - 0x24], dl
movsx dx, dl
mov word [ebp - 0x76], dx
mov edx, dword [ebp - 0x40]
lea esi, [edx + 4]
lea edx, [ebp - 0x76]
mov dword [ebp - 0x28], edx
jmp 0x40d075
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x28]
mov bl, byte [esi + 2]
add esi, 2
add edx, 2
mov dword [ebp - 0x28], edx
add bl, 4
mov dl, byte [esi + 1]
mov dword [ebp - 0x44], esi
add dl, 0x49
inc edi
shl bl, 4
or dl, bl
mov byte [ebp - 1], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
lea esi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 0x14], dl
mov edx, dword [ebp - 0x1c]
mov bl, byte [edx]
mov dl, byte [ebp - 0x18]
add al, bl
inc dl
mov byte [ebp - 0x30], al
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0x30]
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 - 0xc], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0x1c], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x1c]
mov dl, byte [ebp - 0x14]
mov byte [ebx], dl
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov dword [ebp - 8], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 0x2c], cl
mov edx, dword [ebp - 0x2c]
mov bl, byte [ebx]
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 - 0xc]
mov esi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 8]
add ebx, edx
mov dl, byte [ebp + esi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 1]
mov byte [ebp - 0x20], bl
xor dl, bl
test edi, edi
mov byte [ebp - 0x24], dl
jbe 0x40d195
mov esi, dword [ebp - 0x28]
movsx dx, dl
mov word [esi], dx
mov edx, dword [ebp - 0x34]
dec edx
mov dword [ebp - 0x34], edx
jne 0x40d072
mov esi, dword [ebp - 0x40]
inc edi
xor ebx, ebx
mov dl, byte [esi + edi*2]
mov bl, byte [esi + edi*2 + 1]
add dl, 4
sub ebx, 0xb7
shl dl, 4
or dl, bl
mov byte [ebp - 1], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
lea esi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 0x14], dl
mov edx, dword [ebp - 0x18]
and edx, 0xff
mov bl, byte [ebp + edx - 0x178]
mov dl, byte [ebp - 0x18]
add al, bl
inc dl
mov byte [ebp - 0x30], al
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0x30]
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 - 0xc], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0x1c], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x1c]
mov dl, byte [ebp - 0x14]
mov byte [ebx], dl
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov dword [ebp - 8], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 0x2c], cl
mov edx, dword [ebp - 0x2c]
mov bl, byte [ebx]
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 - 0xc]
mov esi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 8]
add ebx, edx
mov dl, byte [ebp + esi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 1]
mov byte [ebp - 0x20], bl
xor dl, bl
test edi, edi
mov byte [ebp - 0x24], dl
jbe 0x40d2c6
movsx dx, dl
mov word [ebp + edi*2 - 0x7a], dx
mov edx, dword [ebp - 0x40]
inc edi
xor ebx, ebx
mov bl, byte [edx + edi*2 + 1]
lea esi, [edx + edi*2]
xor edx, edx
sub ebx, 0xb7
mov dl, byte [esi]
mov dword [ebp - 0x44], esi
sub edx, 0x5c
shl dl, 4
or dl, bl
mov byte [ebp - 1], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
lea esi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 0x14], dl
mov edx, dword [ebp - 0x1c]
mov bl, byte [edx]
mov dl, byte [ebp - 0x18]
add al, bl
inc dl
mov byte [ebp - 0x30], al
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0x30]
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 - 0xc], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0x1c], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x1c]
mov dl, byte [ebp - 0x14]
mov byte [ebx], dl
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov dword [ebp - 8], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 0x2c], cl
mov edx, dword [ebp - 0x2c]
mov bl, byte [ebx]
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 - 0xc]
mov esi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 8]
add ebx, edx
mov dl, byte [ebp + esi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 1]
mov byte [ebp - 0x20], bl
xor dl, bl
test edi, edi
mov byte [ebp - 0x24], dl
jbe 0x40d3e6
movsx dx, dl
mov word [ebp + edi*2 - 0x7a], dx
lea ebx, [edi + 1]
cmp ebx, 0x12
jge 0x40d538
mov esi, dword [ebp - 0x44]
lea edx, [ebp + edi*2 - 0x7a]
mov dword [ebp - 0x28], edx
mov edx, 0x12
sub edx, ebx
mov dword [ebp - 0x34], edx
jmp 0x40d40b
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x28]
mov bl, byte [esi + 2]
add esi, 2
add edx, 2
mov dword [ebp - 0x28], edx
add bl, 4
mov dl, byte [esi + 1]
mov dword [ebp - 0x44], esi
add dl, 0x49
inc edi
shl bl, 4
or dl, bl
mov byte [ebp - 1], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
lea esi, [ebp + edx - 0x178]
mov dl, byte [ebp + edx - 0x178]
mov byte [ebp - 0x14], dl
mov edx, dword [ebp - 0x1c]
mov bl, byte [edx]
mov dl, byte [ebp - 0x18]
add al, bl
inc dl
mov byte [ebp - 0x30], al
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0x30]
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 - 0xc], edx
lea ebx, [ebp + ebx - 0x178]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x178]
mov dword [ebp - 0x1c], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x1c]
mov dl, byte [ebp - 0x14]
mov byte [ebx], dl
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov dword [ebp - 8], edx
mov bl, byte [ebp + edx - 0x178]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 0x2c], cl
mov edx, dword [ebp - 0x2c]
mov bl, byte [ebx]
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 - 0xc]
mov esi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 8]
add ebx, edx
mov dl, byte [ebp + esi - 0x178]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x178]
mov bl, byte [ebp - 1]
mov byte [ebp - 0x20], bl
xor dl, bl
test edi, edi
mov byte [ebp - 0x24], dl
jbe 0x40d52b
mov esi, dword [ebp - 0x28]
movsx dx, dl
mov word [esi], dx
mov edx, dword [ebp - 0x34]
dec edx
mov dword [ebp - 0x34], edx
jne 0x40d408
mov ebx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x54]
mov word [ebp - 0x58], 0
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x78]
push 1
push eax
push ecx
call fcn.0040d700
add esp, 0xc
lea edx, [ebp - 0x38]
mov dword [ebp - 0x44], eax
push edx
push 0
push 0
push ebx
call dword [0x8d78e8]
test eax, eax
je 0x40d6a4
mov eax, dword [ebp - 0x38]
mov edi, eax
mov esi, eax
add eax, 8
push eax
shr esi, 2
call fcn.00841608
add esp, 4
lea ecx, [ebp - 0x38]
mov dword [ebp - 0xc], eax
push ecx
push edi
push eax
push ebx
call dword [0x8d78e8]
test eax, eax
je 0x40d695
test esi, esi
jbe 0x40d695
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], esi
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x380]
push 0x104
push eax
mov edx, dword [ecx]
push edx
call dword [0x8d78d8]
test eax, eax
je 0x40d67f
lea eax, [ebp - 0x380]
push eax
call fcn.00841580
mov esi, eax
push esi
call fcn.00402990
push 0x5c
push esi
call fcn.00841cd0
add esp, 0x10
test eax, eax
je 0x40d67f
inc eax
push eax
call fcn.004029f0
mov edx, dword [ebp - 0x54]
add esp, 4
mov dword [ebp - 0x4c], eax
mov ecx, dword [edx + 0x150400]
test ecx, ecx
jle 0x40d67f
lea eax, [edx + 0x2a04]
mov dword [ebp - 0x40], ecx
mov ecx, dword [eax]
test ecx, ecx
jle 0x40d671
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 0x40d651
test dl, dl
je 0x40d64d
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x40d651
add ecx, 2
add esi, 2
test dl, dl
jne 0x40d62d
xor ecx, ecx
jmp 0x40d656
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x40d665
mov ecx, dword [eax - 4]
mov edx, dword [ebp - 0x50]
or edx, ecx
mov dword [ebp - 0x50], edx
mov ecx, dword [ebp - 0x34]
add edi, 0x2a
dec ecx
mov dword [ebp - 0x34], ecx
jne 0x40d628
mov ecx, dword [ebp - 0x40]
add eax, 0x2a08
dec ecx
mov dword [ebp - 0x40], ecx
jne 0x40d619
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
add ecx, 4
dec eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 8], eax
jne 0x40d5af
mov edx, dword [ebp - 0xc]
push edx
call fcn.008415c0
mov esi, dword [ebp - 0x54]
add esp, 4
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40d6bd
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x78]
push 0
push eax
push ecx
call fcn.0040d700
add esp, 0xc
mov ecx, 0x54101
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
call fcn.008415c0
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