Function at 0x52c100
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 [0x62d040]
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 0x52c145
mov ebx, dword ds:[edx]
mov esi, dword [edx + 4]
jmp 0x52c2f5
mov eax, dword [ebx]
cmp eax, 4
jne 0x52c188
call sym.SystemInformer.exe_PhGetKernelFileName2
mov edi, eax
test edi, edi
je 0x52c28d
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 0x52c17e
call fcn.004fbd80
mov ebx, dword [esi]
mov esi, dword [esi + 4]
jmp 0x52c297
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 [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esp + 0x38], eax
test eax, eax
je 0x52c28d
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 0x52c1e7
push dword [esp + 0x38]
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp esi, 0xc0000004
jne 0x52c1f6
mov ax, word [esp + 0x36]
jmp 0x52c1a0
test esi, esi
js 0x52c28d
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 0x52c247
mov ax, word [esp + 0x34]
test ax, ax
jne 0x52c236
call sym.SystemInformer.exe_PhReferenceEmptyString
jmp 0x52c272
movzx ecx, ax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jmp 0x52c264
add eax, eax
lea ecx, [edi + 2]
sub esi, eax
add ecx, eax
add esi, 0xfffffffe
jne 0x52c25c
call sym.SystemInformer.exe_PhReferenceEmptyString
jmp 0x52c272
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 [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [edi]
mov esi, dword [edi + 4]
jmp 0x52c297
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 0x52c2f5
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 0x52c37a
push eax
push 0x800
lea eax, [esp + 0x2c]
push eax
call sym.SystemInformer.exe_PhOpenThread
test eax, eax
js 0x52c37a
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 0x52c34e
cmp dword [esp + 0x44], 0
setne byte [esp + 0xf]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
call fcn.0051c800
test eax, eax
js 0x52c370
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, 0x6170e4
mov dword [esp + 0x48], 1
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x10], eax
mov eax, 0x5cab58
je 0x52c4f7
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 0x52c3b0
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, 0x5cab58
cmove edx, eax
mov dword [esp + 0x8c], 0x5c98ec
mov ecx, edx
mov dword [esp + 0x90], 8
mov dword [esp + 0xa8], 1
mov dword [esp + 0xb8], 6
mov dword [esp + 0xbc], 0x6111e0
mov dword [esp + 0xc0], 1
lea esi, [ecx + 2]
mov ax, word ds:[ecx]
add ecx, 2
test ax, ax
jne 0x52c455
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], 0x5c98ec
mov dword [esp + 0x10c], 8
mov dword [esp + 0x124], 0
push 0xa
jmp 0x52c592
cmp dword [esp + 0x28], 0
cmove edx, eax
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x10], eax
jmp 0x52c510
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52c510
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], 0x5c98ec
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 0x52c5b9
lea ecx, [edi - 8]
mov eax, edx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x52c5b9
call fcn.004fbd80
or edx, 0xffffffff
mov eax, dword ds:[esp + 0x2c]
test eax, eax
je 0x52c5d4
lea ecx, [eax - 8]
lock xadd dword [ecx + 4], edx
dec edx
jne 0x52c5d4
call fcn.004fbd80
mov ecx, dword [esp + 0x13c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret