Function at 0x6d2640
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
fld dword [esp + 0x14]
fcomp dword [0x7cd7b4]
push edi
mov edi, ecx
mov dword [esp + 8], edi
fnstsw ax
test ah, 0x41
jne 0x6d2668
call fcn.00671360
test al, al
je 0x6d2bb3
mov eax, dword [edi + 8]
push ebx
push ebp
xor ebp, ebp
cmp eax, 0xffffffff
push esi
je 0x6d28f0
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x6d28f0
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 esi, [eax*4 + 0x8294b4]
inc eax
cmp eax, 8
mov dword [esp + 0x18], esi
mov dword [0x8294dc], eax
jl 0x6d26c7
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 0x6d28e8
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebp
sub edx, ecx
cmp edx, eax
jne 0x6d2715
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x6d2728
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x6d2742
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 0x6d2756
sub eax, ecx
jmp 0x6d275e
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x6d277e
mov edx, ecx
or edx, eax
je 0x6d277e
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x6d28e8
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x6d28e8
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, ebp
mov byte [0x81c6fc], 1
not eax
jle 0x6d2808
mov ebx, 0x820e44
mov dword [esp + 0x10], ecx
jmp 0x6d27b6
xor ebp, ebp
mov ecx, dword [ebx]
cmp ecx, ebp
je 0x6d27f0
mov esi, dword [ecx + 4]
cmp esi, ebp
jle 0x6d27f0
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
cmp edx, ebp
je 0x6d27f0
cmp esi, ebp
jle 0x6d27f0
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x6d27ea
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x6d27e2
mov edx, dword [edx + 4]
dec ebp
jne 0x6d27d5
mov ecx, dword [esp + 0x10]
add ebx, 4
dec ecx
mov dword [esp + 0x10], ecx
jne 0x6d27b4
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
xor ebp, ebp
cmp eax, dword [0x8294d8]
je 0x6d281b
inc dword [0x8294f0]
call fcn.0045dca0
cmp dword [0x8294e8], ebp
je 0x6d28e1
mov eax, dword [0x829464]
mov dword [esp + 0x10], ebp
cmp eax, ebp
je 0x6d28a7
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x6d289c
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 edx, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [esp + 0x10], edx
mov dword [0x829488], eax
jl 0x6d287e
mov dword [0x829488], ebp
push ebp
call fcn.0045d120
add esp, 4
call fcn.004059e0
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x6d289c
cmp dword [eax], 0x29874362
je 0x6d28a7
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x10], ebp
cmp eax, ebp
je 0x6d28e1
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x6d28d6
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x6d28d6
cmp dword [eax], 0xbad0bad
je 0x6d28e1
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
cmp esi, ebp
je 0x6d28f0
fld dword [esi]
jmp 0x6d28f6
fld dword [0x89fe2c]
fadd dword [esp + 0x24]
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
fstp dword [esp + 0x1c]
je 0x6d2b88
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x6d2b88
mov edx, dword [0x829478]
push 1
lea esi, [eax + 0x14]
push edx
push 4
push esi
call fcn.0045cc80
push 1
lea eax, [esp + 0x30]
push 4
push eax
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 0x6d2b88
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebp
sub edx, ecx
cmp edx, eax
jne 0x6d298c
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x6d299f
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x6d29b9
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 0x6d29cd
sub eax, ecx
jmp 0x6d29d5
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x6d29f5
mov edx, eax
or edx, ecx
je 0x6d29f5
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x6d2b88
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x6d2b88
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, ebp
mov byte [0x81c6fc], 1
not eax
jle 0x6d2a71
mov ebx, 0x820e44
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx]
test ecx, ecx
je 0x6d2a63
mov esi, dword [ecx + 4]
test esi, esi
jle 0x6d2a63
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x6d2a63
test esi, esi
jle 0x6d2a63
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x6d2a5d
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x6d2a55
mov edx, dword [edx + 4]
dec ebp
jne 0x6d2a48
mov ecx, dword [esp + 0x10]
add ebx, 4
dec ecx
mov dword [esp + 0x10], ecx
jne 0x6d2a29
cmp eax, dword [0x8294d8]
je 0x6d2a84
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor edi, edi
cmp eax, edi
je 0x6d2b7d
mov eax, dword [0x829464]
cmp eax, edi
je 0x6d2b08
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x6d2afd
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 0x6d2ae3
mov dword [0x829488], edi
push edi
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, edi
je 0x6d2afd
cmp dword [esi], 0x29874362
je 0x6d2b08
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
cmp eax, edi
je 0x6d2b7d
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x6d2b72
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 0x6d2b58
mov dword [0x829488], edi
push edi
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, edi
je 0x6d2b72
cmp dword [esi], 0xbad0bad
je 0x6d2b7d
inc dword [0x8294f0]
call fcn.0045dca0
mov edi, dword [esp + 0x14]
mov byte [0x81c6fc], 0
fld dword [esp + 0x24]
fcomp dword [0x7cd7b4]
pop esi
pop ebp
pop ebx
fnstsw ax
test ah, 0x41
jne 0x6d2bb3
fld dword [esp + 0x18]
call fcn.0078c320
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fadd dword [edi + 0x60]
fstp dword [edi + 0x60]
pop edi
add esp, 0x10
ret 4