Function at 0x4150b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x81c700]
sub esp, 0xc
inc eax
push ebx
push ebp
push esi
cmp eax, 0x186a0
push edi
mov dword [0x81c700], eax
jb 0x41548c
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
xor ebx, ebx
sub edx, ecx
mov dword [0x81c700], ebx
cmp edx, eax
jne 0x4150fe
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x415111
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x41512b
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 0x41513f
sub eax, ecx
jmp 0x415147
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x415167
mov edx, ecx
or edx, eax
je 0x415167
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x41548c
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x41548c
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, ebx
mov byte [0x81c6fc], 1
not eax
jle 0x4151e6
mov ebp, 0x820e44
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp]
cmp ecx, ebx
je 0x4151d8
mov esi, dword [ecx + 4]
cmp esi, ebx
jle 0x4151d8
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
cmp edx, ebx
je 0x4151d8
cmp esi, ebx
jle 0x4151d8
mov ebx, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x4151d0
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x4151c8
mov edx, dword [edx + 4]
dec ebx
jne 0x4151bb
xor ebx, ebx
mov ecx, dword [esp + 0x14]
add ebp, 4
dec ecx
mov dword [esp + 0x14], ecx
jne 0x41519b
cmp eax, dword [0x8294d8]
je 0x4151f9
inc dword [0x8294f0]
call fcn.0045dca0
cmp dword [0x8294e8], ebx
je 0x415485
mov eax, dword [0x829464]
mov dword [esp + 0x14], ebx
cmp eax, ebx
je 0x41544b
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebx
je 0x415440
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 edx, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [esp + 0x14], edx
mov dword [0x829488], eax
jl 0x415264
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 0x415430
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebx
sub edx, ecx
cmp edx, eax
jne 0x4152b2
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x4152c5
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x4152df
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 0x4152f3
sub eax, ecx
jmp 0x4152fb
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x41531b
mov edx, ecx
or edx, eax
je 0x41531b
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x415430
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x415430
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, ebx
mov byte [0x81c6fc], 1
not eax
jle 0x41539a
mov ebp, 0x820e44
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp]
test ecx, ecx
je 0x41538a
mov esi, dword [ecx + 4]
test esi, esi
jle 0x41538a
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x41538a
test esi, esi
jle 0x41538a
mov ebx, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x415384
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x41537c
mov edx, dword [edx + 4]
dec ebx
jne 0x41536f
mov ecx, dword [esp + 0x10]
add ebp, 4
dec ecx
mov dword [esp + 0x10], ecx
jne 0x41534f
xor ebx, ebx
cmp eax, dword [0x8294d8]
je 0x4153ad
inc dword [0x8294f0]
call fcn.0045dca0
cmp dword [0x8294e8], ebx
je 0x415429
mov eax, dword [0x829464]
mov dword [esp + 0x10], ebx
cmp eax, ebx
je 0x4153ef
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x4153e4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4153e4
cmp dword [eax], 0x29874362
je 0x4153ef
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x10], ebx
cmp eax, ebx
je 0x415429
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x41541e
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x41541e
cmp dword [eax], 0xbad0bad
je 0x415429
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x415440
cmp dword [eax], 0x29874362
je 0x41544b
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
mov dword [esp + 0x14], ebx
cmp eax, ebx
je 0x415485
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x41547a
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41547a
cmp dword [eax], 0xbad0bad
je 0x415485
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
mov ebp, dword [0x820dd0]
mov eax, dword [esp + 0x20]
xor ebp, eax
push eax
mov dword [esp + 0x18], ebp
mov esi, dword [esp + 0x1a]
mov ebx, ebp
and esi, 0xffff
and ebx, 0xff
call fcn.0045c0b0
mov edi, eax
add esp, 4
test edi, edi
je 0x41550a
mov edx, dword [0x8294d8]
mov eax, dword [0x829478]
xor edx, eax
push 1
push eax
mov eax, dword [esi*4 + 0x820e44]
xor edx, ebp
mov dword [0x8294d8], edx
mov eax, dword [eax + 8]
lea ecx, [eax + eax*2]
lea eax, [edi + 0x14]
mov edx, dword [ecx*4 + 0x828e68]
push edx
push eax
call fcn.0045cc80
push edi
push esi
call fcn.0045d050
push ebx
push esi
call fcn.0045dc80
push edi
call fcn.00672c80
add esp, 0x24
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret