Function at 0x419310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x478bf4]
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 [0x48c5d4]
push edi
xor edi, edi
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x74], esi
test esi, esi
jne 0x419351
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004379e8
mov esp, ebp
pop ebp
ret
cmp ebx, 0x10000
jge 0x4193b6
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 0x419492
nop
cmp dword [esi], ecx
jne 0x4193aa
cmp dword [esi + 8], edi
jne 0x4193aa
cmp dword [esi + 4], ebx
jne 0x4193aa
mov eax, dword [ebp + 0x14]
cmp dword [esi + 0x10], eax
je 0x4194ef
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x419390
jmp 0x419492
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.0040ae30
lea esi, [ebp - 0x68]
add esp, 0x24
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4193e3
sub esi, ecx
mov eax, esi
and eax, 3
je 0x419410
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.00438db0
mov edi, dword [ebp - 0x6c]
add esp, 0xc
sar esi, 2
test esi, esi
je 0x419420
xor edi, dword [ebp + esi*4 - 0x6c]
dec esi
test esi, esi
jne 0x419417
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 0x41948f
mov eax, dword [ebp - 0x70]
mov edi, dword [ebp + 0x10]
cmp dword [esi], eax
jne 0x419480
cmp dword [esi + 8], edi
jne 0x419480
mov ecx, dword [ebp + 0x14]
cmp dword [esi + 0x10], ecx
jne 0x419480
mov eax, dword [esi + 4]
cmp eax, 0x10000
jl 0x41947d
push ebx
push eax
call fcn.0043d41b
add esp, 8
test eax, eax
je 0x4194ef
mov eax, dword [ebp - 0x70]
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x419451
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x6c], eax
jmp 0x419492
mov edi, dword [ebp + 0x10]
push 0x18
call fcn.0043d27d
mov esi, eax
add esp, 4
test esi, esi
je 0x4194ad
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 0x4194c6
mov dword [eax], ebx
jmp 0x4194e1
push 0x28f
push str.D:MyProjectsProPilotLibLibMain.c
push fcn.0043be56
push 0
push ebx
push eax
call fcn.00406150
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.004379e8
mov esp, ebp
pop ebp
ret