Function at 0x529ac0
Capabilities:
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x62a040]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
xor edi, edi
mov byte [esp + 0xf], 0
mov dword [esp + 0x2c], edi
mov ebx, ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], edi
test edx, edx
je 0x529b05
mov ebx, dword ds:[edx]
mov esi, dword [edx + 4]
jmp 0x529cb5
mov eax, dword [ebx]
cmp eax, 4
jne 0x529b48
call sym.SystemInformer.exe_PhGetKernelFileName2
mov edi, eax
test edi, edi
je 0x529c4d
push edi
call sym.SystemInformer.exe_PhGetBaseName
mov ecx, edi
mov esi, eax
mov edi, esi
add ecx, 0xfffffff8
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x529b3e
call fcn.004f9e40
mov ebx, dword [esi]
mov esi, dword [esi + 4]
jmp 0x529c57
mov dword [esp + 0x30], eax
mov eax, 0x100
mov dword [esp + 0x34], 0x1000000
lea esp, [esp]
movzx eax, ax
push eax
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esp + 0x38], eax
test eax, eax
je 0x529c4d
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push 0x58
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
test esi, esi
jns 0x529ba7
push dword [esp + 0x38]
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp esi, 0xc0000004
jne 0x529bb6
mov ax, word [esp + 0x36]
jmp 0x529b60
test esi, esi
js 0x529c4d
movzx esi, word [esp + 0x34]
lea eax, [esp + 0x10]
mov edi, dword [esp + 0x38]
push 0
push 0x5c
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
call sym.SystemInformer.exe_PhFindLastCharInStringRef
lea ecx, [ecx]
cmp eax, 0xffffffff
jne 0x529c07
mov ax, word [esp + 0x34]
test ax, ax
jne 0x529bf6
call sym.SystemInformer.exe_PhReferenceEmptyString
jmp 0x529c32
movzx ecx, ax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jmp 0x529c24
add eax, eax
lea ecx, [edi + 2]
sub esi, eax
add ecx, eax
add esi, 0xfffffffe
jne 0x529c1c
call sym.SystemInformer.exe_PhReferenceEmptyString
jmp 0x529c32
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
push 0
push 0
lea eax, [esp + 0x18]
push eax
call sym.SystemInformer.exe_PhCreateString3
push dword [esp + 0x38]
mov edi, eax
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [edi]
mov esi, dword [edi + 4]
jmp 0x529c57
mov esi, str.Unknown_process
mov ebx, 0x1e
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], esi
push dword [eax]
lea eax, [esp + 0x40]
push 0x100000
push eax
call sym.SystemInformer.exe_PhOpenProcess
test eax, eax
js 0x529cb5
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0
push dword [esp + 0x44]
mov dword [esp + 0x20], 0
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
push dword ds:[esp + 0x3c]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
xor ecx, ecx
test esi, esi
mov esi, dword [esp + 0x1c]
sete cl
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], 0x1c
mov dword [esp + 0x40], str.unnamed_thread
mov eax, dword [eax + 4]
test eax, eax
je 0x529d3a
push eax
push 0x800
lea eax, [esp + 0x2c]
push eax
call sym.SystemInformer.exe_PhOpenThread
test eax, eax
js 0x529d3a
push 0
push 4
lea eax, [esp + 0x4c]
push eax
push 0x14
push dword [esp + 0x34]
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov edi, edi
test eax, eax
js 0x529d0e
cmp dword [esp + 0x44], 0
setne byte [esp + 0xf]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
call fcn.0051a9c0
test eax, eax
js 0x529d30
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x40], eax
push dword [esp + 0x24]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [esp + 0x20]
mov edx, 0x614cb4
mov dword [esp + 0x48], 1
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x10], eax
mov eax, 0x5c6aec
je 0x529eb7
cmp dword [esp + 0x28], 0
cmove edx, eax
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x44], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x529d70
sub ecx, dword [esp + 0x44]
sar ecx, 1
cmp byte [esp + 0xf], 0
mov dword [esp + 0x5c], edx
mov edx, str.terminated
mov dword [esp + 0x74], esi
lea eax, [ecx + ecx]
mov dword [esp + 0x60], 1
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x78], 1
mov dword [esp + 0x88], 4
mov eax, dword [eax]
mov dword [esp + 0xa0], eax
mov eax, 0x5c6aec
cmove edx, eax
mov dword [esp + 0x8c], 0x5f9e44
mov ecx, edx
mov dword [esp + 0x90], 8
mov dword [esp + 0xa8], 1
mov dword [esp + 0xb8], 6
mov dword [esp + 0xbc], 0x60ed18
mov dword [esp + 0xc0], 1
lea esi, [ecx + 2]
mov ax, word ds:[ecx]
add ecx, 2
test ax, ax
jne 0x529e15
sub ecx, esi
mov dword [esp + 0xd4], edx
sar ecx, 1
push 0x50
mov dword [esp + 0xdc], 1
mov dword [esp + 0xf4], 1
lea eax, [ecx + ecx]
mov dword [esp + 0x104], 4
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x11c], eax
mov eax, 0x29
mov word [esp + 0x134], ax
lea eax, [esp + 0x4c]
mov dword [esp + 0x108], 0x5f9e44
mov dword [esp + 0x10c], 8
mov dword [esp + 0x124], 0
push 0xa
jmp 0x529f52
cmp dword [esp + 0x28], 0
cmove edx, eax
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x10], eax
jmp 0x529ed0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x529ed0
sub ecx, dword [esp + 0x10]
sar ecx, 1
push 0x50
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], 1
lea eax, [ecx + ecx]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], 1
mov dword [esp + 0x8c], 4
mov eax, dword [eax]
mov dword [esp + 0xa4], eax
mov eax, 0x29
mov word [esp + 0xbc], ax
lea eax, [esp + 0x4c]
mov dword [esp + 0x90], 0x5f9e44
mov dword [esp + 0x94], 8
mov dword [esp + 0xac], 0
push 5
push eax
call sym.SystemInformer.exe_PhFormat
or edx, 0xffffffff
mov esi, eax
test edi, edi
je 0x529f79
lea ecx, [edi - 8]
mov eax, edx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x529f79
call fcn.004f9e40
or edx, 0xffffffff
mov eax, dword ds:[esp + 0x2c]
test eax, eax
je 0x529f94
lea ecx, [eax - 8]
lock xadd dword [ecx + 4], edx
dec edx
jne 0x529f94
call fcn.004f9e40
mov ecx, dword [esp + 0x13c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret