Function at 0x409b6e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
push edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
push edi
push edi
push 0x1009
push dword [ebp + 8]
call ebx
push edi
push 1
or dword [ebp - 0x6c], 0xffffffff
pop esi
push esi
push 0x1002
push dword [ebp + 8]
call ebx
or dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x34], esi
mov esi, 0x200
mov dword [ebp - 0x3c], eax
push esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], esi
call fcn.0040505d
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x409fb9
push esi
mov dword [ebp - 0x2c], esi
call fcn.0040505d
cmp eax, edi
mov dword [ebp - 0x14], eax
jne 0x409bf0
push dword [ebp - 0x10]
call fcn.00405081
jmp 0x409fb9
mov eax, 0x2000
push eax
mov dword [ebp - 4], eax
call fcn.0040505d
mov esi, dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
push edi
push dword [ebp - 4]
mov dword [ebp - 0x1c], eax
push eax
push 5
call esi
cmp eax, 0xc0000004
jne 0x409c39
push dword [ebp - 0x1c]
call fcn.00405081
mov eax, dword [ebp - 4]
add eax, eax
push eax
mov dword [ebp - 4], eax
call fcn.0040505d
push edi
mov dword [ebp - 0x1c], eax
push dword [ebp - 4]
push eax
push 5
jmp 0x409c0e
mov eax, 0x4000
push eax
mov dword [ebp - 4], eax
call fcn.0040505d
push edi
mov dword [ebp - 0x28], eax
push dword [ebp - 4]
push eax
push 0x10
call esi
cmp eax, 0xc0000004
jne 0x409c69
push dword [ebp - 0x28]
call fcn.00405081
mov eax, dword [ebp - 4]
add eax, eax
jmp 0x409c3e
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x38], edi
cmp dword [esi], edi
lea eax, [esi + 4]
jbe 0x409f55
mov esi, eax
mov dword [ebp - 0xc], esi
jmp 0x409c84
mov esi, dword [ebp - 0xc]
cmp dword [ebp - 8], edi
je 0x409c95
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], edi
mov eax, dword [esi]
cmp eax, edi
je 0x409f32
cmp dword [ebp - 0x30], 0xffffffff
je 0x409cb2
movzx ecx, byte [esi + 4]
cmp ecx, dword [ebp - 0x30]
jne 0x409f32
cmp eax, dword [ebp - 0x20]
je 0x409cec
cmp dword [ebp - 0x18], edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], edi
je 0x409ccb
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
mov dword [ebp - 0x18], eax
jne 0x409cf5
push 1
pop eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], eax
jmp 0x409f32
cmp dword [ebp - 0x34], edi
jne 0x409f32
push 2
push edi
lea eax, [ebp - 8]
push edi
push eax
push 0xffffffffffffffff
movzx eax, word [esi + 6]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x409f32
cmp dword [ebp - 0x30], 0xffffffff
jne 0x409d92
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x10]
push 2
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_ZwQueryObject]
mov esi, 0xc0000004
cmp eax, esi
jne 0x409d67
mov eax, dword [ebp - 4]
push dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
call fcn.00405081
push dword [ebp - 0x24]
call fcn.0040505d
lea ecx, [ebp - 4]
mov dword [ebp - 0x10], eax
push ecx
push dword [ebp - 0x24]
push eax
push 2
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_ZwQueryObject]
jmp 0x409d35
mov eax, dword [ebp + 0x10]
push dword [eax*4 + 0x41fe88]
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
call fcn.00415020
pop ecx
test eax, eax
pop ecx
jne 0x409f32
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 4]
mov dword [ebp - 0x30], eax
jmp 0x409d97
mov esi, 0xc0000004
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
push 1
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_ZwQueryObject]
cmp eax, esi
jne 0x409dd3
mov eax, dword [ebp - 4]
push dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
call fcn.00405081
push dword [ebp - 0x2c]
call fcn.0040505d
lea ecx, [ebp - 4]
mov dword [ebp - 0x14], eax
push ecx
push dword [ebp - 0x2c]
push eax
jmp 0x409da1
mov eax, dword [ebp - 0x14]
cmp word [eax], di
je 0x409f32
push dword [ebp + 0xc]
push dword [eax + 4]
call fcn.00415020
pop ecx
test eax, eax
pop ecx
jne 0x409f21
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x20]
cmp dword [eax + 0x44], ecx
je 0x409e11
xor ecx, ecx
cmp dword [eax], edi
sete cl
mov dword [ebp - 0x48], ecx
jmp 0x409f13
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x3c], edi
push 1
mov dword [ebp - 0x70], 3
mov dword [ebp - 0x68], edi
mov eax, dword [eax + 0x3c]
pop esi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x48], esi
je 0x409e5d
mov eax, dword [ebp - 0xc]
push dword [eax]
call fcn.00409b41
cmp eax, edi
mov dword [ebp - 0x74], eax
je 0x409e5a
push eax
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push dword [ebp - 0x74]
mov dword [ebp - 0x54], eax
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x409e5d
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x70]
push eax
push edi
push 0x104d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0xc]
inc dword [ebp - 0x68]
mov dword [ebp - 0x70], esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push dword [eax]
lea eax, [ebp - 0x274]
push 0x41f780
push eax
call esi
lea eax, [ebp - 0x274]
add esp, 0xc
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x70]
push eax
push edi
push 0x1006
push dword [ebp + 8]
call ebx
mov eax, dword [ebp - 0xc]
inc dword [ebp - 0x68]
movzx eax, word [eax + 6]
push eax
lea eax, [ebp - 0x274]
push 0x41f780
push eax
call esi
lea eax, [ebp - 0x274]
add esp, 0xc
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x70]
push eax
push edi
push 0x1006
push dword [ebp + 8]
call ebx
mov eax, dword [ebp - 0xc]
inc dword [ebp - 0x68]
push dword [eax + 0xc]
lea eax, [ebp - 0x274]
push str.0x_08X
push eax
call esi
lea eax, [ebp - 0x274]
add esp, 0xc
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x70]
push eax
push edi
push 0x1006
push dword [ebp + 8]
call ebx
mov eax, dword [ebp - 0x44]
add eax, dword [eax]
cmp dword [ebp - 0x48], edi
mov dword [ebp - 0x44], eax
je 0x409dfa
cmp dword [ebp - 8], edi
je 0x409f32
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], edi
inc dword [ebp - 0x38]
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x38]
add dword [ebp - 0xc], 0x10
cmp eax, dword [esi]
jb 0x409c81
cmp dword [ebp - 0x18], edi
je 0x409f55
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], edi
je 0x409f66
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], edi
cmp dword [ebp - 0x14], edi
je 0x409f73
push dword [ebp - 0x14]
call fcn.00405081
cmp dword [ebp - 0x10], edi
je 0x409f80
push dword [ebp - 0x10]
call fcn.00405081
cmp esi, edi
je 0x409f8a
push esi
call fcn.00405081
cmp dword [ebp - 0x1c], edi
je 0x409f97
push dword [ebp - 0x1c]
call fcn.00405081
cmp dword [ebp - 0x40], edi
jne 0x409fb9
push edi
push 0x44f
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
leave
ret 0xc