Function at 0x4166ad
Capabilities:
Encode data using xor

Disassembly:
push ebp
sub esp, 0x778
lea ebp, [esp - 4]
mov eax, dword [0x590cec]
xor eax, ebp
mov dword [ebp + 0x778], eax
push 0x5a4
mov eax, 0x52f885
call fcn.004f41c4
mov ebx, dword [ebp + 0x784]
mov esi, ecx
cmp byte [esi + 0x108], 0
mov dword [ebp - 0x2c], ebx
jne 0x4166f0
xor eax, eax
inc eax
jmp 0x416cec
cmp byte [esi + 0x109], 0
je 0x416701
push 2
pop eax
jmp 0x416cec
lea ecx, [ebp + 0xd8]
call fcn.0049c418
and dword [ebp - 4], 0
push 0x1c
lea eax, [ebx + 0x24]
push eax
lea edi, [esi + 0xa1]
push edi
mov dword [ebp - 0x1c], 1
call fcn.004f4490
add esp, 0xc
push 0x100
lea eax, [ebp + 0x204]
push eax
push edi
mov ecx, esi
call fcn.00416579
lea eax, [ebp + 0x204]
push eax
call fcn.004f9b59
lea edi, [eax + eax + 2]
pop ecx
mov dword [ebp - 0x28], edi
cmp dword [ebx + 0x40], 0
je 0x416774
push 0x14
add ebx, 0x10
lea eax, [ebp + 0x754]
push ebx
push eax
call fcn.004f4490
add esp, 0xc
jmp 0x41685f
cmp byte [esi + 0xfd], 0
je 0x416796
lea eax, [ebp + 0x754]
push eax
push edi
lea eax, [ebp + 0x204]
push eax
push 0x14
add ebx, 0x10
jmp 0x416853
cmp dword [ebp - 0x1c], 0
jne 0x416842
cmp byte [esi + 0xfe], 0
je 0x416842
lea ecx, [ebp + 0x424]
call fcn.0049de17
push 0x20
lea eax, [ebp + 0x6c4]
push eax
push 0x2710
lea ebx, [edi - 2]
push ebx
lea eax, [ebp + 0x204]
push eax
push 0x10
pop edi
push edi
push dword [ebp - 0x2c]
lea ecx, [ebp + 0x424]
mov byte [ebp - 4], 1
call fcn.0049e44f
push edi
lea eax, [ebp + 0x6c4]
push eax
push 1
push ebx
lea eax, [ebp + 0x204]
push eax
push 0x20
lea eax, [ebp + 0x6c4]
push eax
lea ecx, [ebp + 0x424]
call fcn.0049e44f
lea eax, [ebp + 0x754]
push eax
push dword [ebp - 0x28]
lea eax, [ebp + 0x204]
push eax
push edi
lea eax, [ebp + 0x6c4]
push eax
lea ecx, [ebp + 0xd8]
call fcn.0049d86a
lea ecx, [ebp + 0x424]
mov byte [ebp - 4], 0
call fcn.0049de20
jmp 0x416862
lea eax, [ebp + 0x754]
push eax
push edi
lea eax, [ebp + 0x204]
push eax
push 0x10
push ebx
lea ecx, [ebp + 0xd8]
call fcn.0049d86a
push 0x10
pop edi
mov eax, dword [esi + 0x100]
mov ecx, dword [eax]
xor edx, edx
inc edx
mov dword [ebp - 0x10], ecx
lea ebx, [eax + 4]
cmp ecx, edx
jne 0x41689f
add eax, 0x14
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x704]
push eax
push edi
push ebx
push 0x14
lea eax, [ebp + 0x754]
push eax
lea ecx, [ebp + 0xd8]
call fcn.0049d86a
jmp 0x416ac0
lea ecx, [eax + 0x20]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], eax
cmp eax, 0x6610
jne 0x416a6a
lea eax, [ebp + 0x704]
push eax
push edx
push ecx
push edi
push ebx
push 0x14
lea eax, [ebp + 0x754]
push eax
mov ecx, esi
call fcn.00416495
lea ecx, [ebp]
call fcn.0049e50b
and dword [ebp - 0x10], 0
push 0x100
lea eax, [ebp + 0x704]
push eax
lea eax, [ebp - 0x1a4]
push eax
mov byte [ebp - 4], 4
call fcn.00402ed5
push edi
lea eax, [ebp + 0x724]
push eax
lea eax, [ebp + 0x744]
push eax
call fcn.004f4490
mov eax, dword [esi + 0x104]
sub eax, 0x20
add esp, 0x18
test eax, eax
jle 0x4169b0
mov ebx, dword [ebp - 0x14]
lea eax, [ebp + 0x584]
sub eax, ebx
mov dword [ebp - 0x20], eax
lea eax, [ebp + 0x768]
push eax
lea eax, [ebp - 0x1a4]
push ebx
push eax
call fcn.0040344c
mov eax, dword [ebp + 0x744]
xor dword [ebp + 0x768], eax
mov eax, dword [ebp + 0x748]
xor dword [ebp + 0x76c], eax
mov eax, dword [ebp + 0x74c]
xor dword [ebp + 0x770], eax
mov eax, dword [ebp + 0x750]
xor dword [ebp + 0x774], eax
push edi
lea eax, [ebp + 0x768]
push eax
mov eax, dword [ebp - 0x20]
add eax, ebx
push eax
call fcn.004f4490
push edi
lea eax, [ebp + 0x744]
push ebx
push eax
call fcn.004f4490
mov eax, dword [esi + 0x104]
add dword [ebp - 0x10], edi
sub eax, 0x20
add esp, 0x24
add ebx, edi
cmp dword [ebp - 0x10], eax
jl 0x416935
lea eax, [ebp + 0x6c4]
push eax
push edi
lea eax, [ebp + 0x584]
push eax
push 0x14
lea eax, [ebp + 0x754]
push eax
lea ecx, [ebp]
call fcn.0049fa44
lea eax, [ebp + 0x684]
push eax
push 0x40
pop edi
push edi
lea eax, [ebp + 0x5d4]
push eax
push edi
lea eax, [ebp + 0x6c4]
push eax
lea ecx, [ebp]
call fcn.0049fa44
push edi
lea eax, [ebp + 0x684]
push eax
lea eax, [ebp + 0x594]
push eax
call fcn.004f7aa1
add esp, 0xc
test eax, eax
jne 0x416a2b
push edi
lea eax, [ebp + 0x5d4]
push eax
lea eax, [esi + 0xbd]
push eax
mov byte [esi + 0x109], 1
call fcn.004f4490
add esp, 0xc
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.0049e514
cmp byte [esi + 0x109], 0
jne 0x416cdb
cmp dword [ebp - 0x1c], 0
je 0x416cdb
cmp byte [esi + 0xfe], 0
je 0x416cdb
and dword [ebp - 0x1c], 0
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
jmp 0x416754
cmp eax, 0x6603
je 0x416a74
mov dword [ebp - 0x10], edx
lea eax, [ebp + 0x704]
push eax
push edx
push ecx
push edi
push ebx
push 0x14
lea eax, [ebp + 0x754]
push eax
mov ecx, esi
call fcn.004163bf
cmp dword [ebp - 0x10], 2
jne 0x416ab3
lea eax, [ebp + 0x718]
push eax
push 2
push dword [ebp - 0x24]
lea eax, [ebp + 0x754]
push edi
push ebx
push 0x14
push eax
mov ecx, esi
call fcn.004163bf
cmp dword [ebp - 0x18], 0x6801
jne 0x416ba1
lea ecx, [ebp - 0x5b0]
call fcn.004967bb
push 0x14
pop ebx
push ebx
lea eax, [ebp + 0x704]
push eax
lea ecx, [ebp - 0x5b0]
mov byte [ebp - 4], 2
call fcn.004967de
push 0x64
push dword [ebp - 0x14]
lea eax, [ebp + 0x584]
push eax
call fcn.004f4490
add esp, 0xc
push 0x64
lea eax, [ebp + 0x584]
push eax
lea ecx, [ebp - 0x5b0]
call fcn.004968b3
push 0x40
lea eax, [ebp + 0x5a8]
push eax
lea eax, [esi + 0xbd]
push eax
call fcn.004f4490
add esp, 0xc
lea eax, [ebp + 0x6c4]
push eax
push edi
lea eax, [ebp + 0x584]
push eax
push ebx
lea eax, [ebp + 0x754]
push eax
lea ecx, [ebp + 0xd8]
call fcn.0049d86a
lea eax, [ebp + 0x684]
push eax
push 0x40
lea eax, [ebp + 0x5a8]
push eax
push ebx
lea eax, [ebp + 0x6c4]
push eax
lea ecx, [ebp + 0xd8]
call fcn.0049d86a
push ebx
lea eax, [ebp + 0x684]
push eax
lea eax, [ebp + 0x594]
push eax
call fcn.004f7aa1
add esp, 0xc
neg eax
sbb al, al
inc al
lea ecx, [ebp - 0x5b0]
mov byte [esi + 0x109], al
mov byte [ebp - 4], 0
call fcn.004967c4
jmp 0x416a37
cmp dword [ebp - 0x18], 0x6603
jne 0x416a37
lea ecx, [ebp - 0xb0]
call fcn.0046e62f
lea eax, [ebp + 0x404]
push eax
lea eax, [ebp + 0x704]
push eax
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 3
call fcn.0046e9cf
mov eax, dword [ebp + 0x71c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x720]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 0x584]
xor ebx, ebx
sub eax, ecx
mov dword [ebp - 0x24], eax
jmp 0x416bfd
mov eax, dword [ebp - 0x24]
lea ecx, [ebp + 0x404]
push ecx
push 8
lea edi, [ebp + ebx + 0x584]
add eax, edi
push edi
push eax
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x20], eax
call fcn.00470069
mov eax, dword [ebp - 0x18]
xor dword [edi], eax
mov eax, dword [ebp - 0x10]
xor dword [edi + 4], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx + 4]
add ebx, 8
mov dword [ebp - 0x10], eax
cmp ebx, 0x68
jb 0x416bfa
lea eax, [ebp + 0x6c4]
push eax
push 0x10
lea eax, [ebp + 0x584]
push eax
push 0x14
lea eax, [ebp + 0x754]
push eax
lea ecx, [ebp + 0xd8]
call fcn.0049d86a
lea eax, [ebp + 0x684]
push eax
push 0x40
lea eax, [ebp + 0x5ac]
push eax
push 0x14
lea eax, [ebp + 0x6c4]
push eax
lea ecx, [ebp + 0xd8]
call fcn.0049d86a
push 0x14
lea eax, [ebp + 0x684]
push eax
lea eax, [ebp + 0x594]
push eax
call fcn.004f7aa1
add esp, 0xc
test eax, eax
jne 0x416cc7
push 0x40
lea eax, [ebp + 0x5ac]
push eax
lea eax, [esi + 0xbd]
push eax
mov byte [esi + 0x109], 1
call fcn.004f4490
add esp, 0xc
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0
call fcn.0046e638
jmp 0x416a37
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xd8]
call fcn.0049c421
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x778]
xor ecx, ebp
call fcn.004f41b5
add ebp, 0x77c
leave
ret 4