Function at 0x403590
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x40de00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], esi
call sub.MFC42.DLL_CFile::CFile
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], ebx
call fcn.0040d2da
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 1
call fcn.0040d2da
add esi, 0x19c8
lea eax, [esp + 0x14]
push esi
push str._sJdvrUser.dat
push eax
mov byte [esp + 0x78], 2
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ebx
push ebx
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x4036fd
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
rep stosd dword es:[edi], eax
lea edx, [esp + 0x34]
push 0x2d
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 1
call sub.MFC42.DLL_CFile::Read
cmp eax, 0x2d
jne 0x4036ef
xor eax, eax
mov dl, byte [esp + eax + 0x34]
mov cl, al
inc cl
xor dl, cl
mov byte [esp + eax + 0x34], dl
inc eax
cmp eax, 0x2d
jl 0x403646
cmp byte [esp + 0x60], 0x53
jne 0x4036d6
push 0x2c
call sub.MFC42.DLL_operatornew
mov edx, eax
add esp, 4
neg edx
mov dword [eax + 0x28], ebx
mov ecx, eax
lea edi, [esp + edx + 0x34]
lea ebp, [esp + edx + 0x46]
mov esi, 0x12
mov dl, byte [edi + ecx]
mov byte [ecx], dl
mov dl, byte [ecx + ebp]
mov byte [ecx + 0x12], dl
inc ecx
dec esi
jne 0x403681
mov dword [eax + 0x24], 3
lea ecx, [esp + 0x5f]
mov esi, 8
mov edx, dword [eax + 0x24]
shl edx, 8
mov dword [eax + 0x24], edx
movsx edi, byte [ecx]
or edi, edx
dec ecx
dec esi
mov dword [eax + 0x24], edi
jne 0x4036a0
cmp dword [esp + 0x18], ebx
je 0x4036cb
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], ebx
mov dword [ecx + 0x1890], eax
jmp 0x4036d2
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x28], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x34]
push 0x2d
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFile::Read
cmp eax, 0x2d
je 0x403644
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Close
jmp 0x403860
push 0x2c
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x39]
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x24], 3
mov byte [esp + 0x38], 0
add esp, 4
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
call fcn.0040d2da
push 0x413198
lea ecx, [esp + 0x14]
push 0x4131a0
push ecx
mov byte [esp + 0x78], 3
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
push 0x41319c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4131a0
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x10]
lea ebx, [ebp + 0x12]
mov eax, dword [edx - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x1002
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFile::Open
mov esi, ebp
lea edx, [esp + 0x34]
xor eax, eax
sub esi, edx
lea ecx, [esp + eax + 0x34]
inc eax
cmp eax, 0x12
mov dl, byte [esi + ecx]
mov byte [ecx], dl
mov dl, byte [ebx + eax - 1]
mov byte [ecx + 0x12], dl
jl 0x4037e3
xor eax, eax
xor ecx, ecx
mov byte [esp + eax + 0x58], 0
mov edx, dword [ebp + 0x24]
shr edx, cl
add ecx, 8
inc eax
cmp ecx, 0x40
mov byte [esp + eax + 0x57], dl
jl 0x4037fd
mov byte [esp + 0x60], 0x53
xor eax, eax
mov bl, byte [esp + eax + 0x34]
mov cl, al
inc cl
xor bl, cl
mov byte [esp + eax + 0x34], bl
inc eax
cmp eax, 0x2d
jl 0x40381b
lea edx, [esp + 0x34]
push 0x2d
push edx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Close
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 2
mov dword [eax + 0x1890], ebp
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x6c], 0xffffffff
call fcn.0040d4f6
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret