Function at 0x419a30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x479bf0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [0x48d5f4]
push edi
xor edi, edi
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x74], esi
test esi, esi
jne 0x419a71
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004380f8
mov esp, ebp
pop ebp
ret
cmp ebx, 0x10000
jge 0x419ad6
mov edi, dword [ebp + 0x10]
mov eax, ebx
shl eax, 6
xor edx, edx
xor eax, edi
mov dword [ebp - 0x6c], 0x3f1
shl eax, 3
xor eax, ecx
xor eax, dword [ebp + 0x14]
div dword [ebp - 0x6c]
lea eax, [esi + 0xe1c]
mov esi, dword [eax + edx*4]
lea eax, [eax + edx*4]
mov dword [ebp - 0x6c], eax
test esi, esi
je 0x419bb2
nop
cmp dword [esi], ecx
jne 0x419aca
cmp dword [esi + 8], edi
jne 0x419aca
cmp dword [esi + 4], ebx
jne 0x419aca
mov eax, dword [ebp + 0x14]
cmp dword [esi + 0x10], eax
je 0x419c0f
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x419ab0
jmp 0x419bb2
push str._08X_s_d
push dword [ebp + 0x10]
lea eax, [ebp - 0x68]
push ebx
push ecx
push 0x27c
push str.D:MyProjectsProPilotLibLibMain.c
push str._08X_s_d
push 0x64
push eax
call fcn.0040b550
lea esi, [ebp - 0x68]
add esp, 0x24
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x419b03
sub esi, ecx
mov eax, esi
and eax, 3
je 0x419b30
push eax
mov eax, esi
lea ecx, [ebp - 0x68]
and eax, 0xfc
add eax, ecx
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.004394d0
mov edi, dword [ebp - 0x6c]
add esp, 0xc
sar esi, 2
test esi, esi
je 0x419b40
xor edi, dword [ebp + esi*4 - 0x6c]
dec esi
test esi, esi
jne 0x419b37
mov eax, 0x3ce4585
mul edi
mov eax, edi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0x3f1
sub edi, eax
mov eax, dword [ebp - 0x74]
lea eax, [eax + edi*4]
add eax, 0xe1c
mov dword [ebp - 0x6c], eax
mov esi, dword [eax]
test esi, esi
je 0x419baf
mov eax, dword [ebp - 0x70]
mov edi, dword [ebp + 0x10]
cmp dword [esi], eax
jne 0x419ba0
cmp dword [esi + 8], edi
jne 0x419ba0
mov ecx, dword [ebp + 0x14]
cmp dword [esi + 0x10], ecx
jne 0x419ba0
mov eax, dword [esi + 4]
cmp eax, 0x10000
jl 0x419b9d
push ebx
push eax
call fcn.0043d06f
add esp, 8
test eax, eax
je 0x419c0f
mov eax, dword [ebp - 0x70]
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x419b71
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x6c], eax
jmp 0x419bb2
mov edi, dword [ebp + 0x10]
push 0x18
call fcn.00442d35
mov esi, eax
add esp, 4
test esi, esi
je 0x419bcd
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ecx]
mov dword [esi + 0x14], eax
lea eax, [esi + 4]
mov dword [ecx], esi
cmp ebx, 0x10000
jge 0x419be6
mov dword [eax], ebx
jmp 0x419c01
push 0x28f
push str.D:MyProjectsProPilotLibLibMain.c
push fcn.0043bbd4
push 0
push ebx
push eax
call fcn.00406470
add esp, 0x18
mov eax, dword [ebp - 0x70]
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x10], eax
mov dword [esi + 8], edi
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
mov dword [esi + 0xc], eax
xor ecx, ebp
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.004380f8
mov esp, ebp
pop ebp
ret