Function at 0x4388bc
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.00442069
jmp 0x438add
mov eax, dword [0x50e594]
mov ebx, 0x50e594
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.00442174
test eax, eax
je 0x43894b
push 0xfde9
push eax
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa8], ecx
call fcn.00414e78
push dword [ebp - 0xa8]
lea eax, [ebp + 0x74]
push eax
call fcn.004152cd
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0xa8], eax
je 0x438948
push dword [ebp - 0xa8]
call fcn.00486f20
pop ecx
mov edi, dword [ebp + 0x74]
mov eax, dword [ebp + 0x6c]
and dword [ebp + 0x70], 0
push 0x4f2bc8
call fcn.00442174
mov esi, eax
test esi, esi
je 0x43899a
push 3
push 0x4f2bcc
push esi
call fcn.0048af7a
add esp, 0xc
test eax, eax
jne 0x43897f
mov dword [ebp + 0x70], 0x100
jmp 0x43899a
push 3
push 0x4f2bd0
push esi
call fcn.0048af7a
add esp, 0xc
test eax, eax
jne 0x43899a
mov dword [ebp + 0x70], 0x200
mov eax, dword [ebp + 0x6c]
push str.errorcode
mov dword [ebp + 0x64], 0xef
call fcn.00442174
test eax, eax
je 0x4389c9
lea ecx, [ebp + 0x5c]
push ecx
push 1
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntExA]
test eax, eax
je 0x4389c9
mov eax, dword [ebp + 0x5c]
mov dword [ebp + 0x64], eax
mov eax, dword [0x50e594]
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.0042b384
test eax, eax
pop ecx
jne 0x438abd
mov eax, dword [ebp + 0x6c]
push str.exefile
call fcn.00442069
test eax, eax
mov dword [ebp + 0x74], eax
je 0x438af3
mov eax, dword [ebp + 0x74]
push str.name
call fcn.00442174
push 0xfde9
push eax
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa8], ecx
call fcn.00414e78
push dword [ebp - 0xa8]
lea eax, [ebp + 0x60]
call fcn.00423978
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0xa8], eax
je 0x438a5c
push dword [ebp - 0xa8]
call fcn.00486f20
pop ecx
mov eax, dword [ebp + 0x68]
add eax, 0xfffffff0
call fcn.004249f2
add eax, 0x10
mov dword [ebp + 0x70], eax
lea eax, [ebp + 0x70]
push eax
call fcn.00473567
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 0x438b12
lea eax, [ebx - 0x10]
call fcn.00401023
lea eax, [esi - 0x10]
call fcn.00401023
mov eax, dword [ebp + 0x74]
push str.exefile
call fcn.0044209e
test eax, eax
mov dword [ebp + 0x74], eax
jne 0x438a09
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.0044209e
test eax, eax
mov dword [ebp + 0x6c], eax
jne 0x4388d9
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret
mov eax, dword [ebp + 0x64]
call fcn.0042ac4d
mov eax, dword [ebp + 0x68]
add eax, 0xfffffff0
call fcn.00401023
lea eax, [edi - 0x10]
call fcn.00401023
xor eax, eax
jmp 0x438aeb
mov eax, dword [ebp + 0x64]
call fcn.0042ac4d
lea eax, [ebx - 0x10]
call fcn.00401023
lea eax, [esi - 0x10]
call fcn.00401023
jmp 0x438afb