Function at 0x6d2080
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [esp + 8], ebx
call fcn.00671360
test al, al
je 0x6d262c
fld dword [esp + 0x18]
fcomp dword [0x7cdacc]
fnstsw ax
test ah, 1
jne 0x6d20bd
mov eax, dword [0x85c918]
inc eax
cmp eax, 0xa
mov dword [0x85c918], eax
jge 0x6d20bd
call fcn.00783b90
mov eax, dword [ebx + 4]
push ebp
xor ebp, ebp
push esi
cmp eax, 0xffffffff
push edi
je 0x6d2374
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x6d2374
push ebp
add eax, 0x14
push 4
push eax
mov eax, dword [0x8294dc]
lea ecx, [eax*4 + 0x8294b4]
push ecx
call fcn.0045cba0
mov eax, dword [0x8294dc]
add esp, 0x10
lea edi, [eax*4 + 0x8294b4]
inc eax
cmp eax, 8
mov dword [esp + 0x18], edi
mov dword [0x8294dc], eax
jl 0x6d211c
mov dword [0x8294dc], ebp
push ebp
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 4
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x6d236c
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebp
sub edx, ecx
cmp edx, eax
jne 0x6d216a
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x6d217d
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x6d2197
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 0x6d21ab
sub eax, ecx
jmp 0x6d21b3
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x6d21d3
mov edx, ecx
or edx, eax
je 0x6d21d3
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x6d236c
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x6d236c
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, ebp
mov byte [0x81c6fc], 1
not eax
jle 0x6d225d
mov ebx, 0x820e44
mov dword [esp + 0x10], ecx
jmp 0x6d220b
xor ebp, ebp
mov ecx, dword [ebx]
cmp ecx, ebp
je 0x6d2245
mov esi, dword [ecx + 4]
cmp esi, ebp
jle 0x6d2245
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
cmp edx, ebp
je 0x6d2245
cmp esi, ebp
jle 0x6d2245
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x6d223f
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x6d2237
mov edx, dword [edx + 4]
dec ebp
jne 0x6d222a
mov ecx, dword [esp + 0x10]
add ebx, 4
dec ecx
mov dword [esp + 0x10], ecx
jne 0x6d2209
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
xor ebp, ebp
cmp eax, dword [0x8294d8]
je 0x6d2270
inc dword [0x8294f0]
call fcn.0045dca0
cmp dword [0x8294e8], ebp
je 0x6d2365
mov eax, dword [0x829464]
cmp eax, ebp
je 0x6d22f0
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x6d22e5
push ebp
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 0x6d22cb
mov dword [0x829488], ebp
push ebp
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, ebp
je 0x6d22e5
cmp dword [esi], 0x29874362
je 0x6d22f0
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
cmp eax, ebp
je 0x6d2365
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x6d235a
mov edx, dword [0x829488]
push ebp
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 0x6d2340
mov dword [0x829488], ebp
push ebp
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, ebp
je 0x6d235a
cmp dword [esi], 0xbad0bad
je 0x6d2365
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
cmp edi, ebp
je 0x6d2374
fld dword [edi]
jmp 0x6d237a
fld dword [0x89fe2c]
fadd dword [esp + 0x24]
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
fstp dword [esp + 0x1c]
je 0x6d260c
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x6d260c
mov ecx, dword [0x829478]
push 1
lea esi, [eax + 0x14]
push ecx
push 4
push esi
call fcn.0045cc80
push 1
lea edx, [esp + 0x30]
push 4
push edx
push esi
call fcn.0045cb20
push ebp
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 0x24
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x6d260c
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebp
sub edx, ecx
cmp edx, eax
jne 0x6d2410
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x6d2423
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x6d243d
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 0x6d2451
sub eax, ecx
jmp 0x6d2459
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x6d2479
mov edx, eax
or edx, ecx
je 0x6d2479
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x6d260c
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x6d260c
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, ebp
mov byte [0x81c6fc], 1
not eax
jle 0x6d24f5
mov ebx, 0x820e44
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx]
test ecx, ecx
je 0x6d24e7
mov esi, dword [ecx + 4]
test esi, esi
jle 0x6d24e7
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x6d24e7
test esi, esi
jle 0x6d24e7
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x6d24e1
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x6d24d9
mov edx, dword [edx + 4]
dec ebp
jne 0x6d24cc
mov ecx, dword [esp + 0x10]
add ebx, 4
dec ecx
mov dword [esp + 0x10], ecx
jne 0x6d24ad
cmp eax, dword [0x8294d8]
je 0x6d2508
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor edi, edi
cmp eax, edi
je 0x6d2601
mov eax, dword [0x829464]
cmp eax, edi
je 0x6d258c
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x6d2581
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 0x6d2567
mov dword [0x829488], edi
push edi
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, edi
je 0x6d2581
cmp dword [esi], 0x29874362
je 0x6d258c
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
cmp eax, edi
je 0x6d2601
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x6d25f6
mov ecx, dword [0x829488]
push edi
add eax, 0x14
push 4
lea edx, [ecx*4 + 0x82948c]
push eax
push edx
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 0x6d25dc
mov dword [0x829488], edi
push edi
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, edi
je 0x6d25f6
cmp dword [esi], 0xbad0bad
je 0x6d2601
inc dword [0x8294f0]
call fcn.0045dca0
mov ebx, dword [esp + 0x14]
mov byte [0x81c6fc], 0
fld dword [esp + 0x24]
fcomp dword [0x7cd7b4]
pop edi
pop esi
pop ebp
fnstsw ax
test ah, 0x41
jne 0x6d262c
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x10]
pop ebx
add esp, 0x10
ret 4