Function at 0x45a888
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x3c
mov esi, edx
mov ebp, eax
xor ecx, ecx
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], cl
cmp byte [0x80aa90], 1
je 0x45ab1f
mov byte [esp + 0x38], 0
mov byte [esp + 0x39], 1
mov byte [esp + 0x3a], 3
mov byte [esp + 0x3b], 2
xor eax, eax
mov ebx, eax
jmp 0x45a8c5
inc ebx
movsx ecx, bl
cmp ecx, 4
jge 0x45ab18
movsx ecx, byte [esp + ecx + 0x38]
test ecx, ecx
je 0x45ab00
cmp ecx, 1
je 0x45a912
cmp ecx, 2
jne 0x45a8f9
lea eax, [esp + 8]
mov edx, esi
call fcn.0040d7c0
test eax, eax
jne 0x45a921
jmp 0x45a8c4
cmp ecx, 3
jne 0x45a8c4
mov eax, esi
call fcn.0040d79c
movsx eax, al
test eax, eax
jne 0x45aaf6
jmp 0x45a8c4
lea eax, [esp + 8]
mov edx, esi
call fcn.0040da9c
test eax, eax
je 0x45a8c4
test eax, eax
jle 0x45aaae
movsx ecx, byte [esp + 0x10]
cmp ecx, 1
je 0x45aa9e
cmp ecx, 2
je 0x45aa8e
cmp ecx, 3
je 0x45aa7e
cmp ecx, 4
je 0x45aa6e
mov eax, 0xfffffffe
movsx ecx, al
test ecx, ecx
jne 0x45aa54
mov ebp, dword [ebp + 0x34]
mov eax, ebp
call fcn.0043ced0
push 0x24
call fcn.00403564
pop ecx
mov edx, eax
mov dword [ebp + 0xa0], edx
test edx, edx
je 0x45aa3e
mov eax, dword [esp + 0xc]
mov dword [edx + 0x14], eax
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov ebp, dword [eax + 0xc]
mov dword [edx + 4], ebp
mov esi, dword [eax + 0x10]
mov dword [edx + 8], esi
mov ebp, dword [eax + 0x14]
mov dword [edx + 0xc], ebp
mov ebp, dword [eax + 0x18]
mov dword [edx + 0x10], ebp
lea ebp, [eax + 0x20]
mov dword [edx + 0x18], ebp
lea ebp, [ecx + ecx]
add ebp, ebp
lea ebp, [eax + ebp + 0x20]
mov dword [edx + 0x1c], ebp
lea ebp, [ecx + ecx]
add ebp, ebp
add ebp, ebp
lea ebp, [eax + ebp + 0x20]
mov dword [edx + 0x20], ebp
test ecx, ecx
jle 0x45aa34
xor eax, eax
mov ecx, dword [edx + 0x1c]
lea ebx, [eax + eax]
mov ecx, dword [ecx + eax*4]
test ecx, ecx
jle 0x45a9fc
xor ebp, ebp
mov esi, dword [edx + 0x14]
mov edi, dword [edx + 0x18]
add esi, dword [edi + ebx*2]
mov ecx, ebp
and ecx, 0xf
add ecx, 0x10
xor byte [esi + ebp], cl
mov ecx, dword [edx + 0x1c]
mov ecx, dword [ecx + ebx*2]
inc ebp
cmp ebp, ecx
jl 0x45a9dd
mov ebp, dword [edx + 0x20]
cmp dword [ebp + ebx*2], 0
jle 0x45aa2f
xor ebp, ebp
jmp 0x45aa10
mov ecx, dword [edx + 0x1c]
mov ecx, dword [ecx + ebx*2]
mov esi, dword [edx + 0x14]
mov edi, dword [edx + 0x18]
add esi, dword [edi + ebx*2]
add esi, ecx
mov ecx, ebp
and ecx, 0xf
add ecx, 0x10
xor byte [esi + ebp], cl
mov ecx, dword [edx + 0x20]
inc ebp
cmp ebp, dword [ecx + ebx*2]
jl 0x45aa0a
inc eax
cmp eax, dword [edx]
jl 0x45a9ce
xor eax, eax
add esp, 0x3c
pop ebx
pop ebp
pop esi
pop edi
ret
push 1
push 0x186aa
call fcn.00468eb4
xor eax, eax
add esp, 0x44
pop ebx
pop ebp
pop esi
pop edi
ret
push esi
push 1
push 0x1964a
call fcn.00468e28
mov eax, 0xffffffff
add esp, 0x48
pop ebx
pop ebp
pop esi
pop edi
ret
lea eax, [esp + 8]
mov edx, esi
call fcn.0043e99c
jmp 0x45a957
lea eax, [esp + 8]
mov edx, esi
call fcn.0043ea1c
jmp 0x45a957
lea eax, [esp + 8]
mov edx, esi
call fcn.0043ea94
jmp 0x45a957
lea eax, [esp + 8]
mov edx, esi
call fcn.0043f394
jmp 0x45a957
je 0x45aae1
cmp eax, 0xffffffff
je 0x45aacc
cmp eax, 0xfffffffe
jne 0x45aa54
push esi
push 1
push 0xdbfb0
call fcn.00468e58
add esp, 0xc
jmp 0x45aa54
push esi
push 1
push 0x1964a
call fcn.00468e58
add esp, 0xc
jmp 0x45aa54
push esi
push 1
push 0x1967c
call fcn.00468e58
add esp, 0xc
jmp 0x45aa54
mov byte [esp + 0x10], 1
jmp 0x45a921
lea eax, [esp + 8]
mov edx, esi
call fcn.0040daf4
test eax, eax
jne 0x45a921
jmp 0x45a8c4
xor eax, eax
jmp 0x45a921
mov byte [esp + 0x38], 0
mov byte [esp + 0x39], 1
mov byte [esp + 0x3a], 2
mov byte [esp + 0x3b], 3
jmp 0x45a8be