Function at 0x4027c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x419060]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov eax, esi
mov dword [ebp - 0x28], edi
call fcn.00402500
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x40], eax
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
add eax, eax
call fcn.00412a00
xor eax, eax
mov ebx, esp
mov dword [ebp - 0x1c], ebx
mov dword [ebx], edi
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
call fcn.00402350
test eax, eax
jle 0x4028d4
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp - 0x10]
mov eax, dword [edi]
mov ecx, dword [edi + 8]
cpuid
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
xor edi, edi
lea esi, [ebp - 0xb8]
push edi
call fcn.004023e0
add esp, 4
test eax, eax
je 0x4028a7
inc edi
add esi, 0x10
cmp edi, 1
jl 0x402891
lea edx, [ebp - 0xb8]
push edx
lea ecx, [ebp - 0xa8]
call fcn.00402480
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x8c]
mov ebx, dword [ebp - 0x1c]
add esp, 4
mov dword [ecx + 0xac], eax
mov esi, ecx
xor edi, edi
jmp 0x4028ec
cmp dword [esi + 0x50], 2
jne 0x4028e2
cmp dword [esi + 0xac], edi
jne 0x4028ec
mov dword [esi + 0xac], 1
mov eax, dword [esi + 0xa8]
cdq
idiv dword [esi + 0xac]
mov dword [esi + 0xb0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov dword [ebp - 0x38], edi
mov edi, 1
lea eax, [ebx + 2]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x3c], eax
cmp edi, dword [ebp - 0x20]
ja 0x402a79
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x40]
jge 0x402a79
mov eax, dword [ebp - 0x34]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
test eax, eax
je 0x402a53
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp - 0x10]
mov eax, dword [edi]
mov ecx, dword [edi + 8]
cpuid
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov ebx, dword [ebp - 0x7c]
movzx edx, byte [esi + 0xb0]
shr ebx, 0x18
xor edi, edi
mov byte [ebp - 0x24], bl
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, 0
dec eax
bsr ecx, eax
je 0x4029a4
inc ecx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
movzx eax, byte [esi + 0xac]
mov ecx, dword [ebp - 0x24]
push eax
mov al, byte [esi + 0xb0]
push ecx
call fcn.00402620
mov edx, dword [esi + 0xa8]
add esp, 8
mov byte [ebp - 0x41], al
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, 0
dec eax
bsr ecx, eax
je 0x4029e2
inc ecx
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
mov eax, dword [ebp - 0x48]
push eax
mov eax, esi
mov dword [ebp - 0x18], edi
call fcn.00402730
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, 0
dec eax
bsr ecx, eax
je 0x402a0b
inc ecx
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x3c]
or dl, 0xff
shl dl, cl
mov cl, byte [ebp - 0x41]
mov byte [eax - 1], cl
mov ecx, dword [ebp - 0x30]
not dl
and dl, bl
mov byte [eax - 2], dl
or dl, 0xff
shl dl, cl
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x12], edi
mov edi, dword [ebp - 0x14]
and dl, bl
mov byte [eax], dl
or dl, 0xff
shl dl, cl
and dl, bl
mov ebx, dword [ebp - 0x1c]
or ecx, 0xffffffff
mov byte [eax + 1], dl
mov dword [eax + 6], ecx
mov dword [eax + 2], ecx
jmp 0x402a5d
mov dword [esi + 0x94], 0
add dword [ebp - 0x3c], 0x18
mov eax, 1
add dword [ebp - 0x28], eax
add dword [ebp - 0x38], eax
add edi, edi
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x402928
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 0x28]
add edi, edi
add edi, edi
mov eax, edi
call fcn.00412a00
mov eax, esp
push edi
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x30], eax
call fcn.00410d00
add esp, 0xc
mov eax, edi
call fcn.00412a00
mov eax, esp
push edi
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x24], eax
call fcn.00410d00
add esp, 0xc
mov eax, edi
call fcn.00412a00
mov eax, esp
push edi
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x34], eax
call fcn.00410d00
add esp, 0xc
mov eax, edi
call fcn.00412a00
mov eax, esp
push edi
push 0
push eax
mov dword [ebp - 0x40], eax
call fcn.00410d00
add esp, 0xc
mov eax, edi
call fcn.00412a00
mov eax, esp
push edi
push 0
push eax
mov dword [ebp - 0x18], eax
call fcn.00410d00
add esp, 0xc
mov eax, edi
call fcn.00412a00
mov eax, esp
push edi
push 0
push eax
mov dword [ebp - 0x3c], eax
call fcn.00410d00
movzx eax, byte [ebx + 2]
mov edi, dword [ebp - 0x30]
mov ecx, 1
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
add esp, 0xc
cmp dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], ecx
mov edx, ecx
mov dword [ebx + 8], 0
mov dword [eax], ecx
mov dword [ebp - 0x4c], ecx
jle 0x402bc2
lea eax, [ebx + 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x1c], eax
lea ebx, [ebx]
add edx, edx
xor eax, eax
mov dword [ebp - 0x14], edx
test ecx, ecx
jle 0x402b92
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx - 6]
cmp edx, dword [edi + eax*4]
je 0x402b81
inc eax
cmp eax, ecx
jl 0x402b72
mov edx, dword [ebp - 0x14]
jmp 0x402b92
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
or dword [edi + eax*4], edx
mov edi, dword [ebp - 0xc]
mov dword [edi], eax
mov edi, dword [ebp - 0x30]
cmp eax, ecx
jne 0x402bb5
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx - 6]
mov dword [edi + eax*4], edx
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
mov dword [edx], eax
mov edx, dword [ebp - 0x14]
or dword [edi + eax*4], edx
or dword [ebp - 0x4c], edx
mov edi, dword [ebp - 0x30]
inc ecx
add dword [ebp - 0xc], 0x18
sub dword [ebp - 0x1c], 1
jne 0x402b60
mov dword [ebp - 0x1c], ecx
movzx edi, byte [ebx + 2]
mov edx, 1
lea eax, [ebx + 0x14]
mov dword [ebp - 0x84], eax
mov dword [eax], edx
movzx eax, byte [ebx + 1]
or eax, edi
mov edi, dword [ebp - 0x24]
mov dword [edi], eax
mov eax, dword [ebp - 0x3c]
mov dword [eax], edx
mov eax, dword [ebp - 0x28]
cmp eax, edx
mov dword [ebp - 0xc], edx
mov dword [ebx + 4], 0
mov dword [ebp - 0x38], edx
jle 0x402c6e
dec eax
lea ecx, [ebx + 0x19]
mov dword [ebp - 0x10], eax
add edx, edx
xor eax, eax
cmp dword [ebp - 0xc], eax
mov dword [ebp - 0x14], edx
jle 0x402c35
movzx edx, byte [ecx + 1]
movzx edi, byte [ecx]
or edx, edi
mov edi, dword [ebp - 0x24]
cmp edx, dword [edi + eax*4]
je 0x402c29
inc eax
cmp eax, dword [ebp - 0xc]
jl 0x402c16
mov edx, dword [ebp - 0x14]
jmp 0x402c35
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x3c]
or dword [edi + eax*4], edx
mov dword [ecx + 3], eax
cmp eax, dword [ebp - 0xc]
jne 0x402c62
movzx edi, byte [ecx]
movzx edx, byte [ecx + 1]
or edx, edi
mov edi, dword [ebp - 0x24]
mov dword [edi + eax*4], edx
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x3c]
or dword [ebp - 0x38], edx
or dword [edi + eax*4], edx
inc dword [ebp - 0xc]
mov dword [ecx + 3], eax
mov dword [ecx + 0x13], 1
add ecx, 0x18
sub dword [ebp - 0x10], 1
jne 0x402c01
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x34]
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
movzx eax, byte [ebx + 3]
mov dword [edx], eax
mov eax, dword [ebp - 0x40]
inc dword [eax]
mov eax, dword [ebp - 0x28]
mov edi, 1
cmp eax, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], edi
jle 0x402d01
dec eax
lea ecx, [ebx + 0x24]
mov dword [ebp - 0x10], eax
lea ecx, [ecx]
shl dword [ebp - 0x14], 1
xor eax, eax
test edi, edi
jle 0x402cce
movzx ebx, byte [ecx - 9]
lea ecx, [ecx]
cmp ebx, dword [edx + eax*4]
je 0x402cbc
inc eax
cmp eax, edi
jl 0x402cb0
jmp 0x402cce
mov edx, dword [ebp - 0x40]
mov ebx, dword [edx + eax*4]
mov dword [ecx + 4], ebx
inc ebx
mov dword [edx + eax*4], ebx
mov edx, dword [ebp - 0x34]
mov dword [ecx], eax
cmp eax, edi
jne 0x402cf2
movzx ebx, byte [ecx - 9]
mov dword [edx + eax*4], ebx
mov ebx, dword [ebp - 0x40]
mov edx, dword [ebx + eax*4]
mov dword [ecx + 4], edx
inc edx
mov dword [ebx + eax*4], edx
mov edx, dword [ebp - 0x14]
inc edi
or dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x34]
mov dword [ecx], eax
add ecx, 0x18
sub dword [ebp - 0x10], 1
jne 0x402ca0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
mov edx, dword [esi + 0xac]
imul edx, ecx
mov dword [esi + 0xa0], edx
mov edx, dword [ebp - 0xc]
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa4], edx
cdq
idiv dword [ebp - 0xc]
mov edx, dword [ebp - 0x4c]
mov dword [esi + 0xb8], edx
not edx
mov ebx, edx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x20]
and ebx, edx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xdc], edi
mov dword [esi + 0x98], ecx
mov dword [esi + 0xb4], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0xc0], eax
not eax
mov dword [ebp - 0x14], eax
and eax, edx
mov edx, dword [ebp - 0x48]
mov dword [esi + 0xc4], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0xc8], eax
xor eax, eax
cmp dword [ebp - 0x28], ecx
mov dword [esi + 0xd8], edx
setg al
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, eax
mov dword [ebp - 0x34], edi
cmp dword [esi + 0xd4], ebx
je 0x402ef8
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
xor ecx, ecx
sub edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x40], edx
jmp 0x402db6
mov edx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x34]
cmp ebx, dword [esi + 0xcc]
jge 0x402ef8
cmp ebx, dword [esi + 0x98]
jge 0x402ef8
mov edi, dword [ebp - 0x18]
mov edx, dword [edx + edi]
mov eax, dword [esi + 0xd4]
mov dword [ecx + eax + 0xc], edx
mov eax, edi
mov eax, dword [eax]
mov edi, dword [esi + 0xd4]
mov edx, eax
and edx, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], 0
mov dword [ecx + edi], edx
mov edx, dword [ebp - 0xc]
and edx, eax
cmp dword [ebp - 0x28], 0
mov eax, dword [esi + 0xd4]
mov dword [ecx + eax + 4], edx
jle 0x402edb
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x84]
xor edx, edx
mov dword [ebp - 0x48], eax
mov edi, edi
cmp dword [edi - 0xc], ebx
jne 0x402ece
cmp dword [edi], 1
jne 0x402ece
mov eax, dword [esi + 0xd4]
mov eax, dword [ecx + eax + 8]
test eax, eax
je 0x402eb7
mov ebx, dword [ebp - 0x1c]
cmp ebx, dword [esi + 0xd0]
jge 0x402eb7
movzx ebx, byte [edi - 0x13]
mov dword [eax + edx + 8], ebx
mov ebx, dword [esi + 0xd4]
mov ebx, dword [ecx + ebx + 8]
movzx eax, byte [edi - 0x11]
mov dword [ebx + edx + 0xc], eax
mov eax, dword [esi + 0xd4]
mov eax, dword [ecx + eax + 8]
mov ebx, dword [edi - 8]
mov dword [eax + edx + 0x10], ebx
mov eax, dword [esi + 0xd4]
mov eax, dword [ecx + eax + 8]
mov ebx, dword [edi - 4]
mov dword [eax + edx + 0x14], ebx
mov ebx, dword [ebp - 0x3c]
mov eax, dword [edi - 0x10]
mov eax, dword [ebx + eax*4]
mov ebx, dword [esi + 0xd4]
mov ebx, dword [ecx + ebx + 8]
mov dword [ebp - 0x24], eax
and eax, dword [ebp - 0x38]
mov dword [edx + ebx], eax
mov eax, dword [ebp - 0x14]
mov ebx, dword [esi + 0xd4]
and eax, dword [ebp - 0x24]
mov ebx, dword [ecx + ebx + 8]
mov dword [ebx + edx + 4], eax
mov eax, dword [esi + 0xd4]
inc dword [ecx + eax + 0x10]
inc dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x10]
lea eax, [ecx + eax + 0x10]
add edx, 0x18
add edi, 0x18
sub dword [ebp - 0x48], 1
jne 0x402e20
add dword [ebp - 0x18], 4
inc ebx
add ecx, 0x14
cmp dword [esi + 0xd4], 0
mov dword [ebp - 0x10], ebx
jne 0x402db0
mov eax, dword [ebp - 0x34]
jmp 0x402efa
mov eax, edi
lea esp, [ebp - 0xc4]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040b281
mov esp, ebp
pop ebp
ret