Function at 0x45d520
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
lea eax, [esp]
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov edi, dword [esp + 0x20]
push eax
push ebp
push edi
call fcn.0042fa90
mov esi, eax
add esp, 0xc
test esi, esi
je 0x45d60b
mov eax, dword [esp + 0x28]
mov ebx, dword [esi + 8]
test eax, eax
jne 0x45d5fb
mov ecx, dword [esi + 4]
mov eax, dword [esi]
test ecx, ecx
je 0x45d563
mov dword [ecx], eax
jmp 0x45d566
mov dword [edi + 8], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x45d572
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x45d58d
mov eax, dword [esp + 0x10]
cmp dword [ecx + eax*8 + 4], esi
lea ecx, [ecx + eax*8]
jne 0x45d58b
mov eax, dword [esi]
mov dword [ecx + 4], eax
dec dword [ecx]
cmp dword [section..data], 0
je 0x45d5d8
mov eax, dword [0x50bf70]
test eax, eax
je 0x45d5a9
push eax
call dword [0x509054]
add esp, 4
push esi
call dword [0x509030]
sub dword [0x50bdf0], eax
dec dword [0x50be14]
push esi
call dword [0x509028]
mov eax, dword [0x50bf70]
add esp, 8
test eax, eax
je 0x45d5e2
push eax
call dword [0x50905c]
jmp 0x45d5df
push esi
call dword [0x509028]
add esp, 4
add dword [edi + 4], 0xffffffff
jne 0x45d601
push edi
call fcn.0045d400
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebp
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
mov esi, dword [esp + 0x28]
test esi, esi
je 0x45d812
push 0
push 0x10
call fcn.00461c40
mov ebx, eax
add esp, 8
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x45d637
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], esi
inc dword [edi + 4]
mov esi, dword [edi + 4]
cmp esi, 0xa
jb 0x45d7a2
mov ecx, dword [edi]
lea eax, [ecx + ecx]
cmp esi, eax
jbe 0x45d7a2
add esi, esi
mov edx, 0x80
lea eax, [esi*8]
cmp eax, 0x400
cmova esi, edx
cmp esi, ecx
je 0x45d7a2
mov eax, dword [0x50be40]
test eax, eax
je 0x45d682
call eax
lea eax, [esi*8]
push 0
push eax
call fcn.00461c40
mov ecx, dword [0x50be44]
add esp, 8
mov esi, eax
mov dword [esp + 0x14], esi
test ecx, ecx
je 0x45d6a6
call ecx
test esi, esi
je 0x45d7a2
push dword [edi + 0xc]
call fcn.00418550
push esi
mov dword [edi + 0xc], esi
call dword [0x509030]
shr eax, 3
mov dword [esp + 0x18], eax
mov dword [edi], eax
lea ecx, [eax*8]
push ecx
push 0
push esi
call fcn.004c2200
mov esi, dword [edi + 8]
add esp, 0x14
mov dword [edi + 8], 0
test esi, esi
je 0x45d793
mov edi, edi
mov ebx, dword [esi + 0xc]
xor ebp, ebp
mov al, byte [ebx]
test al, al
je 0x45d71e
jmp 0x45d700
movzx eax, al
lea ecx, [ebp*8]
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x4ea938]
mov al, byte [ebx]
xor edx, ecx
xor ebp, edx
test al, al
jne 0x45d700
xor edx, edx
mov ebx, dword [esi]
mov eax, ebp
div dword [esp + 0x10]
mov eax, dword [esp + 0x14]
lea edx, [eax + edx*8]
test edx, edx
je 0x45d768
mov eax, dword [edx]
test eax, eax
je 0x45d73e
mov ecx, dword [edx + 4]
jmp 0x45d740
xor ecx, ecx
inc eax
mov dword [edx + 4], esi
mov dword [edx], eax
test ecx, ecx
je 0x45d768
mov dword [esi], ecx
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x45d760
mov dword [eax], esi
mov dword [ecx + 4], esi
jmp 0x45d781
mov dword [edi + 8], esi
mov dword [ecx + 4], esi
jmp 0x45d781
mov eax, dword [edi + 8]
mov dword [esi], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x45d777
mov dword [eax + 4], esi
mov dword [esi + 4], 0
mov dword [edi + 8], esi
mov esi, ebx
test ebx, ebx
jne 0x45d6f0
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
push ebp
call fcn.00485830
xor edx, edx
add esp, 4
div dword [edi]
jmp 0x45d7a6
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x45d7f9
lea edx, [eax + edx*8]
test edx, edx
je 0x45d7f9
mov eax, dword [edx]
test eax, eax
je 0x45d7bf
mov ecx, dword [edx + 4]
jmp 0x45d7c1
xor ecx, ecx
inc eax
mov dword [edx + 4], ebx
mov dword [edx], eax
test ecx, ecx
je 0x45d7f9
mov dword [ebx], ecx
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x45d7e9
pop edi
pop esi
mov dword [eax], ebx
xor eax, eax
pop ebp
mov dword [ecx + 4], ebx
pop ebx
add esp, 0xc
ret
mov dword [edi + 8], ebx
xor eax, eax
pop edi
pop esi
pop ebp
mov dword [ecx + 4], ebx
pop ebx
add esp, 0xc
ret
mov eax, dword [edi + 8]
mov dword [ebx], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x45d808
mov dword [eax + 4], ebx
mov dword [ebx + 4], 0
mov dword [edi + 8], ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret