Function at 0x42f3f0
Capabilities:
Check if file exists
Encode data using xor
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5203b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, dword [esp + 0x70]
push edi
mov dword [esp + 0x10], ecx
xor edi, edi
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], edi
call sub.MFC42.DLL_CString::CString_2
cmp esi, edi
mov dword [esp + 0x6c], edi
jne 0x42f43f
lea eax, [esp + 0x14]
push str.dlcache.dat
push eax
push edi
call fcn.0041eb80
add esp, 0xc
mov cl, byte [esp + 0x74]
mov dword [esp + 0x34], edi
mov byte [esp + 0x30], cl
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov edx, dword [esp + 0x14]
mov byte [esp + 0x6c], 1
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42f692
mov eax, dword [esp + 0x14]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x28], ebx
je 0x42f692
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esi + 1]
push ecx
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x42f68b
lea edx, [esp + 0x18]
push edi
push edx
push esi
push ebp
push ebx
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42f682
cmp dword [esp + 0x18], esi
jne 0x42f682
xor eax, eax
cmp esi, edi
jbe 0x42f4ee
mov cl, byte [eax + ebp]
xor cl, 0x3f
mov byte [eax + ebp], cl
inc eax
cmp eax, esi
jb 0x42f4e0
cmp dword [ebp], 0x44434558
jne 0x42f682
cmp dword [ebp + 4], 2
je 0x42f682
mov eax, dword [ebp + 0x10]
cmp eax, edi
mov dword [esp + 0x20], eax
jbe 0x42f682
mov ecx, eax
mov edx, dword [ebp + 8]
imul ecx, dword [ebp + 0xc]
add ecx, edx
cmp esi, ecx
jne 0x42f682
xor ebx, ebx
cmp eax, edi
jbe 0x42f676
jmp 0x42f535
xor edi, edi
push 0x390
call sub.MFC42.DLL_operatornew
mov edx, eax
add esp, 4
cmp edx, edi
je 0x42f555
mov ecx, 0xe4
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, edx
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x74], edi
cmp esi, 0x390
mov ecx, esi
jb 0x42f56b
mov ecx, 0x390
imul esi, ebx
mov eax, dword [ebp + 8]
mov edx, ecx
add esi, eax
xor eax, eax
add esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
mov ecx, 8
lea edi, [esp + 0x44]
mov dword [esp + 0x40], esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x74]
add eax, 0x114
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42f5d0
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0x40]
push ecx
add edx, 0x114
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
jne 0x42f5d0
mov ecx, 9
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x74]
cmp eax, esi
jne 0x42f5e2
mov eax, dword [ecx + 0x280]
mov dword [ecx + 0x280], eax
mov eax, dword [esp + 0x60]
cmp eax, esi
je 0x42f604
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
push eax
push ecx
call fcn.00421ec0
add esp, 8
jmp 0x42f606
xor eax, eax
mov edx, dword [esp + 0x74]
mov dword [edx + 0x284], eax
mov eax, dword [esp + 0x74]
cmp dword [eax + 0x10c], esi
jne 0x42f64e
push ecx
add eax, 0x114
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x14]
call fcn.00430390
cmp eax, esi
mov eax, dword [esp + 0x74]
jne 0x42f64e
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x74], esi
jmp 0x42f667
cmp eax, esi
je 0x42f667
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x74]
push ecx
push 1
push edx
lea ecx, [esp + 0x3c]
call fcn.004588f0
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jb 0x42f533
xor edi, edi
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
call fcn.0042ebb0
mov eax, dword [esp + 0x34]
xor ecx, ecx
mov dword [esp + 0x74], ecx
cmp eax, edi
je 0x42f7b9
mov edx, dword [esp + 0x38]
sub edx, eax
sar edx, 2
cmp ecx, edx
jae 0x42f7b9
mov ebx, dword [eax + ecx*4]
cmp ebx, edi
je 0x42f7af
push 0xea0
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x42f6f2
mov ecx, 0xe4
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, 0x3a8
mov edi, ebp
rep stosd dword es:[edi], eax
jmp 0x42f6f4
xor ebp, ebp
mov ecx, 0xe4
mov esi, ebx
mov edi, ebp
push ebx
rep movsd dword es:[edi], dword [esi]
call sub.MFC42.DLL_operatordelete
add esp, 4
lea eax, [ebp + 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
lea ecx, [ebp + 0x9f4]
mov esi, 0x64
sub eax, ecx
mov dl, byte [eax + ecx]
test dl, dl
je 0x42f731
mov byte [ecx], dl
inc ecx
dec esi
jne 0x42f722
jmp 0x42f735
test esi, esi
jne 0x42f736
dec ecx
mov byte [ecx], 0
mov eax, dword [ebp + 0x10c]
cmp eax, 4
jne 0x42f750
mov eax, dword [esp + 0x10]
inc dword [eax + 0xb8]
jmp 0x42f75f
cmp eax, 9
jne 0x42f75f
mov eax, dword [esp + 0x10]
inc dword [eax + 0xc4]
mov ecx, dword [ebp]
lea edx, [esp + 0x28]
fild dword [ebp + 0x108]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push edx
fstp qword [ebp + 0xe98]
push eax
add ecx, 0x78
mov dword [esp + 0x34], 0
call fcn.00431990
mov edx, dword [esp + 0x20]
mov ecx, 0x571ae8
mov dword [edx + 0x10], ebp
mov eax, dword [ebp]
push eax
call fcn.004312e0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x74]
xor edi, edi
inc ecx
mov dword [esp + 0x74], ecx
jmp 0x42f6a5
mov ecx, dword [esp + 0x10]
call fcn.0042ebc0
mov ecx, dword [esp + 0x34]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x6c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret 4