Function at 0x704df0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
sub esp, 0x10
cmp eax, 0xffffffff
push ebx
push esi
je 0x705440
push eax
call fcn.0045c0b0
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x705440
push ebx
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 [esp + 0x14], esi
mov dword [0x829488], eax
jl 0x704e50
mov dword [0x829488], ebx
push ebx
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 4
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x705425
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebx
sub edx, ecx
cmp edx, eax
jne 0x704e9e
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x704eb1
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x704ecb
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 0x704edf
sub eax, ecx
jmp 0x704ee7
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x704f07
mov edx, ecx
or edx, eax
je 0x704f07
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x705425
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x705425
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
push ebp
cmp ecx, ebx
push edi
mov byte [0x81c6fc], 1
not eax
jle 0x704f8c
mov ebp, 0x820e44
mov dword [esp + 0x14], ecx
jmp 0x704f41
xor ebx, ebx
mov ecx, dword [ebp]
cmp ecx, ebx
je 0x704f7c
mov esi, dword [ecx + 4]
cmp esi, ebx
jle 0x704f7c
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
cmp edx, ebx
je 0x704f7c
cmp esi, ebx
jle 0x704f7c
mov ebx, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x704f76
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x704f6e
mov edx, dword [edx + 4]
dec ebx
jne 0x704f61
mov ecx, dword [esp + 0x14]
add ebp, 4
dec ecx
mov dword [esp + 0x14], ecx
jne 0x704f3f
xor ebx, ebx
cmp eax, dword [0x8294d8]
je 0x704f9f
inc dword [0x8294f0]
call fcn.0045dca0
cmp dword [0x8294e8], ebx
je 0x705418
mov eax, dword [0x829464]
cmp eax, ebx
je 0x7051e1
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebx
je 0x7051d6
push ebx
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 edi, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [esp + 0x14], edi
mov dword [0x829488], eax
jl 0x705006
mov dword [0x829488], ebx
push ebx
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 4
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x7051ca
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebx
sub edx, ecx
cmp edx, eax
jne 0x70504e
call fcn.00406630
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x70505b
call fcn.00406630
mov ecx, 0x83f450
call fcn.004065e0
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x705085
mov edx, ecx
or edx, eax
je 0x705085
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x7051ca
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x7051ca
mov esi, dword [0x829478]
mov dword [0x829468], eax
mov eax, dword [0x8294e8]
mov byte [0x81c6fc], 1
cmp eax, ebx
mov dword [esp + 0x18], ebx
not esi
jle 0x70512c
mov dword [esp + 0x10], 0x820e44
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x70510a
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x70510a
mov edi, dword [eax]
mov ebp, dword [edi + 0xc]
sar ebp, 2
test edi, edi
je 0x70510a
xor ebx, ebx
test ecx, ecx
jle 0x70510a
mov ecx, edi
call fcn.00406620
xor esi, eax
lea eax, [edi + 0x14]
test ebp, ebp
jle 0x7050fb
mov ecx, ebp
mov edx, dword [eax]
add eax, 4
xor esi, edx
dec ecx
jne 0x7050f1
mov ecx, dword [esp + 0x10]
mov edi, dword [edi + 4]
inc ebx
mov edx, dword [ecx]
cmp ebx, dword [edx + 4]
jl 0x7050df
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [0x8294e8]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
jl 0x7050bc
mov edi, dword [esp + 0x14]
cmp esi, dword [0x8294d8]
je 0x705139
call fcn.00406630
mov eax, dword [0x8294e8]
xor esi, esi
cmp eax, esi
je 0x7051c1
mov ecx, 0x829464
mov dword [esp + 0x10], esi
call fcn.00406620
test eax, eax
je 0x705183
mov ecx, dword [0x829464]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00407b70
add esp, 8
test al, al
je 0x70517e
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x70517e
cmp dword [eax], 0x29874362
je 0x705183
call fcn.00406630
mov ecx, 0x8294b0
mov dword [esp + 0x10], esi
call fcn.00406620
test eax, eax
je 0x7051c1
mov eax, dword [0x8294b0]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x7051bc
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x7051bc
cmp dword [eax], 0xbad0bad
je 0x7051c1
call fcn.00406630
mov byte [0x81c6fc], 0
xor ebx, ebx
cmp edi, ebx
je 0x7051d6
cmp dword [edi], 0x29874362
je 0x7051e1
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
cmp eax, ebx
je 0x705418
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebx
je 0x70540d
mov ecx, dword [0x829488]
push ebx
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 edi, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [esp + 0x14], edi
mov dword [0x829488], eax
jl 0x70523d
mov dword [0x829488], ebx
push ebx
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 4
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x705401
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebx
sub edx, ecx
cmp edx, eax
jne 0x705285
call fcn.00406630
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x705292
call fcn.00406630
mov ecx, 0x83f450
call fcn.004065e0
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x7052bc
mov edx, eax
or edx, ecx
je 0x7052bc
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x705401
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x705401
mov esi, dword [0x829478]
mov dword [0x829468], eax
mov eax, dword [0x8294e8]
mov byte [0x81c6fc], 1
cmp eax, ebx
mov dword [esp + 0x18], ebx
not esi
jle 0x705363
mov dword [esp + 0x10], 0x820e44
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x705341
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x705341
mov edi, dword [eax]
mov ebp, dword [edi + 0xc]
sar ebp, 2
test edi, edi
je 0x705341
xor ebx, ebx
test ecx, ecx
jle 0x705341
mov ecx, edi
call fcn.00406620
xor esi, eax
lea eax, [edi + 0x14]
test ebp, ebp
jle 0x705332
mov ecx, ebp
mov edx, dword [eax]
add eax, 4
xor esi, edx
dec ecx
jne 0x705328
mov ecx, dword [esp + 0x10]
mov edi, dword [edi + 4]
inc ebx
mov edx, dword [ecx]
cmp ebx, dword [edx + 4]
jl 0x705316
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [0x8294e8]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
jl 0x7052f3
mov edi, dword [esp + 0x14]
cmp esi, dword [0x8294d8]
je 0x705370
call fcn.00406630
mov eax, dword [0x8294e8]
xor esi, esi
cmp eax, esi
je 0x7053f8
mov ecx, 0x829464
mov dword [esp + 0x10], esi
call fcn.00406620
test eax, eax
je 0x7053ba
mov ecx, dword [0x829464]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00407b70
add esp, 8
test al, al
je 0x7053b5
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x7053b5
cmp dword [eax], 0x29874362
je 0x7053ba
call fcn.00406630
mov ecx, 0x8294b0
mov dword [esp + 0x10], esi
call fcn.00406620
test eax, eax
je 0x7053f8
mov eax, dword [0x8294b0]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x7053f3
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x7053f3
cmp dword [eax], 0xbad0bad
je 0x7053f8
call fcn.00406630
mov byte [0x81c6fc], 0
xor ebx, ebx
cmp edi, ebx
je 0x70540d
cmp dword [edi], 0xbad0bad
je 0x705418
inc dword [0x8294f0]
call fcn.0045dca0
mov esi, dword [esp + 0x1c]
pop edi
mov byte [0x81c6fc], 0
pop ebp
cmp esi, ebx
je 0x705440
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi]
xor eax, eax
mov esi, dword [edx]
cmp ecx, esi
pop esi
setle al
pop ebx
add esp, 0x10
ret 4
pop esi
xor al, al
pop ebx
add esp, 0x10
ret 4