Function at 0x695680
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x81c700]
sub esp, 0xc
inc eax
push ebx
push ebp
push esi
cmp eax, 0x186a0
push edi
mov dword [0x81c700], eax
jb 0x695a5c
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
xor ebx, ebx
sub edx, ecx
mov dword [0x81c700], ebx
cmp edx, eax
jne 0x6956ce
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x6956e1
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x6956fb
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x69570f
sub eax, ecx
jmp 0x695717
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x695737
mov edx, ecx
or edx, eax
je 0x695737
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x695a5c
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x695a5c
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, ebx
mov byte [0x81c6fc], 1
not eax
jle 0x6957b6
mov ebp, 0x820e44
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp]
cmp ecx, ebx
je 0x6957a8
mov esi, dword [ecx + 4]
cmp esi, ebx
jle 0x6957a8
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
cmp edx, ebx
je 0x6957a8
cmp esi, ebx
jle 0x6957a8
mov ebx, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x6957a0
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x695798
mov edx, dword [edx + 4]
dec ebx
jne 0x69578b
xor ebx, ebx
mov ecx, dword [esp + 0x14]
add ebp, 4
dec ecx
mov dword [esp + 0x14], ecx
jne 0x69576b
cmp eax, dword [0x8294d8]
je 0x6957c9
inc dword [0x8294f0]
call fcn.0045dca0
cmp dword [0x8294e8], ebx
je 0x695a55
mov eax, dword [0x829464]
mov dword [esp + 0x14], ebx
cmp eax, ebx
je 0x695a1b
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebx
je 0x695a10
push ebx
add eax, 0x14
push 4
push eax
mov eax, dword [0x829488]
lea ecx, [eax*4 + 0x82948c]
push ecx
call fcn.0045cba0
mov eax, dword [0x829488]
add esp, 0x10
lea edx, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [esp + 0x14], edx
mov dword [0x829488], eax
jl 0x695834
mov dword [0x829488], ebx
push ebx
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 4
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x695a00
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebx
sub edx, ecx
cmp edx, eax
jne 0x695882
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x695895
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x6958af
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x6958c3
sub eax, ecx
jmp 0x6958cb
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x6958eb
mov edx, ecx
or edx, eax
je 0x6958eb
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x695a00
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x695a00
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, ebx
mov byte [0x81c6fc], 1
not eax
jle 0x69596a
mov ebp, 0x820e44
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp]
test ecx, ecx
je 0x69595a
mov esi, dword [ecx + 4]
test esi, esi
jle 0x69595a
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x69595a
test esi, esi
jle 0x69595a
mov ebx, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x695954
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x69594c
mov edx, dword [edx + 4]
dec ebx
jne 0x69593f
mov ecx, dword [esp + 0x10]
add ebp, 4
dec ecx
mov dword [esp + 0x10], ecx
jne 0x69591f
xor ebx, ebx
cmp eax, dword [0x8294d8]
je 0x69597d
inc dword [0x8294f0]
call fcn.0045dca0
cmp dword [0x8294e8], ebx
je 0x6959f9
mov eax, dword [0x829464]
mov dword [esp + 0x10], ebx
cmp eax, ebx
je 0x6959bf
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x6959b4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x6959b4
cmp dword [eax], 0x29874362
je 0x6959bf
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x10], ebx
cmp eax, ebx
je 0x6959f9
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x6959ee
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x6959ee
cmp dword [eax], 0xbad0bad
je 0x6959f9
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x695a10
cmp dword [eax], 0x29874362
je 0x695a1b
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x14], ebx
cmp eax, ebx
je 0x695a55
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x695a4a
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x695a4a
cmp dword [eax], 0xbad0bad
je 0x695a55
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
mov ebp, dword [0x820dd0]
mov eax, dword [esp + 0x20]
xor ebp, eax
push eax
mov dword [esp + 0x18], ebp
mov esi, dword [esp + 0x1a]
mov ebx, ebp
and esi, 0xffff
and ebx, 0xff
call fcn.0045c0b0
mov edi, eax
add esp, 4
test edi, edi
je 0x695ada
mov edx, dword [0x8294d8]
mov eax, dword [0x829478]
xor edx, eax
push 1
push eax
mov eax, dword [esi*4 + 0x820e44]
xor edx, ebp
mov dword [0x8294d8], edx
mov eax, dword [eax + 8]
lea ecx, [eax + eax*2]
lea eax, [edi + 0x14]
mov edx, dword [ecx*4 + 0x828e68]
push edx
push eax
call fcn.0045cc80
push edi
push esi
call fcn.0045d050
push ebx
push esi
call fcn.0045dc80
push edi
call fcn.00672c80
add esp, 0x24
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret