Function at 0x6b52f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov edi, ecx
mov eax, dword [ebp + 0x744]
mov dword [esp + 0x14], edi
cmp eax, 0xffffffff
je 0x6b5544
push eax
call fcn.0045c0b0
xor esi, esi
add esp, 4
cmp eax, esi
je 0x6b5544
push esi
add eax, 0x14
push 4
push eax
mov eax, dword [0x829474]
lea ecx, [eax*4 + 0x820de0]
push ecx
call fcn.0045cba0
mov eax, dword [0x829474]
add esp, 0x10
lea ebx, [eax*4 + 0x820de0]
inc eax
cmp eax, 8
mov dword [esp + 0x1c], ebx
mov dword [0x829474], eax
jl 0x6b5360
mov dword [0x829474], esi
push esi
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 4
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x6b553c
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], esi
sub edx, ecx
cmp edx, eax
jne 0x6b53a8
call fcn.00406630
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x6b53b5
call fcn.00406630
mov ecx, 0x83f450
call fcn.004065e0
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x6b53df
mov edx, ecx
or edx, eax
je 0x6b53df
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x6b553c
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x6b553c
mov esi, dword [0x829478]
mov dword [0x829468], eax
mov eax, dword [0x8294e8]
mov byte [0x81c6fc], 1
test eax, eax
not esi
mov dword [esp + 0x18], 0
jle 0x6b5496
mov dword [esp + 0x10], 0x820e44
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x6b5470
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x6b5470
mov edi, dword [eax]
mov ebp, dword [edi + 0xc]
sar ebp, 2
test edi, edi
je 0x6b546c
xor ebx, ebx
test ecx, ecx
jle 0x6b546c
mov ecx, edi
call fcn.00406620
xor esi, eax
lea eax, [edi + 0x14]
test ebp, ebp
jle 0x6b545d
mov ecx, ebp
mov edx, dword [eax]
add eax, 4
xor esi, edx
dec ecx
jne 0x6b5453
mov ecx, dword [esp + 0x10]
mov edi, dword [edi + 4]
inc ebx
mov edx, dword [ecx]
cmp ebx, dword [edx + 4]
jl 0x6b5441
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [0x8294e8]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
jl 0x6b541e
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
cmp esi, dword [0x8294d8]
je 0x6b54a3
call fcn.00406630
mov eax, dword [0x8294e8]
test eax, eax
je 0x6b5535
mov ecx, 0x829464
mov dword [esp + 0x24], 0
call fcn.00406620
test eax, eax
je 0x6b54f3
mov ecx, dword [0x829464]
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.00407b70
add esp, 8
test al, al
je 0x6b54ee
mov eax, dword [esp + 0x24]
test eax, eax
je 0x6b54ee
cmp dword [eax], 0x29874362
je 0x6b54f3
call fcn.00406630
mov ecx, 0x8294b0
mov dword [esp + 0x24], 0
call fcn.00406620
test eax, eax
je 0x6b5535
mov eax, dword [0x8294b0]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x6b5530
mov eax, dword [esp + 0x24]
test eax, eax
je 0x6b5530
cmp dword [eax], 0xbad0bad
je 0x6b5535
call fcn.00406630
mov byte [0x81c6fc], 0
test ebx, ebx
je 0x6b5544
mov ecx, dword [ebx]
jmp 0x6b554a
mov ecx, dword [0x89fe88]
mov eax, dword [edi + 0x10]
cmp eax, ecx
jbe 0x6b555d
push eax
lea ecx, [ebp + 0x72c]
call fcn.00693780
mov ecx, dword [edi + 0x18]
lea esi, [ebp + 0x72c]
mov dword [esp + 0x24], ecx
mov ecx, esi
call fcn.00693400
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 1
je 0x6b5588
mov edx, dword [esp + 0x24]
mov ecx, esi
push edx
call fcn.006930e0
mov eax, dword [edi + 0x14]
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.00692e00
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 1
je 0x6b55ad
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00691e20
mov edx, dword [edi + 0x20]
mov ecx, esi
mov dword [esp + 0x24], edx
call fcn.00691b40
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 1
je 0x6b55d2
mov eax, dword [esp + 0x24]
mov ecx, esi
push eax
call fcn.00691820
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x24], ecx
mov ecx, esi
call fcn.00691540
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 1
je 0x6b55f7
mov edx, dword [esp + 0x24]
mov ecx, esi
push edx
call fcn.00690560
mov ebx, dword [ebp + 0x7b0]
mov eax, dword [edi + 0xc]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x24], ebp
jle 0x6b566c
jmp 0x6b5610
mov edi, dword [esp + 0x14]
mov edx, dword [edi + 4]
mov esi, ebp
add esi, edx
mov al, byte [esi + 8]
mov ecx, dword [esi]
push eax
push 0
push ecx
mov ecx, ebx
call fcn.006f3c30
mov edi, eax
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x6b5635
push 0xffffffffffffffff
jmp 0x6b564e
mov ecx, edi
call fcn.006fb130
cmp eax, dword [esi + 4]
jge 0x6b5655
mov ecx, edi
call fcn.006fb130
mov edx, dword [esi + 4]
sub edx, eax
push edx
mov ecx, edi
call fcn.006fae20
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
inc eax
add ebp, 0xc
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x24], eax
cmp eax, edx
jl 0x6b560c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4