Function at 0x410790
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [ecx + 0x770]
push ebx
cmp eax, 0xffffffff
push esi
je 0x410a25
push eax
call fcn.0045c0b0
add esp, 4
test eax, eax
je 0x410a25
lea esi, [eax + 0x14]
mov eax, dword [0x829478]
mov ebx, 1
push ebx
push eax
push 4
push esi
call fcn.0045cc80
push ebx
lea ecx, [esp + 0x24]
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 0x410a25
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], 0
sub edx, ecx
cmp edx, eax
jne 0x41082b
inc dword [0x8294f0]
call fcn.0045dca0
mov ecx, dword [0x829478]
mov eax, dword [0x820dd0]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x41083e
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x410857
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], bl
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x41086b
sub eax, ecx
jmp 0x410873
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x410893
mov edx, ecx
or edx, eax
je 0x410893
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x410a25
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x410a25
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
push edi
test ecx, ecx
mov byte [0x81c6fc], bl
not eax
jle 0x410912
push ebp
mov ebp, 0x820e44
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp]
test ecx, ecx
je 0x410903
mov esi, dword [ecx + 4]
test esi, esi
jle 0x410903
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x410903
test esi, esi
jle 0x410903
mov ebx, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x4108fd
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x4108f5
mov edx, dword [edx + 4]
dec ebx
jne 0x4108e8
mov ecx, dword [esp + 0x10]
add ebp, 4
dec ecx
mov dword [esp + 0x10], ecx
jne 0x4108c8
pop ebp
cmp eax, dword [0x8294d8]
je 0x410925
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor edi, edi
cmp eax, edi
je 0x410a1d
mov eax, dword [0x829464]
cmp eax, edi
je 0x4109a8
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x41099d
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 0x410983
mov dword [0x829488], edi
push edi
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, edi
je 0x41099d
cmp dword [esi], 0x29874362
je 0x4109a8
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
cmp eax, edi
je 0x410a1d
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x410a12
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 0x4109f8
mov dword [0x829488], edi
push edi
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, edi
je 0x410a12
cmp dword [esi], 0xbad0bad
je 0x410a1d
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
pop edi
pop esi
pop ebx
pop ecx
ret 4