Function at 0x52d260
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 0x52d2a5
mov ebx, dword ds:[edx]
mov esi, dword [edx + 4]
jmp 0x52d449
mov eax, dword [ebx]
cmp eax, 4
jne 0x52d2e8
call sym.SystemInformer.exe_Ordinal_1515
mov edi, eax
test edi, edi
je 0x52d3ed
push edi
call sym.SystemInformer.exe_Ordinal_1641
mov ecx, edi
mov esi, eax
mov edi, esi
add ecx, 0xfffffff8
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x52d2de
call fcn.004fe0c0
mov ebx, dword [esi]
mov esi, dword [esi + 4]
jmp 0x52d3f7
mov dword [esp + 0x30], eax
mov eax, 0x100
mov dword [esp + 0x34], 0x1000000
nop dword [eax]
movzx eax, ax
push eax
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esp + 0x38], eax
test eax, eax
je 0x52d3ed
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 0x52d347
push dword [esp + 0x38]
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp esi, 0xc0000004
jne 0x52d356
mov ax, word [esp + 0x36]
jmp 0x52d300
test esi, esi
js 0x52d3ed
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_Ordinal_1369
nop dword [eax]
cmp eax, 0xffffffff
jne 0x52d3a7
mov ax, word [esp + 0x34]
test ax, ax
jne 0x52d396
call sym.SystemInformer.exe_Ordinal_1430
jmp 0x52d3d2
movzx ecx, ax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jmp 0x52d3c4
add eax, eax
lea ecx, [edi + 2]
sub esi, eax
add ecx, eax
add esi, 0xfffffffe
jne 0x52d3bc
call sym.SystemInformer.exe_Ordinal_1430
jmp 0x52d3d2
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
push 0
push 0
lea eax, [esp + 0x18]
push eax
call sym.SystemInformer.exe_Ordinal_1331
push dword [esp + 0x38]
mov edi, eax
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [edi]
mov esi, dword [edi + 4]
jmp 0x52d3f7
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_Ordinal_1560
test eax, eax
js 0x52d449
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x44]
movlpd qword [esp + 0x1c], xmm0
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
push dword [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 0x52d4c7
push eax
push 0x800
lea eax, [esp + 0x2c]
push eax
call sym.SystemInformer.exe_Ordinal_1561
test eax, eax
js 0x52d4c7
push 0
push 4
lea eax, [esp + 0x4c]
push eax
push 0x14
push dword [esp + 0x34]
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x52d49b
cmp dword [esp + 0x44], 0
setne byte [esp + 0xf]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
call fcn.005241a0
test eax, eax
js 0x52d4bd
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, 0x61eb64
mov dword [esp + 0x48], 1
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x10], eax
mov eax, 0x5d1e90
je 0x52d645
cmp dword [esp + 0x28], 0
cmove edx, eax
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x44], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52d500
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, 0x5d1e90
cmove edx, eax
mov dword [esp + 0x8c], 0x603a3c
mov ecx, edx
mov dword [esp + 0x90], 8
mov dword [esp + 0xa8], 1
mov dword [esp + 0xb8], 6
mov dword [esp + 0xbc], 0x618c54
mov dword [esp + 0xc0], 1
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52d5a5
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], 0x603a3c
mov dword [esp + 0x10c], 8
mov dword [esp + 0x124], 0
push 0xa
jmp 0x52d6dc
cmp dword [esp + 0x28], 0
cmove edx, eax
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x10], eax
mov ax, word ds:[ecx]
add ecx, 2
test ax, ax
jne 0x52d656
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], 0x603a3c
mov dword [esp + 0x94], 8
mov dword [esp + 0xac], 0
push 5
push eax
call sym.SystemInformer.exe_Ordinal_1375
or edx, 0xffffffff
mov esi, eax
test edi, edi
je 0x52d708
lea ecx, [edi - 8]
mov eax, edx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x52d708
nop dword [eax + eax]
call fcn.004fe0c0
or edx, 0xffffffff
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x52d725
lea ecx, [eax - 8]
lock xadd dword [ecx + 4], edx
dec edx
jne 0x52d725
nop dword [eax + eax]
call fcn.004fe0c0
mov ecx, dword [esp + 0x13c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00583f7f
mov esp, ebp
pop ebp
ret