Function at 0x45d6d0
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.0042fc70
mov esi, eax
add esp, 0xc
test esi, esi
je 0x45d7bb
mov eax, dword [esp + 0x28]
mov ebx, dword [esi + 8]
test eax, eax
jne 0x45d7ab
mov ecx, dword [esi + 4]
mov eax, dword [esi]
test ecx, ecx
je 0x45d713
mov dword [ecx], eax
jmp 0x45d716
mov dword [edi + 8], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x45d722
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x45d73d
mov eax, dword [esp + 0x10]
cmp dword [ecx + eax*8 + 4], esi
lea ecx, [ecx + eax*8]
jne 0x45d73b
mov eax, dword [esi]
mov dword [ecx + 4], eax
dec dword [ecx]
cmp dword [section..data], 0
je 0x45d788
mov eax, dword [0x50cf50]
test eax, eax
je 0x45d759
push eax
call dword [0x50a054]
add esp, 4
push esi
call dword [0x50a030]
sub dword [0x50cdd0], eax
dec dword [0x50cdf4]
push esi
call dword [0x50a028]
mov eax, dword [0x50cf50]
add esp, 8
test eax, eax
je 0x45d792
push eax
call dword [0x50a05c]
jmp 0x45d78f
push esi
call dword [0x50a028]
add esp, 4
add dword [edi + 4], 0xffffffff
jne 0x45d7b1
push edi
call fcn.0045d5b0
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 0x45d9c2
push 0
push 0x10
call fcn.00461dd0
mov ebx, eax
add esp, 8
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x45d7e7
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 0x45d952
mov ecx, dword [edi]
lea eax, [ecx + ecx]
cmp esi, eax
jbe 0x45d952
add esi, esi
mov edx, 0x80
lea eax, [esi*8]
cmp eax, 0x400
cmova esi, edx
cmp esi, ecx
je 0x45d952
mov eax, dword [0x50ce20]
test eax, eax
je 0x45d832
call eax
lea eax, [esi*8]
push 0
push eax
call fcn.00461dd0
mov ecx, dword [0x50ce24]
add esp, 8
mov esi, eax
mov dword [esp + 0x14], esi
test ecx, ecx
je 0x45d856
call ecx
test esi, esi
je 0x45d952
push dword [edi + 0xc]
call fcn.00418530
push esi
mov dword [edi + 0xc], esi
call dword [0x50a030]
shr eax, 3
mov dword [esp + 0x18], eax
mov dword [edi], eax
lea ecx, [eax*8]
push ecx
push 0
push esi
call fcn.004c20c0
mov esi, dword [edi + 8]
add esp, 0x14
mov dword [edi + 8], 0
test esi, esi
je 0x45d943
nop
mov ebx, dword [esi + 0xc]
xor ebp, ebp
mov al, byte [ebx]
test al, al
je 0x45d8ce
nop dword [eax + eax]
movzx eax, al
lea ecx, [ebp*8]
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x4eb938]
mov al, byte [ebx]
xor edx, ecx
xor ebp, edx
test al, al
jne 0x45d8b0
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 0x45d918
mov eax, dword [edx]
test eax, eax
je 0x45d8ee
mov ecx, dword [edx + 4]
jmp 0x45d8f0
xor ecx, ecx
inc eax
mov dword [edx + 4], esi
mov dword [edx], eax
test ecx, ecx
je 0x45d918
mov dword [esi], ecx
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x45d910
mov dword [eax], esi
mov dword [ecx + 4], esi
jmp 0x45d931
mov dword [edi + 8], esi
mov dword [ecx + 4], esi
jmp 0x45d931
mov eax, dword [edi + 8]
mov dword [esi], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x45d927
mov dword [eax + 4], esi
mov dword [esi + 4], 0
mov dword [edi + 8], esi
mov esi, ebx
test ebx, ebx
jne 0x45d8a0
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 0x45d956
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x45d9a9
lea edx, [eax + edx*8]
test edx, edx
je 0x45d9a9
mov eax, dword [edx]
test eax, eax
je 0x45d96f
mov ecx, dword [edx + 4]
jmp 0x45d971
xor ecx, ecx
inc eax
mov dword [edx + 4], ebx
mov dword [edx], eax
test ecx, ecx
je 0x45d9a9
mov dword [ebx], ecx
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x45d999
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 0x45d9b8
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