Function at 0x4a1190
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x5771e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push edi
mov edi, ecx
mov eax, dword [edi]
test eax, eax
mov dword [esp + 4], edi
jne 0x4a11cc
mov eax, 1
pop edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret 8
push ebx
push esi
mov esi, dword [esp + 0x50]
mov edx, dword [esi]
mov esi, dword [esi + 4]
xor eax, eax
xor ecx, ecx
sub esi, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], esi
je 0x4a11f5
movsx ebx, byte [edx + ecx]
shl ebx, 3
xor eax, ebx
inc ecx
cmp ecx, esi
jb 0x4a11e7
xor edx, edx
div dword [edi + 0x14]
mov eax, dword [edi + 0x114]
xor ebx, ebx
push ebp
lea ecx, [edx + edx*2]
mov edi, dword [eax + ecx*4]
mov edx, dword [eax + ecx*4 + 4]
lea eax, [eax + ecx*4]
sub edx, edi
sar edx, 2
test edx, edx
mov dword [esp + 0x20], edi
jbe 0x4a1256
lea ecx, [ecx]
mov ebp, dword [edi + ebx*4]
lea esi, [ebp + 0x18]
mov eax, esi
lea ecx, [eax + 1]
mov dword [esp + 0x54], ecx
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a1230
sub eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x14]
jne 0x4a1251
mov edi, dword [esp + 0x1c]
mov ecx, eax
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4a1270
mov edi, dword [esp + 0x20]
inc ebx
cmp ebx, edx
jb 0x4a1220
pop ebp
pop esi
pop ebx
mov eax, 1
pop edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret 8
mov eax, dword [ebp + 0x14]
xor edi, edi
sub eax, edi
je 0x4a13b6
dec eax
jne 0x4a13f9
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0050f0b2
add esp, 4
mov byte [esp + 0x54], 0
mov edx, dword [esp + 0x54]
push edx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
call fcn.00495930
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x50], 1
call fcn.004a0fc0
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 2
call fcn.004f1000
mov ecx, dword [esp + 0x10]
add ecx, 0x108
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x50], 3
call fcn.004f1060
mov edx, dword [ebp + 4]
push edi
push edx
lea ecx, [esp + 0x3c]
call fcn.004f1100
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
sub edi, esi
push edi
push esi
lea ecx, [esp + 0x3c]
call fcn.004f10c0
mov dword [esp + 0x54], 0x586770
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push ecx
push edx
push edi
mov bl, 4
push esi
lea ecx, [esp + 0x68]
mov byte [esp + 0x60], bl
call fcn.004f0d00
push 0x18
call fcn.0050f08e
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x4c], 5
je 0x4a1350
mov ecx, eax
call fcn.004f12b0
mov edi, eax
jmp 0x4a1352
xor edi, edi
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
mov byte [esp + 0x54], bl
call fcn.004f1260
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 2
call fcn.004f1020
test esi, esi
mov byte [esp + 0x4c], 1
je 0x4a139f
mov eax, dword [esp + 0x30]
sub eax, esi
cmp eax, 0x80
jbe 0x4a1395
push esi
call fcn.0052b8dd
add esp, 4
jmp 0x4a139f
push eax
push esi
call fcn.0050e390
add esp, 8
mov ecx, dword [esp + 0x18]
test ecx, ecx
mov dword [esp + 0x4c], 0xffffffff
je 0x4a13fd
call fcn.004016a0
jmp 0x4a13fd
push 0x14
call fcn.0050f08e
add esp, 4
mov dword [esp + 0x54], eax
cmp eax, edi
mov dword [esp + 0x4c], edi
je 0x4a13d5
mov ecx, eax
call fcn.004f0df0
mov edi, eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x10]
push edx
add ecx, 0x108
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x58], 0xffffffff
call fcn.004f0e50
jmp 0x4a13fd
mov edi, dword [esp + 0x54]
mov byte [esp + 0x54], 0
mov edx, dword [esp + 0x54]
push edx
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], edi
call fcn.004a0ee0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax], ecx
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [eax + 4], edx
je 0x4a1432
call fcn.004016a0
mov ecx, dword [esp + 0x44]
pop ebp
pop esi
pop ebx
xor eax, eax
pop edi
mov dword fs:[0], ecx
add esp, 0x40
ret 8