Function at 0x40b710
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea eax, [esi - 0xa0]
push eax
mov dword [esp + 0x1c], eax
mov dword [eax], 0x7cdaac
mov dword [esi], 0x7cda44
call fcn.00416300
add esp, 4
lea ecx, [esi + 0x710]
call fcn.005dd410
lea ecx, [esi + 0x70c]
call fcn.005dd410
mov eax, dword [esi + 0x6d4]
or edi, 0xffffffff
cmp eax, edi
je 0x40b766
push eax
call fcn.004150b0
add esp, 4
mov eax, dword [esi + 0x6d0]
cmp eax, edi
je 0x40b77b
mov ecx, eax
push ecx
call fcn.004150b0
add esp, 4
mov eax, dword [esi + 0x6cc]
cmp eax, edi
je 0x40b790
mov edx, eax
push edx
call fcn.004150b0
add esp, 4
mov eax, dword [esi + 0x6c8]
push ebx
cmp eax, edi
push ebp
mov dword [esp + 0x18], eax
je 0x40b9ee
mov eax, dword [0x81c700]
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x40b96c
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], 0
sub edx, ecx
cmp edx, eax
jne 0x40b7ed
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x40b800
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x40b81a
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 0x40b82e
sub eax, ecx
jmp 0x40b836
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x40b856
mov edx, ecx
or edx, eax
je 0x40b856
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x40b96c
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x40b96c
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
mov byte [0x81c6fc], 1
test ecx, ecx
not eax
jle 0x40b8d3
mov ebp, 0x820e44
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp]
test ecx, ecx
je 0x40b8c5
mov esi, dword [ecx + 4]
test esi, esi
jle 0x40b8c5
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x40b8c5
test esi, esi
jle 0x40b8c5
mov ebx, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x40b8bf
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x40b8b7
mov edx, dword [edx + 4]
dec ebx
jne 0x40b8aa
mov ecx, dword [esp + 0x10]
add ebp, 4
dec ecx
mov dword [esp + 0x10], ecx
jne 0x40b88a
cmp eax, dword [0x8294d8]
je 0x40b8e6
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor esi, esi
cmp eax, esi
je 0x40b965
mov eax, dword [0x829464]
mov dword [esp + 0x10], esi
cmp eax, esi
je 0x40b92b
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x40b920
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x40b920
cmp dword [eax], 0x29874362
je 0x40b92b
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x10], esi
cmp eax, esi
je 0x40b965
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x40b95a
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x40b95a
cmp dword [eax], 0xbad0bad
je 0x40b965
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
mov edi, dword [0x820dd0]
mov eax, dword [esp + 0x18]
xor edi, eax
push eax
mov dword [esp + 0x1c], edi
mov ebx, edi
mov esi, dword [esp + 0x1e]
and ebx, 0xff
and esi, 0xffff
call fcn.0045c0b0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40b9ea
mov ecx, dword [0x8294d8]
mov eax, dword [0x829478]
mov edx, dword [esi*4 + 0x820e44]
xor ecx, eax
xor ecx, edi
push 1
mov dword [0x8294d8], ecx
push eax
mov eax, dword [edx + 8]
lea edx, [ebp + 0x14]
lea eax, [eax + eax*2]
mov ecx, dword [eax*4 + 0x828e68]
push ecx
push edx
call fcn.0045cc80
push ebp
push esi
call fcn.0045d050
push ebx
push esi
call fcn.0045dc80
push ebp
call fcn.00672c80
add esp, 0x24
mov esi, dword [esp + 0x14]
mov esi, dword [esi + 0x6c4]
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x40bc47
mov eax, dword [0x81c700]
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x40bbc9
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], 0
sub edx, ecx
cmp edx, eax
jne 0x40ba4a
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x40ba5d
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x40ba77
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 0x40ba8b
sub eax, ecx
jmp 0x40ba93
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x40bab3
mov edx, eax
or edx, ecx
je 0x40bab3
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x40bbc9
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x40bbc9
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
mov byte [0x81c6fc], 1
test ecx, ecx
not eax
jle 0x40bb30
mov ebp, 0x820e44
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp]
test ecx, ecx
je 0x40bb22
mov esi, dword [ecx + 4]
test esi, esi
jle 0x40bb22
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x40bb22
test esi, esi
jle 0x40bb22
mov ebx, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x40bb1c
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x40bb14
mov edx, dword [edx + 4]
dec ebx
jne 0x40bb07
mov ecx, dword [esp + 0x10]
add ebp, 4
dec ecx
mov dword [esp + 0x10], ecx
jne 0x40bae7
cmp eax, dword [0x8294d8]
je 0x40bb43
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor esi, esi
cmp eax, esi
je 0x40bbc2
mov eax, dword [0x829464]
mov dword [esp + 0x10], esi
cmp eax, esi
je 0x40bb88
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x40bb7d
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x40bb7d
cmp dword [eax], 0x29874362
je 0x40bb88
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x10], esi
cmp eax, esi
je 0x40bbc2
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x40bbb7
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x40bbb7
cmp dword [eax], 0xbad0bad
je 0x40bbc2
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
mov esi, dword [0x820dd0]
mov eax, dword [esp + 0x18]
xor esi, eax
push eax
mov dword [esp + 0x1c], esi
mov ebx, esi
mov edi, dword [esp + 0x1e]
and ebx, 0xff
and edi, 0xffff
call fcn.0045c0b0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40bc47
mov edx, dword [0x8294d8]
mov eax, dword [0x829478]
xor esi, edx
push 1
xor esi, eax
push eax
mov eax, dword [edi*4 + 0x820e44]
mov dword [0x8294d8], esi
mov eax, dword [eax + 8]
lea ecx, [eax + eax*2]
lea eax, [ebp + 0x14]
mov edx, dword [ecx*4 + 0x828e68]
push edx
push eax
call fcn.0045cc80
push ebp
push edi
call fcn.0045d050
push ebx
push edi
call fcn.0045dc80
push ebp
call fcn.00672c80
add esp, 0x24
mov esi, dword [esp + 0x14]
pop ebp
pop ebx
mov eax, dword [esi + 0x6c0]
cmp eax, 0xffffffff
je 0x40bc63
mov ecx, eax
push ecx
call fcn.004150b0
add esp, 4
lea ecx, [esi + 0x6b8]
call fcn.005dd990
lea ecx, [esi - 0xa0]
neg ecx
sbb ecx, ecx
and ecx, esi
call fcn.0061e9a0
mov ecx, dword [esp + 0x18]
call fcn.006d0980
pop edi
pop esi
add esp, 0x14
ret