Function at 0x458fe8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword fs:[0]
push 0xffffffffffffffff
push 0x45940a
push edx
mov dword fs:[0], esp
sub esp, 8
sub esp, 0xe0
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xec], edi
xor ecx, ecx
mov dword [ebp - 4], ecx
lea eax, [ebp + 8]
call fcn.004582e8
mov edi, eax
cmp eax, 6
jae 0x459122
test edi, edi
je 0x45908a
cmp edi, 1
je 0x459045
jmp 0x4590be
push 0x80
lea edx, [ebp - 0x38]
mov edi, esi
mov dword [ebp - 0x90], 0
push edx
lea ecx, [ebp - 0x90]
lea eax, [ebp + 8]
call fcn.0045835c
mov ebx, eax
call fcn.00458434
push eax
lea eax, [ebp - 0x90]
call fcn.0045758c
mov ecx, dword [eax]
mov eax, esi
push ecx
call fcn.00458ec0
jmp 0x4593b1
mov esi, 0x4c51d0
push esi
call fcn.0044a170
add esp, 4
mov edx, 0x4c52f0
push edx
mov edi, 0x4c52a0
mov ebx, eax
push 0x1e
mov eax, ebx
push edi
push 0x1b
push 0xec
push 0
call fcn.00458b9c
push eax
call fcn.0044a110
lea edx, [ebp - 0x78]
lea eax, [ebp + 8]
push edx
call fcn.0045835c
lea eax, [ebp - 0x78]
call fcn.0045843c
xor al, 1
je 0x4593b1
mov eax, esi
lea edx, [ebp - 0x64]
lea eax, [ebp - 0x78]
call fcn.00458434
mov ebx, eax
lea eax, [ebp - 0x64]
push 0x90
push ebx
mov dword [ebp - 0x64], 0
push edi
call fcn.0045759c
mov ecx, dword [eax]
mov eax, esi
push ecx
call fcn.00458ec0
lea eax, [ebp - 0x78]
call fcn.00458448
lea eax, [ebp - 0x78]
call fcn.0045843c
xor al, 1
jne 0x4590df
jmp 0x4593b1
lea edx, [ebp - 0x58]
lea eax, [ebp + 8]
push edx
call fcn.00458288
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [esi + 0x30]
lea edi, [ebp - 0x48]
lea eax, [ebp - 0x48]
push dword [esi + 0x2c]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], edx
call fcn.0042c604
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.004639c0
mov ebx, eax
test eax, eax
js 0x4591f6
lea eax, [ebp - 0x58]
call fcn.0045a554
add eax, eax
cmp eax, 6
jbe 0x45919c
push 0x8c
lea edx, [ebp - 0x88]
mov edi, esi
mov dword [ebp - 0x88], 0
push ebx
mov eax, edx
call fcn.0045758c
mov ecx, dword [eax]
mov eax, esi
push ecx
call fcn.00458ec0
jmp 0x4591c5
push 0x88
lea edx, [ebp - 0x8c]
mov edi, esi
mov dword [ebp - 0x8c], 0
push ebx
mov eax, edx
call fcn.0045758c
mov ecx, dword [eax]
mov eax, esi
push ecx
call fcn.00458ec0
mov dword [ebp - 4], 0xffffffff
call fcn.004593d5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ebx, dword [ebp - 0xf4]
mov esi, dword [ebp - 0xf0]
mov edi, dword [ebp - 0xec]
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x58]
call fcn.0045a554
add eax, eax
cmp eax, 6
jbe 0x4592c0
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xd0], ecx
lea ebx, [ebp - 0xd0]
mov dword [ebp - 0xcc], edx
lea eax, [ebp - 0xd0]
call fcn.0042c604
mov edx, dword [ebp - 0xcc]
push edx
mov eax, dword [ebp - 0xd0]
push eax
lea eax, [ebp - 0xb8]
call fcn.00463a10
lea esi, [ebp - 0xbc]
mov eax, esi
push 0x8c
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xbc], 0
push dword [edi + 0x34]
call fcn.0045758c
mov edx, dword [eax]
push edx
mov eax, dword [ebp - 0x18]
call fcn.00458ec0
mov esi, 0x4c01e0
push 1
mov ecx, dword [ebp - 0x18]
add ecx, 0x34
push ecx
push esi
call fcn.0044d73c
lea esi, [ebp - 0xb8]
mov ecx, 0xa
mov dword [ebp - 0xd8], eax
mov edi, dword [ebp - 0xd8]
lea edi, [edi + edi*4]
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp - 0xd4]
lea edi, [eax + edi*8 - 0x28]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
jmp 0x459338
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0xc0]
mov eax, ecx
push 0x88
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0xc0], 0
push dword [esi + 0x2c]
call fcn.0045758c
mov edx, dword [eax]
push edx
mov eax, dword [ebp - 0x18]
call fcn.00458ec0
mov esi, 0x4c01e0
push 1
mov ecx, dword [ebp - 0x18]
add ecx, 0x34
push ecx
push esi
call fcn.0044d73c
mov esi, 0x510360
mov ecx, 0xa
mov dword [ebp - 0xe0], eax
mov edi, dword [ebp - 0xe0]
lea edi, [edi + edi*4]
mov dword [ebp - 0xdc], edx
mov eax, dword [ebp - 0xdc]
lea edi, [eax + edi*8 - 0x28]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0xc8], ecx
lea edi, [ebp - 0xc8]
mov dword [ebp - 0xc4], edx
lea eax, [ebp - 0xc8]
call fcn.0042c604
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0xc4]
lea ecx, [esi + 0x2c]
push 1
mov dword [ebp - 0x1c], edx
mov edx, 0x4bebf0
push ecx
push edx
call fcn.0044d73c
mov dword [ebp - 0xe4], edx
mov ebx, dword [ebp - 0xe4]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xe8]
lea ecx, [ebx + ecx*8]
mov dword [ecx - 4], edx
mov eax, dword [ebp - 0x20]
mov dword [ecx - 8], eax
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc]
push 0xffffffffffffffff
push ecx
push 0x4c5280
call fcn.004540c0
add esp, 0xc
call fcn.004593d5
jmp 0x4593e5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ebx, dword [ebp - 0xf4]
mov esi, dword [ebp - 0xf0]
mov edi, dword [ebp - 0xec]
mov esp, ebp
pop ebp
ret 8