Function at 0x411a40
Capabilities:
Check for peb ntglobalflag flag
Check if file exists
Get number of processors
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569662
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5d4050]
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
mov ebx, ecx
push 0
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
push 0x5afb08
mov dword [ebp - 0x4c], ebx
mov byte [ebx], 0
call fcn.00402bf0
lea edi, [ebx + 0x18]
mov dword [ebp - 4], 0
push 0
mov dword [edi + 0x14], 0xf
mov ecx, edi
mov dword [edi + 0x10], 0
push 0x5afb08
mov byte [edi], 0
call fcn.00402bf0
lea ecx, [ebx + 0x30]
mov byte [ebp - 4], 1
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x5afb08
mov byte [ecx], 0
call fcn.00402bf0
lea ecx, [ebx + 0x48]
mov byte [ebp - 4], 2
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x5afb08
mov byte [ecx], 0
call fcn.00402bf0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x78], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x64]
mov dword [ebx + 0x7c], 0
mov word [ebx + 0x80], 0
call fcn.004172e0
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.004086a0
mov byte [ebp - 4], 8
cmp dword [ebp - 0x50], 0x10
jb 0x411b6e
push dword [ebp - 0x64]
call fcn.00421c08
add esp, 4
push 8
xor eax, eax
mov dword [ebp - 0x50], 0xf
push str.RECOVERY
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
call fcn.00403360
mov byte [ebp - 4], 9
mov esi, dword [0x5e0630]
test esi, esi
jne 0x411bdf
push 4
call fcn.00421bdb
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xa
test eax, eax
je 0x411bd3
mov ecx, eax
mov dword [eax], esi
call fcn.004051a0
mov esi, eax
jmp 0x411bd5
xor esi, esi
mov byte [ebp - 4], 9
mov dword [0x5e0630], esi
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
mov esi, dword [esi]
mov ecx, esi
cmovae eax, dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
call fcn.00415d40
mov eax, dword [esi + 0x1c]
cmp dword [ebp - 0x14], eax
mov byte [ebp - 4], 8
setne al
cmp dword [ebp - 0x34], 8
mov byte [ebp - 0x2d], al
jb 0x411c23
push dword [ebp - 0x48]
call fcn.00421c08
mov al, byte [ebp - 0x2d]
add esp, 4
test al, al
je 0x411ca2
push 0x16
push str.AsusSetup_Recovery.ini
mov ecx, ebx
call fcn.00402bf0
push ebx
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
call fcn.00414990
mov esi, eax
add esp, 4
cmp edi, esi
je 0x411c73
cmp dword [edi + 0x14], 0x10
jb 0x411c5a
push dword [edi]
call fcn.00421c08
add esp, 4
mov dword [edi + 0x14], 0xf
mov ecx, edi
mov dword [edi + 0x10], 0
push esi
mov byte [edi], 0
call fcn.004028b0
cmp dword [ebp - 0x34], 0x10
jb 0x411c84
push dword [ebp - 0x48]
call fcn.00421c08
add esp, 4
cmp dword [edi + 0x14], 0x10
jb 0x411c8e
mov eax, dword [edi]
jmp 0x411c90
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x411ca2
mov byte [ebx + 0x81], 1
cmp byte [ebx + 0x81], 0
jne 0x411d08
push 0xd
push str.AsusSetup.ini
mov ecx, ebx
call fcn.00402bf0
push ebx
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
call fcn.00414990
mov esi, eax
add esp, 4
cmp edi, esi
je 0x411cf7
cmp dword [edi + 0x14], 0x10
jb 0x411cde
push dword [edi]
call fcn.00421c08
add esp, 4
mov dword [edi + 0x14], 0xf
mov ecx, edi
mov dword [edi + 0x10], 0
push esi
mov byte [edi], 0
call fcn.004028b0
cmp dword [ebp - 0x34], 0x10
jb 0x411d08
push dword [ebp - 0x48]
call fcn.00421c08
add esp, 4
lea ecx, [ebx + 0x64]
call fcn.00404d20
lea ecx, [ebx + 0x70]
call fcn.00404d20
cmp dword [ebp - 0x18], 0x10
jb 0x411d29
push dword [ebp - 0x2c]
call fcn.00421c08
add esp, 4
mov eax, ebx
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.00549fe1
mov esp, ebp
pop ebp
ret