Function at 0x46abbb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10680
call 0x4aa870
push esi
push edi
lea eax, [esp + 0x218]
call fcn.00469a28
lea eax, [esp + 0x140]
call fcn.0046a7ea
push 0
push dword [ebx + 4]
xor edi, edi
push dword [ebx]
inc edi
mov dword [esp + 0x28], edi
call 0x4a816e
add esp, 0xc
lea eax, [esp + 0x580]
push eax
push dword [ebp + 8]
mov esi, ebx
call fcn.0046b00f
test eax, eax
je 0x46ac19
push 6
pop eax
jmp 0x46ae97
push dword [ebx]
lea eax, [esp + 0x13]
push edi
push edi
push eax
call 0x4a87c9
push dword [ebx]
lea eax, [esp + 0x28]
push edi
push 4
pop esi
push esi
push eax
call 0x4a87c9
push dword [ebx]
mov edi, dword [esp + 0x38]
push 1
lea eax, [esp + 0x3c]
push esi
xor edi, 0x87bc
push eax
mov dword [esp + 0x48], edi
call 0x4a87c9
push dword [ebx]
lea eax, [esp + 0x48]
push 1
push esi
push eax
call 0x4a87c9
mov eax, dword [esp + 0x54]
add esp, 0x40
push dword [ebx]
xor eax, 0xa685
push 1
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x3c]
push esi
push eax
call 0x4a87c9
push dword [ebx]
lea eax, [esp + 0x44]
push 1
push esi
push eax
call 0x4a87c9
push dword [ebx]
lea eax, [esp + 0x50]
push 1
push esi
push eax
call 0x4a87c9
push dword [ebx]
lea eax, [esp + 0x5c]
push 1
push esi
push eax
call 0x4a87c9
add esp, 0x40
lea eax, [esp + 0x478]
push eax
push 0x104
call dword [0x4661b8]
lea eax, [esp + 0x38]
push eax
push 0
push 0x46be8c
lea eax, [esp + 0x484]
push eax
call dword [0x4661bc]
lea eax, [esp + 0x38]
push 0x46be90
push eax
call 0x4a80d4
test eax, eax
pop ecx
pop ecx
mov dword [esp + 0x20], eax
jne 0x46ad00
push 9
jmp 0x46ac13
mov eax, dword [ebx + 8]
add eax, 0x2477
push eax
lea esi, [esp + 0x144]
call fcn.0046a92a
xor esi, esi
cmp edi, esi
mov dword [esp + 0x10], esi
jle 0x46adb4
jmp 0x46ad29
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add eax, 0x10000
cmp eax, edi
jle 0x46ad3e
mov esi, edi
sub esi, dword [esp + 0x10]
jmp 0x46ad43
mov esi, 0x10000
push dword [ebx]
add dword [esp + 0x14], esi
push esi
lea eax, [esp + 0x690]
push 1
push eax
call 0x4a87c9
add esp, 0x10
xor edi, edi
test esi, esi
jle 0x46ad7b
lea eax, [esp + 0x140]
push eax
call fcn.0046a8fc
xor byte [esp + edi + 0x688], al
inc edi
cmp edi, esi
jl 0x46ad62
push esi
lea eax, [esp + 0x68c]
push eax
lea edi, [esp + 0x24]
call fcn.004699d4
push dword [esp + 0x20]
lea eax, [esp + 0x68c]
push esi
push 1
push eax
call 0x4a83bd
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp eax, dword [esp + 0x18]
jl 0x46ad25
xor esi, esi
push dword [esp + 0x20]
call 0x4a84b1
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x28], eax
pop ecx
je 0x46addd
push 0xa
pop esi
lea eax, [esp + 0x38]
push eax
call dword [0x466178]
mov eax, esi
jmp 0x46ae97
cmp byte [esp + 0xf], 1
jne 0x46ae37
lea eax, [esp + 0x218]
call fcn.00469a28
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x240]
push eax
mov dword [esp + 0x234], esi
mov dword [esp + 0x238], esi
call 0x4a4f60
push dword [ebp + 0xc]
lea eax, [esp + 0x34d]
push eax
call 0x4a4f60
add esp, 0x10
lea eax, [esp + 0x218]
call fcn.00469a54
test eax, eax
je 0x46ae51
push 0xb
jmp 0x46adca
push esi
push dword [ebp + 0xc]
lea eax, [esp + 0x40]
push eax
call dword [0x46613c]
test eax, eax
jne 0x46ae51
push 7
jmp 0x46adca
lea eax, [esp + 0x38]
push eax
call dword [0x466178]
push esi
push 0x80
push 3
push esi
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [0x466128]
mov edi, eax
cmp edi, 0xffffffff
je 0x46ae95
lea eax, [esp + 0x28]
push eax
push esi
lea eax, [esp + 0x38]
push eax
push edi
call dword [0x466150]
push edi
call dword [fcn.00466294]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8