Function at 0x693780
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebp
mov ebp, ecx
push esi
mov dword [esp + 0xc], ebp
mov eax, dword [ebp + 0x18]
cmp eax, 0xffffffff
je 0x693a1c
push eax
call fcn.0045c0b0
add esp, 4
test eax, eax
je 0x693a1c
lea esi, [eax + 0x14]
mov eax, dword [0x829478]
push 1
push eax
push 4
push esi
call fcn.0045cc80
push 1
lea ecx, [esp + 0x28]
push 4
push ecx
push esi
call fcn.0045cb20
push 0
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 0x24
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x693a1c
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], 0
sub edx, ecx
cmp edx, eax
jne 0x69381d
inc dword [0x8294f0]
call fcn.0045dca0
mov ecx, dword [0x829478]
mov eax, dword [0x820dd0]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x693830
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x69384a
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 0x69385e
sub eax, ecx
jmp 0x693866
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x693886
mov edx, ecx
or edx, eax
je 0x693886
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x693a1c
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x693a1c
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
push edi
test ecx, ecx
mov byte [0x81c6fc], 1
not eax
jle 0x693909
push ebx
mov ebx, 0x820e44
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx]
test ecx, ecx
je 0x6938fa
mov esi, dword [ecx + 4]
test esi, esi
jle 0x6938fa
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x6938fa
test esi, esi
jle 0x6938fa
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x6938f0
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x6938e8
mov edx, dword [edx + 4]
dec ebp
jne 0x6938db
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add ebx, 4
dec ecx
mov dword [esp + 0x10], ecx
jne 0x6938bc
pop ebx
cmp eax, dword [0x8294d8]
je 0x69391c
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor edi, edi
cmp eax, edi
je 0x693a14
mov eax, dword [0x829464]
cmp eax, edi
je 0x69399f
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x693994
push edi
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 esi, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [0x829488], eax
jl 0x69397a
mov dword [0x829488], edi
push edi
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, edi
je 0x693994
cmp dword [esi], 0x29874362
je 0x69399f
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
cmp eax, edi
je 0x693a14
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x693a09
mov edx, dword [0x829488]
push edi
add eax, 0x14
push 4
push eax
lea eax, [edx*4 + 0x82948c]
push eax
call fcn.0045cba0
mov eax, dword [0x829488]
add esp, 0x10
lea esi, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [0x829488], eax
jl 0x6939ef
mov dword [0x829488], edi
push edi
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, edi
je 0x693a09
cmp dword [esi], 0xbad0bad
je 0x693a14
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
pop edi
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x693a55
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x693a55
test eax, eax
je 0x693a46
mov eax, dword [eax + 4]
push 1
push 3
mov edx, dword [eax + 8]
lea ecx, [eax + 8]
call dword [edx + 0x38]
pop esi
pop ebp
add esp, 8
ret 4
xor eax, eax
push 1
push 3
mov edx, dword [eax + 8]
lea ecx, [eax + 8]
call dword [edx + 0x38]
pop esi
pop ebp
add esp, 8
ret 4