Function at 0x438bbb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x120
push ebx
push esi
push edi
push str.programpath
call fcn.00442142
jmp 0x438ddc
mov eax, dword [0x509500]
mov ebx, 0x509500
mov ecx, ebx
call dword [eax + 0xc]
mov edi, eax
mov eax, dword [ebp + 0x6c]
add edi, 0x10
push str.regpath
mov dword [ebp + 0x74], edi
call fcn.0044224d
test eax, eax
je 0x438c4a
push 0xfde9
push eax
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa8], ecx
call fcn.00414b41
push dword [ebp - 0xa8]
lea eax, [ebp + 0x74]
push eax
call fcn.00414fa4
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0xa8], eax
je 0x438c47
push dword [ebp - 0xa8]
call fcn.00485474
pop ecx
mov edi, dword [ebp + 0x74]
mov eax, dword [ebp + 0x6c]
and dword [ebp + 0x70], 0
push 0x4ee868
call fcn.0044224d
mov esi, eax
test esi, esi
je 0x438c99
push 3
push 0x4ee86c
push esi
call fcn.00486a7d
add esp, 0xc
test eax, eax
jne 0x438c7e
mov dword [ebp + 0x70], pe_nt_image_headers32
jmp 0x438c99
push 3
push 0x4ee870
push esi
call fcn.00486a7d
add esp, 0xc
test eax, eax
jne 0x438c99
mov dword [ebp + 0x70], 0x200
mov eax, dword [ebp + 0x6c]
push str.errorcode
mov dword [ebp + 0x64], 0xef
call fcn.0044224d
test eax, eax
je 0x438cc8
lea ecx, [ebp + 0x5c]
push ecx
push 1
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntExA]
test eax, eax
je 0x438cc8
mov eax, dword [ebp + 0x5c]
mov dword [ebp + 0x64], eax
mov eax, dword [0x509500]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x68], eax
lea eax, [ebp + 0x74]
push eax
mov eax, dword [ebp + 0x70]
lea ebx, [ebp + 0x68]
call fcn.0042ae12
test eax, eax
pop ecx
jne 0x438dbc
mov eax, dword [ebp + 0x6c]
push str.exefile
call fcn.00442142
test eax, eax
mov dword [ebp + 0x74], eax
je 0x438df2
mov eax, dword [ebp + 0x74]
push str.name
call fcn.0044224d
push 0xfde9
push eax
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa8], ecx
call fcn.00414b41
push dword [ebp - 0xa8]
lea eax, [ebp + 0x60]
call fcn.00423484
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0xa8], eax
je 0x438d5b
push dword [ebp - 0xa8]
call fcn.00485474
pop ecx
mov eax, dword [ebp + 0x68]
add eax, 0xfffffff0
call fcn.004244f5
add eax, 0x10
mov dword [ebp + 0x70], eax
lea eax, [ebp + 0x70]
push eax
call fcn.00472a8e
mov esi, dword [ebp + 0x60]
pop ecx
push dword [esi - 0xc]
lea eax, [ebp + 0x70]
push esi
call fcn.0040103b
mov ebx, dword [ebp + 0x70]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x438e11
lea eax, [ebx - 0x10]
call fcn.00401023
lea eax, [esi - 0x10]
call fcn.00401023
mov eax, dword [ebp + 0x74]
push str.exefile
call fcn.00442177
test eax, eax
mov dword [ebp + 0x74], eax
jne 0x438d08
mov eax, dword [ebp + 0x68]
add eax, 0xfffffff0
call fcn.00401023
lea eax, [edi - 0x10]
call fcn.00401023
mov eax, dword [ebp + 0x6c]
push str.programpath
call fcn.00442177
test eax, eax
mov dword [ebp + 0x6c], eax
jne 0x438bd8
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret
mov eax, dword [ebp + 0x64]
call fcn.0042a6db
mov eax, dword [ebp + 0x68]
add eax, 0xfffffff0
call fcn.00401023
lea eax, [edi - 0x10]
call fcn.00401023
xor eax, eax
jmp 0x438dea
mov eax, dword [ebp + 0x64]
call fcn.0042a6db
lea eax, [ebx - 0x10]
call fcn.00401023
lea eax, [esi - 0x10]
call fcn.00401023
jmp 0x438dfa