Function at 0x409c20
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Create directory
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e908
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x49f56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
call fcn.004028e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
add ecx, 4
call fcn.004028e0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2c]
add ecx, 8
call fcn.004028e0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
add ecx, 0xc
call fcn.004028e0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
add ecx, 0x10
call fcn.004028e0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2c]
add ecx, 0x20
call fcn.004028e0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2c]
add ecx, 0x24
call fcn.004028e0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x2c]
add ecx, 0x28
call fcn.004028e0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2c]
add ecx, 0x2c
call fcn.004028e0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x2c]
add ecx, 0x30
call fcn.004028e0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x2c]
add ecx, 0x34
call fcn.004028e0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x2c]
add ecx, 0x54
call fcn.004028e0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x2c]
add ecx, 0x58
call fcn.004028e0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x2c]
add ecx, 0x5c
call fcn.004028e0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x2c]
add ecx, 0x60
call fcn.004028e0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x2c]
add ecx, 0x64
call fcn.004028e0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x2c]
add ecx, 0x68
call fcn.004028e0
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x2c]
add ecx, 0x6c
call fcn.004028e0
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x2c]
add ecx, 0x70
call fcn.0040b490
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x2c]
add ecx, 0xc0
call fcn.004028e0
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x2c]
add ecx, 0xc4
call fcn.004028e0
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x2c]
add ecx, 0xc8
call fcn.004028e0
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x2c]
add ecx, 0xcc
call fcn.004028e0
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x2c]
add ecx, 0xd0
call fcn.004028e0
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x2c]
add ecx, 0xd8
call fcn.004028e0
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x2c]
add ecx, 0xdc
call fcn.004028e0
mov byte [ebp - 4], 0x19
push 0x486064
mov ecx, dword [ebp - 0x2c]
call fcn.004029f0
push 0x486070
mov ecx, dword [ebp - 0x2c]
add ecx, 4
call fcn.004029f0
push 0x486118
mov ecx, dword [ebp - 0x2c]
add ecx, 8
call fcn.004029f0
push 0x486062
mov ecx, dword [ebp - 0x2c]
add ecx, 0x10
call fcn.00415300
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x14], 4
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x18], 4
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x3c], 0x258
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x40], 0x12c
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x44
push ecx
call dword [sym.imp.USER32.dll_SetRect]
lea edx, [ebp - 0x10]
push edx
call fcn.00453940
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x2c]
add ecx, 0x28
call fcn.00401c20
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x10]
call fcn.004029a0
push 0x48606c
mov ecx, dword [ebp - 0x2c]
add ecx, 0x28
call fcn.00401c40
mov edx, dword [str.klwlJJSG]
push edx
mov ecx, dword [ebp - 0x2c]
add ecx, 0x28
call fcn.00401c40
push 0x486114
mov ecx, dword [ebp - 0x2c]
add ecx, 0x28
call fcn.00401c40
push 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x28
call fcn.0041a040
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x2c]
add eax, 0x28
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x2c
call fcn.00401c20
mov ecx, dword [ebp - 0x2c]
add ecx, 0x2c
push ecx
mov ecx, dword [ebp - 0x2c]
add ecx, 0x24
call fcn.00401c20
push str.launchercache_
mov ecx, dword [ebp - 0x2c]
add ecx, 0x24
call fcn.00401c40
push 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x24
call fcn.0041a040
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x2c]
add edx, 0x2c
push edx
mov ecx, dword [ebp - 0x2c]
add ecx, 0x30
call fcn.00401c20
push str.launcherweb_
mov ecx, dword [ebp - 0x2c]
add ecx, 0x30
call fcn.00401c40
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0xd4], 1
lea ecx, [ebp - 0x14]
push ecx
call fcn.00453940
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 0x1b
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x28
call fcn.00401c20
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x14]
call fcn.004029a0
push str.KunlunGame_
mov ecx, dword [ebp - 0x2c]
add ecx, 0x28
call fcn.00401c40
push 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x28
call fcn.0041a040
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x486214
mov ecx, dword [ebp - 0x2c]
add ecx, 0x28
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.004020e0
add esp, 0xc
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0x1c
mov ecx, dword [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x2c]
add ecx, 0xd8
call fcn.00401c20
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x18]
call fcn.004029a0
push 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0xd8
call fcn.0041a040
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.cache_
lea edx, [ebp - 0x1c]
push edx
call fcn.00453b60
add esp, 4
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0x1d
mov ecx, dword [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.004020e0
add esp, 0xc
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 0x1e
mov ecx, dword [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x2c]
add ecx, 0xdc
call fcn.00401c20
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x20]
call fcn.004029a0
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x1c]
call fcn.004029a0
mov edx, dword [ebp - 0x2c]
mov byte [edx + 0x38], 0
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x1c], 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x20
call fcn.00402190
movzx ecx, al
test ecx, ecx
je 0x40a0be
lea edx, [ebp - 0x24]
push edx
call fcn.00454500
add esp, 4
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0x1f
mov ecx, dword [ebp - 0x5c]
push ecx
mov ecx, dword [ebp - 0x2c]
add ecx, 0x20
call fcn.00401c20
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x24]
call fcn.004029a0
mov ecx, dword [ebp - 0x2c]
call fcn.0040a870
lea edx, [ebp - 0x28]
push edx
call fcn.00454720
add esp, 4
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0x20
mov ecx, dword [ebp - 0x64]
push ecx
mov ecx, dword [ebp - 0x2c]
add ecx, 0x34
call fcn.00401c20
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x28]
call fcn.004029a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret