Function at 0x45bea8
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x658
mov edx, eax
cmp dword [0x873c5c], 0
jle 0x45c16d
xor eax, eax
mov dword [esp + 0x448], edx
mov ebx, eax
mov byte [esp + 0xc], 0
movsx edx, byte [0x87396c]
test edx, edx
jne 0x45beef
lea esi, [esp + 0xc]
mov edi, 0x662240
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x45bee5
lea ebp, [ebx + ebx]
mov ecx, dword [0x873c58]
lea edi, [esp + 0xc]
mov edx, dword [ecx + ebx*4]
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x45bf09
lea eax, [esp + 0x424]
lea edx, [esp + 0xc]
call fcn.00464aac
movsx edx, byte [esp + 0x42c]
test edx, edx
je 0x45c1a1
mov ebp, dword [esp + 0x434]
mov ecx, dword [esp + 0x438]
add ebp, 8
adc ecx, 0
push 0
push ecx
push ebp
push dword [esp + 0x430]
call fcn.00472594
add esp, 0x10
lea eax, [esp + 0x424]
call fcn.0045c1cc
mov dword [esp + 0x444], eax
lea eax, [esp + 0x424]
call fcn.0045c1cc
mov esi, eax
lea edx, [esi + 1]
push edx
call fcn.0046fe4c
mov edi, eax
mov ebp, edi
mov edx, dword [esp + 0x438]
mov eax, dword [esp + 0x43c]
add edx, 0x20
adc eax, 0
push 0
push eax
push edx
push dword [esp + 0x434]
call fcn.00472594
add esp, 0x14
lea eax, [esp + 0x424]
mov edx, edi
mov ecx, esi
call fcn.00464b28
mov ecx, dword [esp + 0x444]
test ecx, ecx
jle 0x45c149
xor esi, esi
mov dword [esp + 0x440], edi
mov dword [esp + 0x43c], ebx
movzx ebx, byte [ebp + 4]
neg ebx
movzx ebx, byte [ebx + 0x6619bf]
add ebp, 5
lea eax, [esp + 0x218]
push ebx
push ebp
push eax
call dword [0x5b9a6c]
mov byte [esp + ebx + 0x224], 0
lea ebp, [ebp + ebx + 0x12]
add ebp, 4
lea edx, [esp + 0x458]
lea eax, [esp + 0x224]
push ebx
push eax
push edx
call dword [0x5b9a6c]
add esp, 0x18
mov byte [esp + ebx + 0x44c], 0
test ebx, ebx
jle 0x45c04c
xor edx, edx
movsx eax, byte [esp + edx + 0x44c]
neg eax
dec eax
mov byte [esp + edx + 0x44c], al
inc edx
cmp edx, ebx
jl 0x45c035
test ebx, ebx
jle 0x45c05f
xor eax, eax
xor byte [esp + eax + 0x44c], 0x36
inc eax
cmp eax, ebx
jl 0x45c052
lea eax, [esp + 0x44c]
push 9
push eax
mov edx, dword [esp + 0x450]
push edx
call fcn.004726a0
add esp, 0xc
test eax, eax
jne 0x45c12b
mov ebx, dword [0x8738f4]
test ebx, ebx
jle 0x45c0b8
xor edi, edi
lea edx, [esp + 0x44c]
mov eax, dword [0x8738f0]
push dword [eax + edi*4]
push edx
call fcn.0046ff90
add esp, 8
test eax, eax
je 0x45c12b
inc edi
mov ebx, dword [0x8738f4]
cmp edi, ebx
jl 0x45c08d
lea edi, [esp + 0x44c]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x45c0d1
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x45c0c9
mov edi, eax
lea edx, [edi + 2]
push edx
call fcn.0046fe4c
mov edx, dword [0x8738f0]
mov dword [edx + ebx*4], eax
mov edx, dword [0x8738f4]
mov ebx, dword [0x8738f0]
lea ecx, [esp + 0x450]
push edi
push ecx
push dword [ebx + edx*4]
call dword [0x5b9a6c]
add esp, 0x10
mov ecx, dword [0x8738f4]
mov edx, dword [0x8738f0]
mov ebx, dword [edx + ecx*4]
mov byte [edi + ebx], 0
mov eax, dword [0x8738f4]
inc eax
mov dword [0x8738f4], eax
cmp eax, 0x2000
je 0x45c17a
inc esi
mov eax, dword [esp + 0x444]
cmp esi, eax
jl 0x45bfde
mov edi, dword [esp + 0x440]
mov ebx, dword [esp + 0x43c]
test edi, edi
je 0x45c154
push edi
call fcn.004703de
pop ecx
lea eax, [esp + 0x424]
call fcn.00464b3c
inc ebx
cmp ebx, dword [0x873c5c]
jl 0x45becc
xor eax, eax
add esp, 0x658
pop ebx
pop ebp
pop esi
pop edi
ret
mov edi, dword [esp + 0x440]
mov ebx, dword [esp + 0x43c]
push 0x2000
push 0x879bc4
push 0x8792b0
call fcn.00409070
add esp, 0xc
jmp 0x45c149
mov eax, ebp
mov edx, dword [0x873c58]
push dword [edx + eax*2]
push 1
push 0xdbfb0
call fcn.0046ced8
mov eax, 0xffffffff
add esp, 0x664
pop ebx
pop ebp
pop esi
pop edi
ret