Function at 0x41a330
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe88
mov eax, 0x4c966c
push ebx
push esi
push edi
call fcn.0049fef4
mov esi, 0x4c4428
lea edi, [ebp - 0x98]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
push 0x29
mov eax, dword [ebp + 8]
add eax, 0x1d22
push eax
lea edx, [ebp - 0xd8]
push edx
call fcn.0049fa50
add esp, 0xc
lea ecx, [ebp - 0xd8]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00427da0
add esp, 8
xor ecx, ecx
mov edx, dword [0x4c444c]
cmp edx, dword [ebp + 0x10]
jne 0x41a3a0
mov eax, dword [0x4c4450]
cmp eax, dword [ebp + 0x14]
je 0x41a7e8
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [0x4c444c], edx
mov dword [0x4c4450], eax
inc dword [0x4c4448]
mov esi, 0xa
mov ebx, dword [0x4c4448]
mov eax, ebx
cdq
idiv esi
cmp edx, 9
jne 0x41a7e8
mov eax, ebx
mov ebx, 0x14
cdq
idiv ebx
and eax, 0x80000001
jns 0x41a3e6
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41a3ec
mov cl, 1
cmp cl, 1
jne 0x41a6a3
xor eax, eax
lea edx, [ebp - 0x98]
mov ecx, eax
inc eax
xor byte [edx], cl
inc edx
cmp eax, 0x14
jl 0x41a3fd
mov eax, dword [ebp + 8]
add eax, 0x1c30
cmp dword [eax], 0
je 0x41a419
mov edx, dword [eax]
jmp 0x41a41e
mov edx, 0x4c5e9b
push edx
call fcn.00446098
pop ecx
mov ebx, eax
mov word [ebp - 0x60], 8
mov edx, dword [ebp + 8]
lea eax, [ebp - 8]
add edx, 0x408
call fcn.004adb50
push eax
inc dword [ebp - 0x54]
lea edx, [ebp - 0x98]
lea eax, [ebp - 4]
call fcn.004adb50
inc dword [ebp - 0x54]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0xc]
inc dword [ebp - 0x54]
pop edx
call fcn.004adca4
cmp dword [ebp - 0xc], 0
je 0x41a46f
mov eax, dword [ebp - 0xc]
jmp 0x41a474
mov eax, 0x4c5e9c
push eax
call fcn.00446098
pop ecx
mov esi, eax
dec dword [ebp - 0x54]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004adc4c
dec dword [ebp - 0x54]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004adc4c
dec dword [ebp - 0x54]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004adc4c
cmp esi, ebx
jle 0x41a4b3
mov ebx, esi
mov eax, dword [0x4c4440]
add ebx, 2
mov esi, 0x1a
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp ebx, eax
jle 0x41a4d5
mov edx, ebx
mov eax, dword [0x4c4440]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [0x4c4440]
mov edx, dword [eax]
call dword [edx + 0x20]
cmp esi, eax
jle 0x41a4ef
mov edx, esi
mov eax, dword [0x4c4440]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [0x4c4440]
mov edx, dword [eax]
call dword [edx + 0x2c]
add eax, 0xa
push eax
mov eax, dword [0x4c4440]
mov edx, dword [eax]
call dword [edx + 0x20]
add eax, 0xa
push eax
mov eax, dword [0x4c4440]
call fcn.0045d718
mov ecx, 0xfffffff6
mov edx, 0xfffffff6
call fcn.00459030
mov eax, dword [0x4c4440]
call fcn.0045d718
mov edx, dword [eax + 0xc]
xor eax, eax
mov edi, dword [0x4c4440]
mov ebx, dword [edx + 0x18]
mov dword [ebp - 0x74], eax
push 0x50
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x128]
add eax, 0x738
push eax
push edx
call fcn.0049fa50
add esp, 0xc
mov eax, dword [ebp - 0x104]
mov edx, dword [ebp - 0xfc]
lea ecx, [ebp - 0xd8]
push ebx
push ecx
lea ecx, [ebp - 0x74]
push 0
sub eax, 0x3e8
push ecx
push edi
sub edx, 0x3e8
push edx
push eax
call fcn.004460d4
add esp, 0x1c
mov eax, dword [0x4c4440]
call fcn.0045d718
mov edx, dword [eax + 0xc]
lea eax, [ebp - 0x14]
mov ebx, dword [edx + 0x18]
mov word [ebp - 0x60], 0x14
mov edx, dword [ebp + 8]
add edx, 0x408
call fcn.004adb50
push eax
inc dword [ebp - 0x54]
lea edx, [ebp - 0x98]
lea eax, [ebp - 0x10]
call fcn.004adb50
inc dword [ebp - 0x54]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
inc dword [ebp - 0x54]
pop edx
call fcn.004adca4
cmp dword [ebp - 0x18], 0
je 0x41a5e1
mov edi, dword [ebp - 0x18]
jmp 0x41a5e6
mov edi, 0x4c5e9d
sar esi, 1
jns 0x41a5ed
adc esi, 0
xor eax, eax
mov dword [ebp - 0x78], eax
mov edx, dword [0x4c4440]
mov dword [ebp - 0x7c], edx
push 0x50
mov ecx, dword [ebp + 8]
add ecx, 0x738
push ecx
lea eax, [ebp - 0x178]
push eax
call fcn.0049fa50
add esp, 0xc
mov eax, dword [ebp - 0x154]
mov edx, dword [ebp - 0x14c]
lea ecx, [ebp - 0x78]
push ebx
push edi
push esi
push ecx
sub eax, 0x3e8
mov ecx, dword [ebp - 0x7c]
push ecx
sub edx, 0x3e8
push edx
push eax
call fcn.004460d4
add esp, 0x1c
dec dword [ebp - 0x54]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004adc4c
dec dword [ebp - 0x54]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004adc4c
dec dword [ebp - 0x54]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004adc4c
mov eax, dword [0x4c4440]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
mov eax, dword [0x4c4444]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [0x4c4440]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, dword [0x4c4444]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x41a7e8
xor eax, eax
lea edx, [ebp - 0xac]
mov dword [ebp - 0x84], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x700]
mov esi, edx
lea edx, [ebp - 0x98]
mov ecx, eax
xor byte [edx], cl
mov ecx, eax
mov ebx, dword [ebp - 0x84]
inc eax
xor cl, byte [esi]
add esi, 5
mov byte [ebx], cl
inc edx
inc dword [ebp - 0x84]
cmp eax, 0x14
jl 0x41a6c2
mov eax, dword [0x4c4440]
mov edx, dword [eax]
call dword [edx + 0x2c]
add eax, 0xa
push eax
mov eax, dword [0x4c4440]
mov edx, dword [eax]
call dword [edx + 0x20]
add eax, 0xa
push eax
mov eax, dword [0x4c4440]
call fcn.0045d718
mov ecx, 0xfffffff6
mov edx, 0xfffffff6
call fcn.00459030
mov word [ebp - 0x60], 0x20
lea edx, [ebp - 0xd8]
lea eax, [ebp - 0x1c]
call fcn.004adb50
inc dword [ebp - 0x54]
mov ecx, dword [eax]
mov eax, dword [0x4c4440]
push ecx
call fcn.0045d718
xor ecx, ecx
xor edx, edx
call fcn.004adb38
dec dword [ebp - 0x54]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004adc4c
mov word [ebp - 0x60], 0x2c
lea edx, [ebp - 0xac]
lea eax, [ebp - 0x24]
call fcn.004adb50
push eax
inc dword [ebp - 0x54]
lea edx, [ebp - 0x98]
lea eax, [ebp - 0x20]
call fcn.004adb50
inc dword [ebp - 0x54]
xor ecx, ecx
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x28]
inc dword [ebp - 0x54]
pop edx
call fcn.004adca4
lea eax, [ebp - 0x28]
mov eax, dword [eax]
push eax
mov eax, dword [0x4c4440]
mov edx, dword [eax]
call dword [edx + 0x20]
sar eax, 1
jns 0x41a7a5
adc eax, 0
push eax
mov eax, dword [0x4c4440]
call fcn.0045d718
xor edx, edx
pop ecx
call fcn.004adb38
dec dword [ebp - 0x54]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004adc4c
dec dword [ebp - 0x54]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004adc4c
dec dword [ebp - 0x54]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004adc4c
cmp byte [0x4c443c], 1
jne 0x41aba4
mov ecx, dword [ebp + 8]
mov byte [0x4c443c], 0
xor eax, eax
lea edx, [ebp - 0xac]
mov ecx, dword [ecx + 0x700]
mov esi, ecx
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x84], ecx
mov ebx, dword [ebp - 0x84]
mov ecx, eax
xor byte [ebx], cl
mov ecx, eax
xor cl, byte [esi]
add esi, 5
mov byte [edx], cl
inc edx
inc dword [ebp - 0x84]
inc eax
cmp eax, 0x14
jl 0x41a81b
mov dl, 1
mov eax, dword [0x45747c]
call fcn.0045d1ac
mov ebx, eax
mov dword [0x4c4440], ebx
mov dl, 5
mov eax, ebx
call fcn.0045e5dc
mov word [ebp - 0x60], 0x38
mov edx, 0x4c5e9e
lea eax, [ebp - 0x2c]
call fcn.004adb50
inc dword [ebp - 0x54]
mov ecx, dword [eax]
mov eax, dword [0x4c4440]
push ecx
call fcn.0045d718
mov eax, dword [eax + 0xc]
pop edx
call fcn.00458560
dec dword [ebp - 0x54]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004adc4c
mov eax, dword [0x4c4440]
call fcn.0045d718
mov eax, dword [eax + 0xc]
mov edx, 0xa
call fcn.004585d8
mov eax, dword [0x4c4440]
call fcn.0045d718
mov eax, dword [eax + 0xc]
xor edx, edx
call fcn.00458338
push 1
push 0
lea ecx, [ebp - 0x7f]
push ecx
call fcn.0049fac0
lea eax, [ebp - 0x7f]
add esp, 0xc
mov dl, byte [eax]
mov eax, dword [0x4c4440]
push edx
call fcn.0045d718
mov eax, dword [eax + 0xc]
pop edx
call fcn.00458604
mov eax, dword [0x4c4440]
call fcn.0045d718
mov eax, dword [eax + 0x14]
mov edx, 0xffffff
call fcn.00458b08
mov eax, dword [0x4c4440]
call fcn.0045d718
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.00458c24
mov eax, dword [0x4c4440]
call fcn.0045d718
mov eax, dword [eax + 0x10]
mov edx, 1
call fcn.00458930
mov eax, dword [0x4c4440]
call fcn.0045d718
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x1c30]
call fcn.004591b0
mov word [ebp - 0x60], 0x44
mov edx, dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 0x34]
add edx, 0x408
call fcn.004adb50
push eax
inc dword [ebp - 0x54]
lea edx, [ebp - 0x98]
lea eax, [ebp - 0x30]
call fcn.004adb50
inc dword [ebp - 0x54]
xor ecx, ecx
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x38]
inc dword [ebp - 0x54]
pop edx
call fcn.004adca4
lea eax, [ebp - 0x38]
mov eax, dword [eax]
push eax
mov eax, dword [0x4c4440]
call fcn.0045d718
pop edx
call fcn.004591b0
mov esi, eax
dec dword [ebp - 0x54]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004adc4c
dec dword [ebp - 0x54]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.004adc4c
dec dword [ebp - 0x54]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004adc4c
cmp esi, ebx
jle 0x41a9cf
mov ebx, esi
mov word [ebp - 0x60], 0x50
add ebx, 2
lea edx, [ebp - 0x98]
lea eax, [ebp - 0x3c]
call fcn.004adb50
inc dword [ebp - 0x54]
mov ecx, dword [eax]
mov eax, dword [0x4c4440]
push ecx
call fcn.0045d718
pop edx
call fcn.004591cc
mov esi, eax
lea eax, [ebp - 0x3c]
add esi, esi
mov edx, 2
add esi, 2
dec dword [ebp - 0x54]
call fcn.004adc4c
mov eax, dword [ebp + 8]
mov ecx, 0x63
add eax, 0x704
xor edx, edx
div ecx
add edx, ebx
mov eax, dword [ebp + 8]
mov ebx, edx
call fcn.0047b1c8
xor edx, edx
mov ecx, 0x14
div ecx
mov eax, dword [0x4c4440]
add edx, esi
mov esi, edx
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, esi
mov eax, dword [0x4c4440]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [0x4c4440]
mov edx, dword [eax]
call dword [edx + 0x2c]
add eax, 0xa
push eax
mov eax, dword [0x4c4440]
mov edx, dword [eax]
call dword [edx + 0x20]
add eax, 0xa
push eax
mov eax, dword [0x4c4440]
call fcn.0045d718
mov ecx, 0xfffffff6
mov edx, 0xfffffff6
call fcn.00459030
mov word [ebp - 0x60], 0x5c
lea edx, [ebp - 0xd8]
lea eax, [ebp - 0x40]
call fcn.004adb50
inc dword [ebp - 0x54]
mov ecx, dword [eax]
mov eax, dword [0x4c4440]
push ecx
call fcn.0045d718
xor ecx, ecx
xor edx, edx
call fcn.004adb38
dec dword [ebp - 0x54]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004adc4c
mov word [ebp - 0x60], 0x68
lea edx, [ebp - 0xac]
lea eax, [ebp - 0x48]
call fcn.004adb50
push eax
inc dword [ebp - 0x54]
lea edx, [ebp - 0x98]
lea eax, [ebp - 0x44]
call fcn.004adb50
inc dword [ebp - 0x54]
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x4c]
inc dword [ebp - 0x54]
pop edx
call fcn.004adca4
lea eax, [ebp - 0x4c]
mov eax, dword [eax]
push eax
mov eax, dword [0x4c4440]
call fcn.0045d718
mov ecx, esi
sar ecx, 1
jns 0x41ab1a
adc ecx, 0
xor edx, edx
call fcn.004adb38
dec dword [ebp - 0x54]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.004adc4c
dec dword [ebp - 0x54]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004adc4c
dec dword [ebp - 0x54]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004adc4c
mov dl, 1
mov eax, dword [0x45747c]
call fcn.0045d1ac
mov dword [0x4c4444], eax
mov eax, dword [0x4c4440]
call fcn.0045d7fc
mov edx, eax
mov eax, dword [0x4c4444]
call fcn.0045e5dc
mov eax, dword [0x4c4440]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
mov eax, dword [0x4c4444]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [0x4c4440]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, dword [0x4c4444]
mov ecx, dword [eax]
call dword [ecx + 0x34]
push 0xcc0020
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [0x4c4444]
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [0x4c4444]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push 0
push 0
mov eax, dword [0x4c4444]
call fcn.0045d718
call fcn.00459350
push eax
call sub.GDI32.DLL_BitBlt
push 0x1e
mov edx, dword [0x4c4440]
push edx
mov ecx, dword [0x4c4444]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0042967c
add esp, 0x10
mov eax, dword [0x4c4444]
push 0xcc0020
push 0
push 0
call fcn.0045d718
call fcn.00459350
push eax
mov eax, dword [0x4c4444]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [0x4c4444]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp + 0xc]
push edx
call sub.GDI32.DLL_BitBlt
mov ecx, dword [ebp - 0x70]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret