Function at 0x42e130
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x56b997
mov eax, dword fs:[0]
push eax
mov eax, 0x8020
call fcn.00544bc0
mov eax, dword [0x5c96a4]
xor eax, esp
mov dword [esp + 0x8018], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c96a4]
xor eax, esp
push eax
lea eax, [esp + 0x8034]
mov dword fs:[0], eax
mov eax, dword [0x5e12b8]
mov ebp, dword [esp + 0x8044]
mov dword [esp + 0x14], eax
test eax, eax
je 0x42e535
push 1
push 0
push ebp
push str.rhc_.rhc_.rhc
mov ebx, 2
push ebx
push 0x5a1e94
push str..rhc
push 1
lea ecx, [esp + 0x54]
call fcn.0044dbf6
lea ecx, [esp + 0x34]
mov dword [esp + 0x803c], 0
call fcn.0044e457
lea ecx, [esp + 0x34]
cmp eax, 1
jne 0x42e525
lea eax, [esp + 0x1c]
push eax
call fcn.0044e586
lea ecx, [esp + 0x24]
mov byte [esp + 0x803c], 1
call fcn.0044efca
push 0
mov byte [esp + 0x8040], bl
mov ecx, dword [esp + 0x20]
push 0
push ecx
lea ecx, [esp + 0x30]
call fcn.0044f490
test eax, eax
jne 0x42e245
push ebp
mov ecx, 0x5e1850
call fcn.00421920
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x803c], 1
call fcn.0044f10a
mov byte [esp + 0x803c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x42e515
push 0x7690
lea ecx, [esp + 0x360]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0044ecbe
test eax, eax
jne 0x42e27a
push str.Read_profile_failed.
lea ecx, [esp + 0x18]
call fcn.00405fa0
mov byte [esp + 0x803c], 3
jmp 0x42e4c4
cmp dword [esp + 0x35c], 0xfcfb1094
jne 0x42e4ae
cmp dword [esp + 0x360], 0
je 0x42e4ae
lea eax, [esp + 0x7e24]
call fcn.00412660
lea ecx, [esp + 0x5d8]
mov dword [esp + 0x20], 0x5e0cb0
mov dword [esp + 0x18], ecx
cmp byte [ecx - 0x15], 5
jne 0x42e441
mov edx, dword [0x5e12a8]
xor eax, eax
test edx, edx
jbe 0x42e441
mov ecx, dword [ecx]
lea esi, [esp + 0x12f4]
jmp 0x42e2e0
cmp ecx, dword [esi + 4]
je 0x42e2f5
inc eax
add esi, 0x526
cmp eax, edx
jb 0x42e2e0
jmp 0x42e441
mov ebx, dword [esi + 4]
call fcn.0043b250
lea edi, [esi + 0x14]
push edi
lea edx, [esp + 0x7e28]
push edx
push str._s_s.mly
push 0x103
mov dword [esi + 4], eax
lea eax, [esp + 0x7a24]
push 0x104
push eax
call fcn.005403d0
add esp, 0x18
lea ecx, [esp + 0x7a14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42e38c
push edi
mov ecx, 0x5e1974
call fcn.00403490
push eax
push str._s:___s
push 0x103
lea edx, [esp + 0x7c2c]
push 0x104
push edx
call fcn.005403d0
push ebp
lea ecx, [esp + 0x7c38]
call fcn.004219e0
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x3c]
add esp, 0x1c
add edi, 0xffffffe8
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
jmp 0x42e441
mov eax, dword [ebp + 0x1e84]
test eax, eax
je 0x42e3b5
push esi
push eax
call fcn.00417b50
test eax, eax
je 0x42e441
push eax
lea ecx, [esp + 0x7a18]
call fcn.00419a80
add esp, 4
lea eax, [esp + 0x5d8]
mov ecx, 5
cmp byte [eax - 0x15], 5
jne 0x42e3d0
cmp ebx, dword [eax]
jne 0x42e3d0
mov edx, dword [esi + 4]
mov dword [eax], edx
cmp byte [eax + 0x13], 5
jne 0x42e3e1
cmp ebx, dword [eax + 0x28]
jne 0x42e3e1
mov edx, dword [esi + 4]
mov dword [eax + 0x28], edx
cmp byte [eax + 0x3b], 5
jne 0x42e3f2
cmp ebx, dword [eax + 0x50]
jne 0x42e3f2
mov edx, dword [esi + 4]
mov dword [eax + 0x50], edx
cmp byte [eax + 0x63], 5
jne 0x42e403
cmp ebx, dword [eax + 0x78]
jne 0x42e403
mov edx, dword [esi + 4]
mov dword [eax + 0x78], edx
cmp byte [eax + 0x8b], 5
jne 0x42e41d
cmp ebx, dword [eax + 0xa0]
jne 0x42e41d
mov edx, dword [esi + 4]
mov dword [eax + 0xa0], edx
cmp byte [eax + 0xb3], 5
jne 0x42e437
cmp ebx, dword [eax + 0xc8]
jne 0x42e437
mov edx, dword [esi + 4]
mov dword [eax + 0xc8], edx
add eax, 0xf0
sub ecx, 1
jne 0x42e3c1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add eax, 0x28
add ecx, 0x28
cmp eax, 0x5e1160
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
jl 0x42e2b8
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x14]
mov edx, dword [ebx + 4]
add eax, 0x210
mov esi, eax
mov ecx, 0xa
lea edi, [esp + 0x79ec]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3e6
lea esi, [esp + 0x35c]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, eax
mov ecx, 0xa
lea esi, [esp + 0x79ec]
mov eax, ebp
mov dword [ebx + 4], edx
rep movsd dword es:[edi], dword [esi]
call fcn.0042df40
jmp 0x42e4df
push str.This_is_not_a_valid_profile
lea ecx, [esp + 0x18]
call fcn.00405fa0
mov byte [esp + 0x803c], 4
push ebp
mov ecx, eax
call fcn.00421920
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x803c], bl
call fcn.0041a0e0
lea ecx, [esp + 0x24]
call fcn.0044ef64
lea ecx, [esp + 0x24]
mov byte [esp + 0x803c], 1
call fcn.0044f10a
mov byte [esp + 0x803c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e521
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x803c], 0xffffffff
call fcn.0044da63
mov ecx, dword [esp + 0x8034]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8018]
xor ecx, esp
call fcn.0053fb0e
add esp, 0x802c
ret 4