Function at 0x414a40
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x81c700]
sub esp, 0x54
inc eax
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x414c0d
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], edi
sub edx, ecx
cmp edx, eax
jne 0x414a8e
inc dword [0x8294f0]
call fcn.0045dca0
mov ecx, dword [0x829478]
mov eax, dword [0x820dd0]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x414aa1
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x414abb
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 0x414acf
sub eax, ecx
jmp 0x414ad7
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x414af7
mov edx, ecx
or edx, eax
je 0x414af7
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x414c0d
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x414c0d
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, edi
mov byte [0x81c6fc], 1
not eax
jle 0x414b74
mov ebp, 0x820e44
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp]
test ecx, ecx
je 0x414b66
mov esi, dword [ecx + 4]
test esi, esi
jle 0x414b66
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x414b66
test esi, esi
jle 0x414b66
mov ebx, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x414b60
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x414b58
mov edx, dword [edx + 4]
dec ebx
jne 0x414b4b
mov ecx, dword [esp + 0x10]
add ebp, 4
dec ecx
mov dword [esp + 0x10], ecx
jne 0x414b2b
cmp eax, dword [0x8294d8]
je 0x414b87
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor edi, edi
cmp eax, edi
je 0x414c06
mov eax, dword [0x829464]
mov dword [esp + 0x10], edi
cmp eax, edi
je 0x414bcc
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x414bc1
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x414bc1
cmp dword [eax], 0x29874362
je 0x414bcc
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x10], edi
cmp eax, edi
je 0x414c06
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x414bfb
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x414bfb
cmp dword [eax], 0xbad0bad
je 0x414c06
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
push 0x18
call fcn.00672b70
mov esi, eax
add esp, 4
cmp esi, edi
je 0x415095
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x70]
push 1
push 4
lea ecx, [esi + 0x14]
xor edi, edi
push eax
push ecx
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], 4
mov byte [esi + 0x10], bl
call fcn.0045cb20
mov edx, dword [0x820ddc]
push edx
call fcn.0045ccf0
mov ebp, eax
add esp, 0x14
cmp ebp, 0xffffffff
je 0x415095
cmp dword [ebp*4 + 0x820e44], edi
je 0x415095
mov dword [esp + 0x6c], edi
push ebp
mov word [esp + 0x72], bp
call fcn.0045dc50
mov ecx, dword [0x8294d8]
mov byte [esp + 0x70], al
mov al, byte [0x820ddc]
push ebx
mov byte [esp + 0x75], al
mov eax, dword [0x829478]
xor eax, dword [esp + 0x74]
xor ecx, eax
mov dword [0x8294d8], ecx
mov dword [esi], eax
mov ecx, dword [0x820ddc]
push ecx
push ebp
push esi
call fcn.0045ced0
mov edx, dword [ebp*4 + 0x820e44]
add esp, 0x14
cmp dword [edx + 4], 1
jne 0x414d85
test bl, bl
jne 0x414d85
mov eax, dword [0x828e44]
mov dword [esp + 0x10], edi
cmp eax, edi
jle 0x414d85
push 0x18
call fcn.00672b70
mov esi, eax
add esp, 4
cmp esi, edi
je 0x414d6e
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], 4
mov byte [esi + 0x10], 1
mov eax, dword [0x829478]
push 1
push eax
lea ecx, [esi + 0x14]
push 4
push ecx
call fcn.0045cc20
push ebp
mov dword [esp + 0x84], edi
call fcn.0045dc50
mov dl, byte [0x820ddc]
mov ecx, dword [0x8294d8]
mov byte [esp + 0x84], al
mov eax, dword [0x829478]
mov word [esp + 0x86], bp
mov byte [esp + 0x85], dl
mov edx, dword [esp + 0x84]
push 1
xor eax, edx
xor ecx, eax
mov dword [0x8294d8], ecx
mov dword [esi], eax
mov eax, dword [0x820ddc]
push eax
push ebp
push esi
call fcn.0045ced0
add esp, 0x24
mov eax, dword [esp + 0x10]
mov ecx, dword [0x828e44]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x414ce1
mov eax, dword [ebp*4 + 0x820e44]
mov ecx, dword [eax + 0xc]
cmp ecx, edi
je 0x41507b
mov edx, dword [eax + 4]
add ecx, ecx
cmp edx, ecx
jle 0x41507b
test bl, bl
jne 0x41507b
mov edx, dword [eax]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov edi, dword [0x829478]
mov ecx, dword [0x820dd0]
xor esi, esi
test edx, edx
je 0x414df7
mov eax, dword [ebp*4 + 0x820e44]
mov ebx, dword [eax + 4]
test ebx, ebx
jle 0x414df7
lea eax, [esp + 0x24]
cmp byte [edx + 0x10], 0
je 0x414df1
mov ebp, dword [edx]
xor ebp, ecx
xor ebp, edi
inc esi
mov dword [eax], ebp
add eax, 4
mov edx, dword [edx + 4]
dec ebx
jne 0x414ddf
test esi, esi
jle 0x415081
lea edx, [esp + 0x24]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
jmp 0x414e19
mov edi, dword [0x829478]
mov ecx, dword [0x820dd0]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov eax, dword [0x81c700]
inc eax
mov dword [esp + 0x18], edx
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x414fe7
mov eax, ecx
mov dword [0x81c700], 0
sub eax, edi
cmp eax, ecx
jne 0x414e62
inc dword [0x8294f0]
call fcn.0045dca0
mov edi, dword [0x829478]
mov ecx, dword [0x820dd0]
mov edx, edi
sub edx, ecx
cmp edx, edi
jne 0x414e75
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x414e8f
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 0x414ea3
sub eax, ecx
jmp 0x414eab
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x414ecb
mov edx, eax
or edx, ecx
je 0x414ecb
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x414fe1
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x414fe1
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
mov byte [0x81c6fc], 1
test ecx, ecx
not eax
jle 0x414f48
mov ebp, 0x820e44
mov dword [esp + 0x70], ecx
mov ecx, dword [ebp]
test ecx, ecx
je 0x414f3a
mov esi, dword [ecx + 4]
test esi, esi
jle 0x414f3a
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x414f3a
test esi, esi
jle 0x414f3a
mov ebx, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x414f34
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x414f2c
mov edx, dword [edx + 4]
dec ebx
jne 0x414f1f
mov ecx, dword [esp + 0x70]
add ebp, 4
dec ecx
mov dword [esp + 0x70], ecx
jne 0x414eff
cmp eax, dword [0x8294d8]
je 0x414f5b
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor esi, esi
cmp eax, esi
je 0x414fda
mov eax, dword [0x829464]
mov dword [esp + 0x70], esi
cmp eax, esi
je 0x414fa0
lea ecx, [esp + 0x70]
push ecx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x414f95
mov eax, dword [esp + 0x70]
cmp eax, esi
je 0x414f95
cmp dword [eax], 0x29874362
je 0x414fa0
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x70], esi
cmp eax, esi
je 0x414fda
lea edx, [esp + 0x70]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x414fcf
mov eax, dword [esp + 0x70]
cmp eax, esi
je 0x414fcf
cmp dword [eax], 0xbad0bad
je 0x414fda
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
mov ecx, dword [0x820dd0]
mov eax, dword [esp + 0x18]
mov esi, eax
push eax
xor esi, ecx
mov dword [esp + 0x20], esi
mov ebx, esi
mov edi, dword [esp + 0x22]
and ebx, 0xff
and edi, 0xffff
call fcn.0045c0b0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x415061
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 ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x414e0d
mov ecx, dword [0x820dd0]
mov eax, dword [esp + 0x6c]
pop edi
xor ecx, eax
mov eax, dword [esp + 0x64]
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x54
ret
mov eax, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword [eax], 0xffffffff
pop ebx
add esp, 0x54
ret