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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41629c
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x421024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edx, [ecx + 0x58]
push 0x4183c4
lea ecx, [ebp - 0x40]
call fcn.00405e30
push 0x421cc0
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00407190
push 0x4183c4
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa0]
call fcn.00403e30
add esp, 0xc
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40d73c
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00403580
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40d764
inc eax
push eax
push dword [ebp - 0x40]
call fcn.00403580
push str.temp_
lea edx, [ebp - 0xa0]
mov dword [ebp - 0x2c], 0xf
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00405e30
add esp, 4
mov byte [ebp - 4], 5
lea eax, [ebp - 0x88]
cmp dword [ebp - 0x74], 0x10
cmovae eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40d97b
test al, 0x10
je 0x40d97b
push 0x12
push str.configurations.dat
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.00403080
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x70]
call fcn.004071c0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xd0]
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
push ecx
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
add esp, 0xc
test eax, eax
jne 0x40d933
push 0x421dc8
lea edx, [ebp - 0xa0]
lea ecx, [ebp - 0x28]
call fcn.004071c0
push 0x4183c4
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
call fcn.00403e30
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
push ecx
mov edx, eax
lea ecx, [ebp - 0xb8]
call fcn.00407190
add esp, 0xc
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40d86b
inc eax
push eax
push dword [ebp - 0x40]
call fcn.00403580
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40d893
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00403580
push 0
sub esp, 0x18
mov dword [ebp - 0x14], 0xf
mov ecx, esp
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0xd4], esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x40d8ca
mov eax, dword [ecx]
jmp 0x40d8cc
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.00403180
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x40d8fd
mov eax, dword [ecx]
jmp 0x40d8ff
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0xb8]
push 0
push eax
call fcn.00403180
mov byte [ebp - 4], 0xc
call fcn.0040d9e0
mov eax, dword [ebp - 0xa4]
cmp eax, 0x10
jb 0x40d933
inc eax
push eax
push dword [ebp - 0xb8]
call fcn.00403580
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x40d945
inc eax
push eax
push dword [ebp - 0x70]
call fcn.00403580
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
cmp eax, 0x10
jb 0x40d969
inc eax
push eax
push dword [ebp - 0x58]
call fcn.00403580
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x40d990
inc eax
push eax
push dword [ebp - 0x88]
call fcn.00403580
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
cmp eax, 0x10
jb 0x40d9bd
inc eax
push eax
push dword [ebp - 0xa0]
call fcn.00403580
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414132
mov esp, ebp
pop ebp
ret