Function at 0x40ad30
Capabilities:
Check os version
Enumerate gui resources
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5268b2
mov eax, dword fs:[0]
push eax
sub esp, 0x3ec
mov eax, dword [0x57f540]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 3
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor edi, edi
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40ada0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x234]
call fcn.004017b0
mov edx, esi
push edx
mov eax, 0x55ef8c
lea ecx, [ebp - 0x250]
mov dword [ebp - 4], edi
call fcn.004093b0
add esp, 4
mov ecx, eax
mov eax, 0x583e7c
lea ebx, [ebp - 0x288]
mov byte [ebp - 4], 1
call fcn.0040b910
push eax
mov eax, str..BOAS.exe
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 2
call fcn.004093b0
add esp, 4
mov edi, eax
mov esi, 0x58ad5c
mov byte [ebp - 4], 3
call fcn.00405a80
mov edi, 8
cmp dword [ebp - 0x290], edi
jb 0x40ae34
mov eax, dword [ebp - 0x2a4]
push eax
call fcn.0040ba88
add esp, 4
xor ebx, ebx
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x294], ebx
mov word [ebp - 0x2a4], cx
cmp dword [ebp - 0x274], edi
jb 0x40ae67
mov edx, dword [ebp - 0x288]
push edx
call fcn.0040ba88
add esp, 4
xor eax, eax
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x278], ebx
mov word [ebp - 0x288], ax
cmp dword [ebp - 0x23c], edi
jb 0x40ae93
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.0040ba88
add esp, 4
xor edx, edx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], dx
cmp dword [ebp - 0x220], edi
jb 0x40aec6
mov eax, dword [ebp - 0x234]
push eax
call fcn.0040ba88
add esp, 4
call fcn.0040b250
cmp eax, ebx
jne 0x40b0cc
mov ebx, 0x114
push ebx
lea ecx, [ebp - 0x3f8]
push 0
push ecx
call fcn.00501560
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea edx, [ebp - 0x3f8]
push edx
mov dword [ebp - 0x3f8], ebx
call esi
cmp dword [ebp - 0x3f4], 5
jne 0x40af4a
cmp dword [ebp - 0x3f0], 1
jb 0x40af4a
mov edx, dword [0x58442c]
cmp dword [0x584440], edi
jae 0x40af24
mov edx, 0x58442c
mov ecx, dword [0x58ad5c]
cmp dword [0x58ad70], edi
jae 0x40af37
mov ecx, 0x58ad5c
lea eax, [ebp - 0x2e0]
push eax
call fcn.004070f0
add esp, 4
test eax, eax
je 0x40afbe
push ebx
lea ecx, [ebp - 0x3f8]
push 0
push ecx
call fcn.00501560
add esp, 0xc
lea edx, [ebp - 0x3f8]
push edx
mov dword [ebp - 0x3f8], ebx
call esi
cmp dword [ebp - 0x3f4], 5
jne 0x40af81
cmp dword [ebp - 0x3f0], 1
jae 0x40b080
mov edx, dword [0x58442c]
cmp dword [0x584440], edi
jae 0x40af94
mov edx, 0x58442c
mov ecx, dword [0x58ad5c]
cmp dword [0x58ad70], edi
jae 0x40afa7
mov ecx, 0x58ad5c
lea eax, [ebp - 0x2e0]
push eax
call fcn.00407330
add esp, 4
test eax, eax
jne 0x40b080
push 0x58ad5c
lea ecx, [ebp - 0x2dc]
call fcn.004067b0
add esp, 4
push eax
mov eax, str.Path:
lea ecx, [ebp - 0x26c]
mov dword [ebp - 4], 4
call fcn.00409400
add esp, 4
push eax
mov eax, 0x55f194
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 5
call fcn.00402230
mov esi, 0x10
add esp, 4
cmp dword [ebp - 0x2ac], esi
jb 0x40b020
mov ecx, dword [ebp - 0x2c0]
push ecx
call fcn.0040ba88
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [ebp - 0x2ac], edi
mov dword [ebp - 0x2b0], ebx
mov byte [ebp - 0x2c0], bl
cmp dword [ebp - 0x258], esi
jb 0x40b050
mov edx, dword [ebp - 0x26c]
push edx
call fcn.0040ba88
add esp, 4
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x25c], ebx
mov byte [ebp - 0x26c], bl
cmp dword [ebp - 0x2c8], esi
jb 0x40b079
mov eax, dword [ebp - 0x2dc]
push eax
call fcn.0040ba88
add esp, 4
mov eax, 0xfffffffa
jmp 0x40b0cc
mov ecx, dword [0x58ab04]
mov esi, dword [ebp - 0x2e0]
test ecx, ecx
jne 0x40b0bd
mov edi, dword [sym.imp.USER32.dll_EnumWindows]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessId]
lea esp, [esp]
push esi
call ebx
push eax
push 0x40b0f0
call edi
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x58ab04]
test ecx, ecx
je 0x40b0a0
mov dword [ecx + 0x5c], esi
mov edx, dword [ecx]
mov eax, dword [edx]
push 0
push 0
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ff71d
mov esp, ebp
pop ebp
ret