Function at 0x408560
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get number of processors
Query or enumerate registry value
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x597cfe
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x304], eax
push ebp
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x318]
mov dword fs:[0], eax
xor edi, edi
lea eax, [esp + 0x20]
mov dword [esp + 0x320], edi
push eax
mov ecx, str.srvver_sappver_suid_dm_s
mov dword [esp + 0x40], ebx
mov dword [esp + 0x2c], edi
call fcn.004066b0
push 0xc6
lea edx, [esp + 0x4a]
mov esi, 1
xor ecx, ecx
push edi
mov dword [esp + 0x328], esi
push edx
mov word [esp + 0x50], cx
call fcn.004fe380
add esp, 0xc
push 0x64
lea eax, [esp + 0x48]
push eax
call fcn.0051b4b0
mov edx, dword [0x6285c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x6285c4
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x320], 2
mov edx, dword [0x6285c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x6285c4
call eax
add eax, 0x10
mov dword [ebx], eax
mov dword [esp + 0x28], esi
xor esi, esi
mov dword [esp + 0x30], esi
push 0x10
mov byte [esp + 0x324], 3
mov ecx, dword [0x628534]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [esp + 0x34], eax
cmp eax, edi
je 0x408667
mov edx, dword [0x628534]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [esp + 0x30], esi
cmp esi, edi
jne 0x408667
mov dword [esp + 0x34], edi
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x3c]
push edx
push 0x5d7f4c
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4086b6
mov eax, dword [esp + 0x38]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push 0x5d7f50
lea edi, [esp + 0x30]
call fcn.00407710
mov ebp, dword [esp + 0x30]
add esp, 0x14
xor edi, edi
mov eax, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
push str.userid
push str.Software360Safe
push reloc.WS2_32.dll_accept
mov dword [esp + 0x2c], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x4087be
push 0x206
lea ecx, [esp + 0x112]
xor eax, eax
push edi
push ecx
mov word [esp + 0x118], ax
call fcn.004fe380
mov edx, dword [0x6285c4]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x6285c4
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x320], 4
call fcn.00408860
test eax, eax
je 0x408767
mov ecx, dword [esp + 0x18]
push str.360oemoeminfo.ini
push ecx
push 0x5d7fec
lea edx, [esp + 0x118]
push 0x104
push edx
call fcn.00407c70
add esp, 0x14
lea eax, [esp + 0x10c]
push eax
push 1
push 0x5d8094
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esp + 0x14], eax
mov byte [esp + 0x320], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4087ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x4087be
mov eax, 1
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x44]
push ecx
push eax
push ebp
push ebp
push edx
mov edi, ebx
call fcn.00407710
add esp, 0x14
test esi, esi
je 0x4087e0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [ebp - 0x10]
mov byte [esp + 0x320], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408804
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x320], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40882c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x318]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x304]
xor ecx, esp
call fcn.004f673f
add esp, 0x314
ret