Function at 0x40f2f0
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426cac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
mov eax, dword [0x42f4cc]
push ebx
push esi
add ecx, 0x22c
push edi
xor eax, ebp
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x168], eax
call fcn.0040d3a0
push 5
xor edi, edi
push str.Data
lea ecx, [esp + 0x18]
mov dword [esp + 0x17c], edi
call fcn.004095b0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40f500
mov eax, dword [0x430588]
mov ecx, 0x430588
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov edx, dword [0x430588]
mov ecx, 0x430588
mov byte [esp + 0x174], 1
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
xor eax, eax
mov ecx, 0x4f
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
push 0x42a00c
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x180], 2
call fcn.0040c140
add esp, 0xc
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push eax
mov byte [esp + 0x17c], 3
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
test edi, edi
je 0x40f496
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f3f0
sub eax, edx
push eax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x24]
call fcn.00409640
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 0xc]
test eax, eax
jl 0x40f54c
cmp byte [esi], 0x2e
je 0x40f47b
test byte [esp + 0x20], 0x10
je 0x40f47b
mov edx, dword [esp + 0x10]
push esi
push esi
push edx
lea eax, [esp + 0x20]
push str._s_s_s.ini
push eax
call fcn.0040c120
mov ebx, dword [esp + 0x28]
push ebx
push 0
push str.WILLREBOOT
push str.SETUP
call fcn.00410e80
add esp, 0x24
test eax, eax
je 0x40f47b
push ebx
push str.Clean_WillReboot_In__s
push 0x80
call fcn.00409a50
push ebx
push 0
push str.WILLREBOOT
push str.SETUP
call fcn.00410ed0
add esp, 0x1c
lea ecx, [esp + 0x20]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f3e2
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x174], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f4bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add esi, 0xfffffff0
mov byte [esp + 0x174], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f4de
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebx, 0xfffffff0
mov byte [esp + 0x174], 0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f500
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x174], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f529
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x16c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x164]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004199fa
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004011d0
int3