Function at 0x100d165
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x10154a4]
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
push edi
push 0xc
mov ebx, ecx
pop ecx
xor eax, eax
lea edi, [ebp - 0x98]
rep stosd dword es:[edi], eax
xor edi, edi
push edi
push 0x2c
lea eax, [ebp - 0xcc]
push eax
push edi
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
call esi
test eax, eax
jl 0x100d253
mov eax, dword [ebp - 0xc4]
shr eax, 0xa
imul eax, dword [ebp - 0xc0]
push edi
mov dword [ebp - 0x8c], eax
push 0x138
lea eax, [ebp - 0x228]
push eax
push 2
call esi
test eax, eax
jl 0x100d253
mov eax, dword [0x10164dc]
shr eax, 0xa
mov ecx, eax
imul ecx, dword [ebp - 0x1fc]
mov dword [ebp - 0x88], ecx
mov ecx, eax
imul ecx, dword [ebp - 0x1f8]
mov edx, eax
imul edx, dword [ebp - 0x1f0]
mov dword [ebp - 0x74], ecx
mov ecx, eax
imul ecx, dword [ebp - 0x1f4]
mov dword [ebp - 0x6c], edx
mov edx, eax
imul eax, dword [ebp - 0x1b4]
imul edx, dword [ebp - 0x1b8]
mov dword [ebp - 0x7c], eax
add eax, edx
push edi
mov dword [ebp - 0x78], eax
push 0x24
lea eax, [ebp - 0xf0]
push eax
push 0x15
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x80], edx
mov dword [0x10164c0], ecx
mov dword [0x10164c4], edi
call esi
test eax, eax
jge 0x100d25d
mov eax, 0x80004005
jmp 0x100d580
mov eax, dword [0x10164dc]
shr eax, 0xa
imul eax, dword [ebp - 0xdc]
mov ecx, ebx
mov dword [ebp - 0x84], eax
call fcn.0100a15a
cmp eax, edi
mov dword [ebp - 0x58], eax
jl 0x100d566
mov dword [ebp - 0x48], edi
mov esi, dword [ebx + 0x10]
add esi, dword [ebp - 0x48]
mov eax, dword [esi + 0x44]
cmp eax, edi
jne 0x100d29d
cmp dword [esi + 4], edi
je 0x100d32c
push eax
push dword [ebx + 0xc]
call fcn.0100abed
cmp eax, edi
je 0x100d302
mov edx, dword [esi + 0x28]
mov ecx, dword [eax + 0x18]
mov edi, dword [esi + 0x30]
mov ebx, dword [esi + 0x34]
mov dword [ebp - 0x68], ecx
mov ecx, dword [esi + 0x2c]
mov dword [ebp - 0xa0], edx
add edx, edi
adc ecx, ebx
mov ebx, dword [eax + 0x1c]
cmp ebx, ecx
jl 0x100d2dd
jg 0x100d2d4
cmp dword [ebp - 0x68], edx
jbe 0x100d2dd
or dword [eax + 8], 0xffffffff
mov ebx, dword [ebp - 0x54]
jmp 0x100d32c
mov ecx, dword [esi + 0x44]
test ecx, ecx
jne 0x100d2f6
or edi, dword [esi + 0x34]
jne 0x100d2f6
mov edx, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xa0]
or ecx, edx
je 0x100d2d4
mov eax, dword [ebp - 0x68]
add dword [ebp - 0x50], eax
adc dword [ebp - 0x4c], ebx
mov ebx, dword [ebp - 0x54]
mov eax, dword [esi + 0x30]
add eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x34]
adc ecx, dword [esi + 0x2c]
add dword [ebp - 0x60], eax
mov eax, dword [esi + 0x4c]
adc dword [ebp - 0x5c], ecx
add dword [ebp - 0x98], eax
mov eax, dword [esi + 4]
add dword [ebp - 0x94], eax
inc dword [ebp - 0x90]
mov eax, dword [esi]
add dword [ebp - 0x48], eax
cmp dword [0x1015090], 0xffffffff
jne 0x100d34d
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
cmp dword [esi + 0x44], eax
jne 0x100d34d
mov eax, dword [esi + 0x50]
mov dword [0x1015090], eax
xor edi, edi
cmp dword [esi], edi
jne 0x100d287
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x5c]
sbb ecx, dword [ebp - 0x4c]
cmp dword [0x1015dcc], edi
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x4c], ecx
mov dword [0x1016500], eax
je 0x100d3d4
xor esi, esi
mov eax, dword [esi + 0x1015178]
lea ecx, [eax + ebx + 0x18]
mov eax, dword [ebp + eax - 0x98]
push eax
push 0x1001f14
mov dword [ecx], eax
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.0100368a
mov ecx, dword [0x1015dcc]
mov eax, dword [ecx]
add esp, 0x10
call dword [eax + 0x14]
cmp eax, edi
je 0x100d3cc
lea ecx, [ebp - 0x44]
push ecx
push dword [esi + 0x101517c]
push eax
call dword [sym.imp.user32.dll_GetDlgItem]
push eax
call dword [sym.imp.user32.dll_SetWindowTextW]
add esi, 8
cmp esi, 0x60
jb 0x100d37e
mov dword [ebp - 0x48], edi
mov esi, dword [ebx + 0x10]
add esi, dword [ebp - 0x48]
mov eax, dword [esi + 0x44]
cmp eax, edi
jne 0x100d3f5
cmp dword [esi + 4], edi
je 0x100d513
cmp eax, edi
je 0x100d476
push eax
push edi
push 0x400
call dword [sym.imp.kernel32.dll_OpenProcess]
cmp eax, edi
mov dword [ebp - 0x54], eax
je 0x100d426
push eax
call dword [sym.imp.kernel32.dll_GetPriorityClass]
mov edi, eax
test edi, edi
je 0x100d419
mov dword [esi + 0x40], edi
push dword [ebp - 0x54]
call dword [sym.imp.kernel32.dll_CloseHandle]
test edi, edi
jne 0x100d476
mov eax, dword [esi + 0x40]
cmp eax, 4
jg 0x100d437
mov dword [esi + 0x40], 0x40
jmp 0x100d476
cmp eax, 6
jg 0x100d445
mov dword [esi + 0x40], 0x4000
jmp 0x100d476
cmp eax, 8
jg 0x100d453
mov dword [esi + 0x40], 0x20
jmp 0x100d476
cmp eax, 0xa
jg 0x100d461
mov dword [esi + 0x40], 0x8000
jmp 0x100d476
xor ecx, ecx
cmp eax, 0xd
setg cl
dec ecx
and ecx, 0xffffff80
add ecx, 0x100
mov dword [esi + 0x40], ecx
push dword [esi + 0x44]
push dword [ebx + 0xc]
call fcn.0100abed
test eax, eax
jne 0x100d4ef
push 0xa8
call fcn.010024e0
mov edx, eax
test edx, edx
pop ecx
je 0x100d4aa
push 0x2a
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx + 0x10], 0x340
mov edi, edx
jmp 0x100d4ac
xor edi, edi
test edi, edi
je 0x100d52a
push 0
push ebx
push dword [0x1016634]
mov ecx, edi
push dword [0x1016630]
push esi
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call fcn.0100cb90
test eax, eax
mov dword [ebp - 0x58], eax
jl 0x100d4e4
mov ecx, dword [ebx + 0xc]
push edi
push dword [ecx + 8]
call fcn.0100a9a5
test eax, eax
jne 0x100d513
push 1
mov ecx, edi
call fcn.0100a286
jmp 0x100d566
push 1
push ebx
push dword [0x1016634]
mov ecx, eax
push dword [0x1016630]
push esi
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call fcn.0100cb90
test eax, eax
mov dword [ebp - 0x58], eax
jl 0x100d566
mov esi, dword [esi]
add dword [ebp - 0x48], esi
xor edi, edi
cmp esi, edi
jne 0x100d3d7
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + 8]
jmp 0x100d563
mov dword [ebp - 0x58], 0x8007000e
jmp 0x100d566
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 4]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx]
cmp eax, dword [0x1016630]
jne 0x100d551
mov eax, dword [ecx + 4]
cmp eax, dword [0x1016634]
je 0x100d563
push 1
call fcn.0100a286
mov ecx, dword [ebx + 0xc]
push 1
push esi
call fcn.0100a9d5
dec esi
jns 0x100d533
add ebx, 0xc
push ebx
call fcn.0100ac67
add dword [0x1016630], 1
mov eax, dword [ebp - 0x58]
adc dword [0x1016634], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01011fd4
leave
ret