Function at 0x4118a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [esp + 0xc], ebx
call fcn.00671360
test al, al
je 0x411d95
mov eax, dword [ebx + 0x768]
push ebp
push esi
cmp eax, 0xffffffff
push edi
je 0x411b6e
push eax
call fcn.0045c0b0
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x411b6e
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 edi, [eax*4 + 0x82948c]
inc eax
cmp eax, 8
mov dword [esp + 0x14], edi
mov dword [0x829488], eax
jl 0x411919
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 0x411b66
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], ebp
sub edx, ecx
cmp edx, eax
jne 0x411967
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x41197a
inc dword [0x8294f0]
call fcn.0045dca0
mov al, byte [0x81c644]
test al, al
jne 0x411994
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 0x4119a8
sub eax, ecx
jmp 0x4119b0
mov ecx, dword [0x83f454]
add eax, ecx
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x4119d0
mov edx, ecx
or edx, eax
je 0x4119d0
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x411b66
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x411b66
mov ecx, dword [0x8294e8]
mov dword [0x829468], eax
mov eax, dword [0x829478]
cmp ecx, ebp
mov byte [0x81c6fc], 1
not eax
jle 0x411a54
mov ebx, 0x820e44
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx]
test ecx, ecx
je 0x411a3e
mov esi, dword [ecx + 4]
test esi, esi
jle 0x411a3e
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
sar edi, 2
test edx, edx
je 0x411a3e
test esi, esi
jle 0x411a3e
mov ebp, esi
mov ecx, dword [edx]
xor eax, ecx
lea ecx, [edx + 0x14]
test edi, edi
jle 0x411a38
mov esi, edi
xor eax, dword [ecx]
add ecx, 4
dec esi
jne 0x411a30
mov edx, dword [edx + 4]
dec ebp
jne 0x411a23
mov ecx, dword [esp + 0x10]
add ebx, 4
dec ecx
mov dword [esp + 0x10], ecx
jne 0x411a04
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
cmp eax, dword [0x8294d8]
je 0x411a67
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294e8]
xor ebp, ebp
cmp eax, ebp
je 0x411b5f
mov eax, dword [0x829464]
cmp eax, ebp
je 0x411aea
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x411adf
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 0x411ac5
mov dword [0x829488], ebp
push ebp
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, ebp
je 0x411adf
cmp dword [esi], 0x29874362
je 0x411aea
inc dword [0x8294f0]
call fcn.0045dca0
mov eax, dword [0x8294b0]
cmp eax, ebp
je 0x411b5f
push eax
call fcn.0045c0b0
add esp, 4
cmp eax, ebp
je 0x411b54
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 0x411b3a
mov dword [0x829488], ebp
push ebp
call fcn.0045d120
add esp, 4
call fcn.004059e0
cmp esi, ebp
je 0x411b54
cmp dword [esi], 0xbad0bad
je 0x411b5f
inc dword [0x8294f0]
call fcn.0045dca0
mov byte [0x81c6fc], 0
cmp edi, ebp
je 0x411b6e
mov eax, dword [edi]
jmp 0x411b73
mov eax, dword [0x89fe34]
inc eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x768]
cmp eax, 0xffffffff
je 0x411d7f
push eax
call fcn.0045c0b0
xor edi, edi
add esp, 4
cmp eax, edi
je 0x411d7f
mov ecx, dword [0x829478]
push 1
lea esi, [eax + 0x14]
push ecx
push 4
push esi
call fcn.0045cc80
push 1
lea edx, [esp + 0x30]
push 4
push edx
push esi
call fcn.0045cb20
push edi
call fcn.0045d120
mov eax, dword [0x81c700]
add esp, 0x24
inc eax
cmp eax, 0x186a0
mov dword [0x81c700], eax
jb 0x411d7f
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, eax
mov dword [0x81c700], edi
sub edx, ecx
cmp edx, eax
jne 0x411c05
call fcn.00406630
mov eax, dword [0x820dd0]
mov ecx, dword [0x829478]
mov edx, ecx
sub edx, eax
cmp edx, ecx
jne 0x411c12
call fcn.00406630
mov ecx, 0x83f450
call fcn.004065e0
mov ecx, dword [0x829468]
cmp eax, ecx
jb 0x411c3c
mov edx, eax
or edx, ecx
je 0x411c3c
mov edx, eax
sub edx, ecx
cmp edx, 0x3a98
jbe 0x411d7f
mov cl, byte [0x81c6fc]
test cl, cl
jne 0x411d7f
mov esi, dword [0x829478]
mov dword [0x829468], eax
mov eax, dword [0x8294e8]
mov byte [0x81c6fc], 1
cmp eax, edi
mov dword [esp + 0x14], edi
not esi
jle 0x411ce3
mov dword [esp + 0x10], 0x820e44
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x411cc1
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x411cc1
mov edi, dword [eax]
mov ebp, dword [edi + 0xc]
sar ebp, 2
test edi, edi
je 0x411cc1
xor ebx, ebx
test ecx, ecx
jle 0x411cc1
mov ecx, edi
call fcn.00406620
xor esi, eax
lea eax, [edi + 0x14]
test ebp, ebp
jle 0x411cb2
mov ecx, ebp
mov edx, dword [eax]
add eax, 4
xor esi, edx
dec ecx
jne 0x411ca8
mov ecx, dword [esp + 0x10]
mov edi, dword [edi + 4]
inc ebx
mov edx, dword [ecx]
cmp ebx, dword [edx + 4]
jl 0x411c96
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [0x8294e8]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jl 0x411c73
mov ebx, dword [esp + 0x18]
cmp esi, dword [0x8294d8]
je 0x411cf0
call fcn.00406630
mov eax, dword [0x8294e8]
xor esi, esi
cmp eax, esi
je 0x411d78
mov ecx, 0x829464
mov dword [esp + 0x10], esi
call fcn.00406620
test eax, eax
je 0x411d3a
mov ecx, dword [0x829464]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00407b70
add esp, 8
test al, al
je 0x411d35
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x411d35
cmp dword [eax], 0x29874362
je 0x411d3a
call fcn.00406630
mov ecx, 0x8294b0
mov dword [esp + 0x10], esi
call fcn.00406620
test eax, eax
je 0x411d78
mov eax, dword [0x8294b0]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00407b70
add esp, 8
test al, al
je 0x411d73
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x411d73
cmp dword [eax], 0xbad0bad
je 0x411d78
call fcn.00406630
mov byte [0x81c6fc], 0
mov edx, dword [ebx + 0xa0]
lea ecx, [ebx + 0xa0]
push 1
push 3
call dword [edx + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret