Function at 0x4371fa
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.00440837
jmp 0x43741b
mov eax, dword [0x512bd4]
mov ebx, 0x512bd4
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.00440942
test eax, eax
je 0x437289
push 0xfde9
push eax
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa8], ecx
call fcn.00413752
push dword [ebp - 0xa8]
lea eax, [ebp + 0x74]
push eax
call fcn.00413ba8
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0xa8], eax
je 0x437286
push dword [ebp - 0xa8]
call fcn.004896b0
pop ecx
mov edi, dword [ebp + 0x74]
mov eax, dword [ebp + 0x6c]
and dword [ebp + 0x70], 0
push 0x4f5bd8
call fcn.00440942
mov esi, eax
test esi, esi
je 0x4372d8
push 3
push 0x4f5bdc
push esi
call fcn.0048d70a
add esp, 0xc
test eax, eax
jne 0x4372bd
mov dword [ebp + 0x70], 0x100
jmp 0x4372d8
push 3
push 0x4f5be0
push esi
call fcn.0048d70a
add esp, 0xc
test eax, eax
jne 0x4372d8
mov dword [ebp + 0x70], 0x200
mov eax, dword [ebp + 0x6c]
push str.errorcode
mov dword [ebp + 0x64], 0xef
call fcn.00440942
test eax, eax
je 0x437307
lea ecx, [ebp + 0x5c]
push ecx
push 1
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntExA]
test eax, eax
je 0x437307
mov eax, dword [ebp + 0x5c]
mov dword [ebp + 0x64], eax
mov eax, dword [0x512bd4]
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.00429dfb
test eax, eax
pop ecx
jne 0x4373fb
mov eax, dword [ebp + 0x6c]
push str.exefile
call fcn.00440837
test eax, eax
mov dword [ebp + 0x74], eax
je 0x437431
mov eax, dword [ebp + 0x74]
push str.name
call fcn.00440942
push 0xfde9
push eax
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa8], ecx
call fcn.00413752
push dword [ebp - 0xa8]
lea eax, [ebp + 0x60]
call fcn.0042241f
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0xa8], eax
je 0x43739a
push dword [ebp - 0xa8]
call fcn.004896b0
pop ecx
mov eax, dword [ebp + 0x68]
add eax, 0xfffffff0
call fcn.00423492
add eax, 0x10
mov dword [ebp + 0x70], eax
lea eax, [ebp + 0x70]
push eax
call fcn.00475cfc
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 0x437450
lea eax, [ebx - 0x10]
call fcn.00401023
lea eax, [esi - 0x10]
call fcn.00401023
mov eax, dword [ebp + 0x74]
push str.exefile
call fcn.0044086c
test eax, eax
mov dword [ebp + 0x74], eax
jne 0x437347
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.0044086c
test eax, eax
mov dword [ebp + 0x6c], eax
jne 0x437217
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret
mov eax, dword [ebp + 0x64]
call fcn.004296c4
mov eax, dword [ebp + 0x68]
add eax, 0xfffffff0
call fcn.00401023
lea eax, [edi - 0x10]
call fcn.00401023
xor eax, eax
jmp 0x437429
mov eax, dword [ebp + 0x64]
call fcn.004296c4
lea eax, [ebx - 0x10]
call fcn.00401023
lea eax, [esi - 0x10]
call fcn.00401023
jmp 0x437439