Function at 0x52d6a0
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 [0x62f040]
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 0x52d6e5
mov ebx, dword ds:[edx]
mov esi, dword [edx + 4]
jmp 0x52d895
mov eax, dword [ebx]
cmp eax, 4
jne 0x52d728
call sym.SystemInformer.exe_PhGetKernelFileName2
mov edi, eax
test edi, edi
je 0x52d82d
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 0x52d71e
call fcn.004fc420
mov ebx, dword [esi]
mov esi, dword [esi + 4]
jmp 0x52d837
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 [0x636044]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esp + 0x38], eax
test eax, eax
je 0x52d82d
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 0x52d787
push dword [esp + 0x38]
push 0
push dword [0x636044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp esi, 0xc0000004
jne 0x52d796
mov ax, word [esp + 0x36]
jmp 0x52d740
test esi, esi
js 0x52d82d
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 0x52d7e7
mov ax, word [esp + 0x34]
test ax, ax
jne 0x52d7d6
call sym.SystemInformer.exe_PhReferenceEmptyString
jmp 0x52d812
movzx ecx, ax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jmp 0x52d804
add eax, eax
lea ecx, [edi + 2]
sub esi, eax
add ecx, eax
add esi, 0xfffffffe
jne 0x52d7fc
call sym.SystemInformer.exe_PhReferenceEmptyString
jmp 0x52d812
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 [0x636044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [edi]
mov esi, dword [edi + 4]
jmp 0x52d837
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 0x52d895
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 0x52d91a
push eax
push 0x800
lea eax, [esp + 0x2c]
push eax
call sym.SystemInformer.exe_PhOpenThread
test eax, eax
js 0x52d91a
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 0x52d8ee
cmp dword [esp + 0x44], 0
setne byte [esp + 0xf]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
call fcn.0051dc80
test eax, eax
js 0x52d910
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, 0x6192e4
mov dword [esp + 0x48], 1
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x10], eax
mov eax, 0x5ccc90
je 0x52da97
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 0x52d950
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, 0x5ccc90
cmove edx, eax
mov dword [esp + 0x8c], 0x5fe34c
mov ecx, edx
mov dword [esp + 0x90], 8
mov dword [esp + 0xa8], 1
mov dword [esp + 0xb8], 6
mov dword [esp + 0xbc], 0x613348
mov dword [esp + 0xc0], 1
lea esi, [ecx + 2]
mov ax, word ds:[ecx]
add ecx, 2
test ax, ax
jne 0x52d9f5
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], 0x5fe34c
mov dword [esp + 0x10c], 8
mov dword [esp + 0x124], 0
push 0xa
jmp 0x52db32
cmp dword [esp + 0x28], 0
cmove edx, eax
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x10], eax
jmp 0x52dab0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52dab0
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], 0x5fe34c
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 0x52db59
lea ecx, [edi - 8]
mov eax, edx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x52db59
call fcn.004fc420
or edx, 0xffffffff
mov eax, dword ds:[esp + 0x2c]
test eax, eax
je 0x52db74
lea ecx, [eax - 8]
lock xadd dword [ecx + 4], edx
dec edx
jne 0x52db74
call fcn.004fc420
mov ecx, dword [esp + 0x13c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0058078f
mov esp, ebp
pop ebp
ret