Function at 0x4a2680
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
push 0x402
push ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0xc4], ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4a26c6
push 0x5fd5ac
push 0
push 0xc
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x635f50], 3
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xbc], 0
push eax
jl 0x4a26fb
mov edx, 0x400
lea ecx, [ebp - 0xb8]
call fcn.00523540
jmp 0x4a275b
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xe8], 0x18
push eax
push 0x400
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xe4], 0
push eax
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
call dword [sym.imp.ntdll.dll_NtOpenProcess]
cmp eax, 0xc0000022
je 0x4a2ab2
jmp 0x4a2760
test eax, eax
js 0x4a2ab2
mov ecx, dword [ebp - 0xb8]
lea edx, [ebp - 0xb0]
call fcn.00486760
mov dword ds:[ebp - 0xd0], eax
test eax, eax
js 0x4a2a9d
push 0
push 0
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xc8], 0
mov edi, 0x64
push eax
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xcc], edi
call sym.SystemInformer.exe_PhCreateString3
mov esi, eax
xor eax, eax
mov dword [ebp - 0xbc], esi
xor ebx, ebx
mov dword [esi], 0
mov ecx, dword [esi + 4]
mov word [ecx], ax
jmp 0x4a27d0
mov edx, dword [ebp + ebx*4 - 0xb0]
test edx, edx
je 0x4a28b7
push 0
lea eax, [ebp - 0xb4]
mov ecx, ebx
push eax
call fcn.00486be0
test al, al
je 0x4a28b7
mov eax, dword [ebp - 0xb4]
mov edi, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ebp - 8], ecx
test edi, edi
je 0x4a2855
mov eax, dword [esi]
add eax, edi
cmp dword [ebp - 0xc0], eax
jae 0x4a2830
lfence
mov edx, dword [esi]
lea ecx, [ebp - 0xc0]
add edx, edi
call fcn.004ff5f0
mov esi, dword [ebp - 0xbc]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4a2848
mov eax, dword ds:[esi + 4]
add eax, dword [esi]
push edi
push ecx
push eax
call fcn.00580c90
add esp, 0xc
add dword [esi], edi
xor edx, edx
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov word [ecx + eax], dx
mov eax, dword [esi]
mov edi, dword [ebp - 0xc0]
add eax, 4
cmp edi, eax
jae 0x4a2883
lfence
mov edx, dword [esi]
lea ecx, [ebp - 0xc0]
add edx, 4
call fcn.004ff5f0
mov esi, dword [ebp - 0xbc]
mov edi, dword [ebp - 0xc0]
mov edx, dword [esi]
mov ecx, dword [esi + 4]
mov eax, dword [0x60d0a4]
mov dword [edx + ecx], eax
xor edx, edx
add dword [esi], 4
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov word [ecx + eax], dx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xb4]
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4a28b7
call fcn.004fbd80
inc ebx
cmp ebx, 0x14
jb 0x4a27d0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x10], 4
jne 0x4a29e7
push 0
push 4
lea eax, [ebp - 0xc]
push eax
push 0xdd
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x4a29e7
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
mov ecx, eax
and eax, 0x100
shr ecx, 4
and ecx, 0x30
or ecx, eax
lea eax, [ebp - 0xb4]
shr ecx, 4
push 0
mov dword [ebp - 8], ecx
mov ecx, 0xf
push eax
call fcn.00486be0
nop
test al, al
je 0x4a29e7
mov eax, dword [ebp - 0xb4]
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc8], ecx
test ebx, ebx
je 0x4a298a
mov eax, dword [esi]
add eax, ebx
cmp edi, eax
jae 0x4a2969
lfence
mov edx, dword [esi]
lea ecx, [ebp - 0xc0]
add edx, ebx
call fcn.004ff5f0
mov esi, dword [ebp - 0xbc]
mov edi, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0xc8]
test ecx, ecx
je 0x4a297d
mov eax, dword [esi + 4]
add eax, dword [esi]
push ebx
push ecx
push eax
call fcn.00580c90
add esp, 0xc
add dword [esi], ebx
xor edx, edx
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov word [ecx + eax], dx
mov eax, dword [esi]
add eax, 4
cmp edi, eax
jae 0x4a29ac
lfence
mov edx, dword [esi]
lea ecx, [ebp - 0xc0]
add edx, 4
call fcn.004ff5f0
mov esi, dword [ebp - 0xbc]
mov edx, dword [esi]
or ebx, 0xffffffff
mov ecx, dword [esi + 4]
mov eax, dword [0x60d0a4]
mov dword [edx + ecx], eax
xor edx, edx
add dword [esi], 4
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov word [ecx + eax], dx
mov eax, ebx
mov ecx, dword [ebp - 0xb4]
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4a29ea
lea ecx, [ecx]
call fcn.004fbd80
jmp 0x4a29ea
or ebx, 0xffffffff
mov edi, dword [esi]
test edi, edi
je 0x4a2a3d
mov ecx, dword [esi + 4]
mov eax, edi
shr eax, 1
lea edx, [eax*2 - 4]
sub edi, edx
lea eax, [ecx + eax*2]
sub edi, 4
push edi
push eax
lea eax, [ecx + edx]
push eax
call fcn.00580c90
add dword [esi], 0xfffffffc
add esp, 0xc
mov ecx, dword [esi]
xor edx, edx
mov eax, dword [esi + 4]
push 0x402
push dword [ebp - 0xc4]
mov word [ecx + eax], dx
mov edi, dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4a2a66
push edi
jmp 0x4a2a57
push 0x402
push dword [ebp - 0xc4]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4a2a66
push str.None
push 0
push 0xc
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esi - 8]
lock xadd dword [ecx + 4], ebx
dec ebx
jne 0x4a2a97
call fcn.004fbd80
push dword ds:[ebp - 0xb8]
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xc4]
push dword [ebp - 0xb8]
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp - 0xd0], 0
jge 0x4a2acd
push 0
push 0x438
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057e94f
mov esp, ebp
pop ebp
ret