Function at 0x459a70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x4a9bf0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x198], edx
test edi, edi
je 0x459e8f
mov eax, dword [edi]
test eax, eax
je 0x459e8f
cmp byte [eax], dl
je 0x459e8f
mov ecx, dword [edi + 0x78]
push ebx
xor ebx, ebx
mov dword [ebp - 0x19c], ebx
test ecx, ecx
jle 0x459ad2
lea eax, [edi + 0x7c]
nop dword [eax]
cmp dword [eax], edx
je 0x459acc
inc ebx
add eax, 4
cmp ebx, ecx
jl 0x459ac0
mov dword [ebp - 0x19c], ebx
push esi
lea eax, [ebp - 0x194]
push eax
push ebx
push 0x103b
push dword [edi + 0x54c8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [edi]
mov esi, edx
mov dword [ebp - 0x1a0], eax
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x459b00
sub esi, ecx
mov eax, esi
and eax, 3
je 0x459b34
push eax
mov eax, esi
and eax, 0xfc
add eax, edx
push eax
lea eax, [ebp - 0x198]
push eax
call fcn.004643e0
mov ecx, dword [ebp - 0x198]
add esp, 0xc
mov edx, dword [edi]
jmp 0x459b36
xor ecx, ecx
sar esi, 2
test esi, esi
jle 0x459b4b
lea eax, [edx + esi*4]
xor ecx, dword [eax - 4]
lea eax, [eax - 4]
dec esi
test esi, esi
jg 0x459b40
mov eax, 0x446f8657
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
imul eax, eax, 0x65
sub ecx, eax
mov dword [ebp - 0x1a4], ecx
mov esi, dword [ecx*4 + 0x520104]
test esi, esi
je 0x459b8b
push dword [esi + 4]
push dword [edi]
call fcn.0046ed36
add esp, 8
test eax, eax
je 0x459bb6
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x459b73
push 0x20
call fcn.0046dc45
mov ebx, eax
add esp, 4
mov dword [ebp - 0x198], ebx
test ebx, ebx
je 0x459d67
xorps xmm0, xmm0
xor eax, eax
movups xmmword [ebx], xmm0
movups xmmword [ebx + 0x10], xmm0
jmp 0x459d69
mov eax, dword [esi + 0x10]
cmp eax, dword [edi + 0x5770]
jne 0x459c7d
movzx eax, byte [esi + 8]
cmp eax, dword [edi + 0x78]
jne 0x459c7d
mov eax, dword [esi + 0x14]
cmp eax, dword [edi + 0x5808]
jne 0x459c7d
mov eax, dword [esi + 0x1c]
cmp eax, dword [edi + 0x6918]
jne 0x459c7d
xor ecx, ecx
lea edx, [edi + 0x21c]
cmp ecx, dword [edi + 0x78]
jge 0x459c3b
mov eax, dword [esi + 0xc]
movzx eax, word [eax + ecx*8 + 2]
cmp eax, dword [edx - 4]
jne 0x459c7d
mov eax, dword [esi + 0xc]
movzx eax, byte [eax + ecx*8 + 1]
cmp eax, dword [edx]
jne 0x459c7d
mov eax, dword [esi + 0xc]
movss xmm0, dword [eax + ecx*8 + 4]
ucomiss xmm0, dword [edx + 4]
lahf
test ah, 0x44
jp 0x459c7d
mov eax, dword [esi + 0xc]
cmp byte [eax + ecx*8], 0
jne 0x459c7d
inc ecx
add edx, 0xd0
jmp 0x459bf8
xor eax, eax
xor edx, edx
nop
mov dword [ebp - 0x198], eax
cmp edx, ebx
jge 0x459d51
cmp dword [ebp - 0x1a0], 0
je 0x459c60
mov ecx, dword [ebp + edx*4 - 0x194]
jmp 0x459c62
mov ecx, edx
mov ecx, dword [edi + ecx*4 + 0x7c]
inc edx
mov eax, dword [esi + 0xc]
movsx eax, byte [eax + ecx*8 - 8]
cmp eax, edx
jne 0x459c7d
mov eax, dword [ebp - 0x198]
test eax, eax
je 0x459c40
or dword [0x520100], 1
mov edx, 8
or dword [esi], 1
mov eax, dword [edi + 0x5770]
mov dword [esi + 0x10], eax
mov cl, byte [edi + 0x78]
mov byte [esi + 8], cl
mov eax, dword [edi + 0x5808]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x6918]
mov dword [esi + 0x1c], eax
movzx eax, cl
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [esi + 0xc]
call fcn.00466ae4
xor edx, edx
mov dword [esi + 0xc], eax
add esp, 8
cmp dword [edi + 0x78], edx
jle 0x459d1c
lea ebx, [edi + 0x21c]
nop word [eax + eax]
mov ecx, dword [esi + 0xc]
lea ebx, [ebx + 0xd0]
mov ax, word [ebx - 0xd4]
mov word [ecx + edx*8 + 2], ax
mov ecx, dword [esi + 0xc]
mov al, byte [ebx - 0xd0]
mov byte [ecx + edx*8 + 1], al
mov ecx, dword [esi + 0xc]
mov eax, dword [ebx - 0xcc]
mov dword [ecx + edx*8 + 4], eax
mov eax, dword [esi + 0xc]
mov byte [eax + edx*8], 0
inc edx
cmp edx, dword [edi + 0x78]
jl 0x459ce0
xor ebx, ebx
cmp dword [ebp - 0x19c], ebx
jle 0x459d51
cmp dword [ebp - 0x1a0], 0
je 0x459d38
mov ecx, dword [ebp + ebx*4 - 0x194]
jmp 0x459d3a
mov ecx, ebx
mov ecx, dword [edi + ecx*4 + 0x7c]
lea edx, [ebx + 1]
mov eax, dword [esi + 0xc]
inc ebx
mov byte [eax + ecx*8 - 8], dl
cmp ebx, dword [ebp - 0x19c]
jl 0x459d26
pop esi
pop ebx
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046300c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
push 0xb3b
push str.D:MyProjectsProPilotLibListview.c
or eax, 1
push fcn.00466ae4
mov dword [ebx], eax
lea eax, [ebx + 4]
or dword [0x520100], 1
push 0
push dword [edi]
push eax
call fcn.00408760
mov eax, dword [edi + 0x5770]
mov edx, 8
mov dword [ebx + 0x10], eax
mov cl, byte [edi + 0x78]
mov byte [ebx + 8], cl
mov eax, dword [edi + 0x5808]
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x6918]
mov dword [ebx + 0x1c], eax
movzx eax, cl
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [ebx + 0xc]
call fcn.00466ae4
xor edx, edx
mov dword [ebx + 0xc], eax
add esp, 0x20
cmp dword [edi + 0x78], edx
jle 0x459e2c
lea esi, [edi + 0x21c]
nop dword [eax]
nop word [eax + eax]
mov ecx, dword [ebx + 0xc]
lea esi, [esi + 0xd0]
mov ax, word [esi - 0xd4]
mov word [ecx + edx*8 + 2], ax
mov ecx, dword [ebx + 0xc]
mov al, byte [esi - 0xd0]
mov byte [ecx + edx*8 + 1], al
mov ecx, dword [ebx + 0xc]
mov eax, dword [esi - 0xcc]
mov dword [ecx + edx*8 + 4], eax
mov eax, dword [ebx + 0xc]
mov byte [eax + edx*8], 0
inc edx
cmp edx, dword [edi + 0x78]
jl 0x459df0
mov esi, dword [ebp - 0x19c]
xor ebx, ebx
test esi, esi
jle 0x459e6d
nop dword [eax + eax]
cmp dword [ebp - 0x1a0], 0
je 0x459e52
mov ecx, dword [ebp + ebx*4 - 0x194]
jmp 0x459e54
mov ecx, ebx
mov eax, dword [ebp - 0x198]
lea edx, [ebx + 1]
mov ecx, dword [edi + ecx*4 + 0x7c]
inc ebx
mov eax, dword [eax + 0xc]
mov byte [eax + ecx*8 - 8], dl
cmp ebx, esi
jl 0x459e40
mov edx, dword [ebp - 0x1a4]
mov ecx, dword [ebp - 0x198]
mov eax, dword [edx*4 + 0x520104]
mov dword [ecx + 0x18], eax
mov dword [edx*4 + 0x520104], ecx
jmp 0x459d51
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0046300c
mov esp, ebp
pop ebp
ret