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

Disassembly:
sub esp, 0x324
mov eax, dword [0x42c400]
xor eax, esp
mov dword [esp + 0x320], eax
push ebx
push ebp
push esi
push edi
push 0x103
lea eax, [esp + 0x19]
push 0
push eax
mov byte [esp + 0x20], 0
call fcn.0041c150
add esp, 0xc
lea edi, [esp + 0x14]
call fcn.00407020
mov eax, edi
add eax, 0xffffffff
nop
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4050a0
mov ecx, dword [0x4259b8]
mov edx, dword [0x4259bc]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [eax], ecx
mov ecx, dword [0x4259c0]
mov dword [eax + 4], edx
lea edx, [esp + 0x14]
push edx
mov dword [eax + 8], ecx
call esi
cmp eax, 0xffffffff
jne 0x405121
lea eax, [esp + 0x14]
push eax
push 0x425b08
push 0x6dd
push str..Setup.cpp
push 2
mov ecx, str.InstallConfigFile
call fcn.00405d70
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
push 0x425b08
push 0x6dd
push str..Setup.cpp
push 2
mov ecx, str.InstallConfigFile
call fcn.00405a90
add esp, 0x14
jmp 0x405307
push 0x103
lea edx, [esp + 0x229]
push 0
push edx
mov byte [esp + 0x230], 0
call fcn.0041c150
add esp, 0xc
lea eax, [esp + 0x224]
call fcn.0040b3a0
lea eax, [esp + 0x224]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x405156
mov ecx, dword [str.IsAgent]
mov edx, dword [0x424c88]
mov dword [eax], ecx
mov cl, byte [0x424c8c]
mov dword [eax + 4], edx
push 0x103
lea edx, [esp + 0x121]
push 0
push edx
mov byte [eax + 8], cl
mov byte [esp + 0x128], 0
call fcn.0041c150
add esp, 0xc
push 0x425144
lea eax, [esp + 0x228]
push eax
push str._s_s
lea ecx, [esp + 0x128]
push 0x103
push ecx
call fcn.004135e2
add esp, 0x14
lea edx, [esp + 0x11c]
push edx
call esi
cmp eax, 0xffffffff
jne 0x40521d
push 0x425b38
push 0x6e9
push str..Setup.cpp
push 2
mov ecx, str.InstallConfigFile
call fcn.00405d70
push 0x425b38
push 0x6e9
push str..Setup.cpp
push 2
mov ecx, str.InstallConfigFile
call fcn.00405a90
add esp, 0x20
lea esi, [esp + 0x11c]
lea edi, [esp + 0x14]
call fcn.004072e0
jmp 0x405307
lea eax, [esp + 0x14]
call fcn.00408680
mov ebp, eax
test ebp, ebp
je 0x405307
push 0x6f5
push str.InstallConfigFile
lea ebx, [ebp + 1]
push 1
push ebx
mov ecx, str..Setup.cpp
call fcn.00408090
add esp, 0x10
lea eax, [esp + 0x11c]
call fcn.00408680
mov esi, eax
test esi, esi
je 0x4052cc
push 0x6f9
push str.InstallConfigFile
lea eax, [esi + 1]
push 1
push eax
mov ecx, str..Setup.cpp
call fcn.00408090
push str.ASM_LoadBeforeNetwork
push esi
call fcn.00408dc0
mov edi, eax
add esp, 0x18
test edi, edi
je 0x4052cc
push str.ASM_LoadBeforeNetwork
push ebp
call fcn.00408dc0
add esp, 8
test eax, eax
jne 0x4052c2
push str.ASM_LoadBeforeNetwork
xor edx, edx
mov ecx, ebp
call fcn.00408c20
add esp, 4
push str.ASM_LoadBeforeNetwork
push ebp
call fcn.00408dc0
add esp, 8
test eax, eax
je 0x4052cc
push edi
push eax
call fcn.00408e40
add esp, 8
push ebp
lea edi, [esp + 0x120]
call fcn.004089e0
add esp, 4
push ebp
call fcn.00408760
add esp, 4
push ebx
call fcn.00408470
add esp, 4
test esi, esi
je 0x405307
push esi
call fcn.00408760
add esp, 4
add esi, 1
push esi
call fcn.00408470
add esp, 4
mov ecx, dword [esp + 0x330]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041310b
add esp, 0x324
ret