Function at 0x40d8c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x18], edi
mov eax, dword [edi + 0x76c]
cmp eax, 0xffffffff
je 0x40db8d
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x40db8d
push ebp
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 ebx, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [esp + 0x14], ebx
mov dword [0x829488], eax
jl 0x40d92c
mov dword [0x829488], ebp
push ebp
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 4
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x40db7c
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebp
sub edx, ecx
cmp edx, eax
jne 0x40d97a
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x40d98d
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x40d9a7
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 0x40d9bb
sub eax, ecx
jmp 0x40d9c3
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x40d9e3
mov edx, ecx
or edx, eax
je 0x40d9e3
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x40db7c
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x40db7c
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, ebp
mov byte [0x81c6fc], 1
not eax
jle 0x40da6d
mov ebx, 0x820e44
mov dword [esp + 0x10], ecx
jmp 0x40da1b
xor ebp, ebp
mov ecx, dword [ebx]
cmp ecx, ebp
je 0x40da55
mov esi, dword [ecx + 4]
cmp esi, ebp
jle 0x40da55
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
cmp edx, ebp
je 0x40da55
cmp esi, ebp
jle 0x40da55
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x40da4f
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x40da47
mov edx, dword [edx + 4]
dec ebp
jne 0x40da3a
mov ecx, dword [esp + 0x10]
add ebx, 4
dec ecx
mov dword [esp + 0x10], ecx
jne 0x40da19
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
xor ebp, ebp
cmp eax, dword [0x8294d8]
je 0x40da80
inc dword [0x8294f0]
call fcn.0045dca0
cmp dword [0x8294e8], ebp
je 0x40db75
mov eax, dword [0x829464]
cmp eax, ebp
je 0x40db00
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x40daf5
push ebp
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 0x40dadb
mov dword [0x829488], ebp
push ebp
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, ebp
je 0x40daf5
cmp dword [esi], 0x29874362
je 0x40db00
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
cmp eax, ebp
je 0x40db75
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x40db6a
mov edx, dword [0x829488]
push ebp
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 0x40db50
mov dword [0x829488], ebp
push ebp
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, ebp
je 0x40db6a
cmp dword [esi], 0xbad0bad
je 0x40db75
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
cmp ebx, ebp
je 0x40db8d
cmp dword [ebx], ebp
sete al
test al, al
jne 0x40de4f
mov eax, dword [edi + 0x76c]
cmp eax, 0xffffffff
je 0x40de45
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x40de45
mov ecx, dword [0x829488]
push ebp
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 esi, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [esp + 0x18], esi
mov dword [0x829488], eax
jl 0x40dbeb
mov dword [0x829488], ebp
push ebp
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 4
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x40de37
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebp
sub edx, ecx
cmp edx, eax
jne 0x40dc39
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x40dc4c
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x40dc66
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 0x40dc7a
sub eax, ecx
jmp 0x40dc82
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x40dca2
mov edx, eax
or edx, ecx
je 0x40dca2
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x40de37
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x40de37
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, ebp
mov byte [0x81c6fc], 1
not eax
jle 0x40dd1e
mov ebx, 0x820e44
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx]
test ecx, ecx
je 0x40dd10
mov esi, dword [ecx + 4]
test esi, esi
jle 0x40dd10
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x40dd10
test esi, esi
jle 0x40dd10
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x40dd0a
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x40dd02
mov edx, dword [edx + 4]
dec ebp
jne 0x40dcf5
mov ecx, dword [esp + 0x10]
add ebx, 4
dec ecx
mov dword [esp + 0x10], ecx
jne 0x40dcd6
cmp eax, dword [0x8294d8]
je 0x40dd31
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor edi, edi
cmp eax, edi
je 0x40de2a
mov eax, dword [0x829464]
cmp eax, edi
je 0x40ddb5
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x40ddaa
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 0x40dd90
mov dword [0x829488], edi
push edi
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, edi
je 0x40ddaa
cmp dword [esi], 0x29874362
je 0x40ddb5
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
cmp eax, edi
je 0x40de2a
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, edi
je 0x40de1f
mov ecx, dword [0x829488]
push edi
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 esi, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [0x829488], eax
jl 0x40de05
mov dword [0x829488], edi
push edi
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, edi
je 0x40de1f
cmp dword [esi], 0xbad0bad
je 0x40de2a
inc dword [0x8294f0]
call fcn.0045dca0
mov esi, dword [esp + 0x18]
mov byte [0x81c6fc], 0
xor ebp, ebp
cmp esi, ebp
je 0x40de45
cmp dword [esi], 1
sete al
test al, al
jne 0x40de4f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret