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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42298c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
mov eax, dword [0x42b48c]
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.00409be0
push 5
xor edi, edi
push str.Data
lea ecx, [esp + 0x18]
mov dword [esp + 0x17c], edi
call fcn.00405e10
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40bc90
mov eax, dword [0x42c534]
mov ecx, 0x42c534
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov edx, dword [0x42c534]
mov ecx, 0x42c534
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 0x425b94
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x180], 2
call fcn.00408980
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 0x40bc26
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bb80
sub eax, edx
push eax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x24]
call fcn.00405ea0
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 0xc]
test eax, eax
jl 0x40bcdc
cmp byte [esi], 0x2e
je 0x40bc0b
test byte [esp + 0x20], 0x10
je 0x40bc0b
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.00408960
mov ebx, dword [esp + 0x28]
push ebx
push 0
push str.WILLREBOOT
push str.SETUP
call fcn.0040d4f0
add esp, 0x24
test eax, eax
je 0x40bc0b
push ebx
push str.Clean_WillReboot_In__s
push 0x80
call fcn.004062b0
push ebx
push 0
push str.WILLREBOOT
push str.SETUP
call fcn.0040d540
add esp, 0x1c
lea ecx, [esp + 0x20]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40bb72
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 0x40bc4c
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 0x40bc6e
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 0x40bc90
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 0x40bcb9
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.00415d1a
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004011d0
int3