Function at 0x691820
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
fld dword [esp + 0xc]
fcomp dword [0x7cd7b4]
push ebp
mov ebp, ecx
mov dword [esp + 8], ebp
fnstsw ax
test ah, 1
je 0x691845
mov dword [esp + 0x10], 0
jmp 0x691868
fld dword [esp + 0x10]
fcomp dword [0x7d1ebc]
fnstsw ax
test ah, 0x41
jne 0x691860
mov dword [esp + 0x10], 0x44fa0000
jmp 0x691868
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
push esi
cmp eax, 0xffffffff
je 0x691afb
push eax
call fcn.0045c0b0
add esp, 4
test eax, eax
je 0x691afb
mov ecx, dword [0x829478]
push 1
lea esi, [eax + 0x14]
push ecx
push 4
push esi
call fcn.0045cc80
push 1
lea edx, [esp + 0x28]
push 4
push edx
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 0x691afb
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], 0
sub edx, ecx
cmp edx, eax
jne 0x6918fc
inc dword [0x8294f0]
call fcn.0045dca0
mov ecx, dword [0x829478]
mov eax, dword [0x820dd0]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x69190f
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x691929
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 0x69193d
sub eax, ecx
jmp 0x691945
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x691965
mov edx, ecx
or edx, eax
je 0x691965
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x691afb
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x691afb
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
push edi
test ecx, ecx
mov byte [0x81c6fc], 1
not eax
jle 0x6919e8
push ebx
mov ebx, 0x820e44
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx]
test ecx, ecx
je 0x6919d9
mov esi, dword [ecx + 4]
test esi, esi
jle 0x6919d9
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x6919d9
test esi, esi
jle 0x6919d9
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x6919cf
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x6919c7
mov edx, dword [edx + 4]
dec ebp
jne 0x6919ba
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add ebx, 4
dec ecx
mov dword [esp + 0x10], ecx
jne 0x69199b
pop ebx
cmp eax, dword [0x8294d8]
je 0x6919fb
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor edi, edi
cmp eax, edi
je 0x691af3
mov eax, dword [0x829464]
cmp eax, edi
je 0x691a7e
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x691a73
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 0x691a59
mov dword [0x829488], edi
push edi
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, edi
je 0x691a73
cmp dword [esi], 0x29874362
je 0x691a7e
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
cmp eax, edi
je 0x691af3
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x691ae8
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 0x691ace
mov dword [0x829488], edi
push edi
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, edi
je 0x691ae8
cmp dword [esi], 0xbad0bad
je 0x691af3
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
pop edi
mov eax, dword [ebp + 0x30]
pop esi
test eax, eax
je 0x691b34
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x691b34
test eax, eax
je 0x691b25
mov eax, dword [eax + 4]
push 1
push 3
mov edx, dword [eax + 8]
lea ecx, [eax + 8]
call dword [edx + 0x38]
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 ebp
add esp, 8
ret 4