Function at 0x402510
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4190d3
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x71], cl
mov dword [ebp - 4], 0
mov eax, dword fs:[0x2c]
mov edx, dword [eax]
mov eax, dword [0x4239c0]
cmp eax, dword [edx + 4]
jle 0x4025be
push 0x4239c0
call fcn.0040d222
add esp, 4
cmp dword [0x4239c0], 0xffffffff
jne 0x4025be
mov dword [0x4239d4], 0
mov dword [0x4239d0], 0
mov dword [0x4239cc], 0
mov dword [0x4239c4], 0
mov byte [ebp - 4], 2
call fcn.00404710
push 0x4194a0
call fcn.0040d053
push 0x4239c0
mov byte [ebp - 4], 0
call fcn.0040d1d1
add esp, 8
mov ecx, 0x4239c4
call fcn.00404d70
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 0x14
movups xmmword [ecx], xmm0
push str.Installing_Eraser...
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00403250
mov ecx, 0x4239c4
call fcn.00404e50
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
lea eax, [ebp - 0xa0]
push eax
movups xmmword [ebp - 0xa0], xmm0
movups xmmword [ebp - 0x90], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 2
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
push 0x41fecc
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 0
movups xmmword [ebp - 0x70], xmm0
call fcn.00403250
cmp dword [ebp + 0x1c], 7
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
lea edi, [ebp - 0x70]
cmova ecx, dword [ebp + 8]
cmp dword [ebp - 0x5c], 7
mov edx, dword [ebp - 0x70]
cmova edi, edx
movzx ecx, word [ecx + eax*2 - 2]
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x402681
mov esi, edi
nop dword [eax]
cmp word [esi], cx
je 0x40272b
add esi, 2
sub eax, 1
jne 0x402670
or esi, 0xffffffff
mov eax, dword [ebp - 0x5c]
cmp eax, 7
jbe 0x4026bb
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4026b1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402993
push ecx
push edx
call fcn.0040d068
add esp, 8
cmp esi, 0xffffffff
jne 0x4026cd
push 0x41fc4c
lea ecx, [ebp + 8]
call fcn.00402af0
cmp word [ebp - 0xa0], 9
mov ecx, str.Eraser__x86_.msi
mov eax, str.Eraser__x64_.msi
cmovne eax, ecx
lea ecx, [ebp + 8]
push eax
call fcn.00402af0
push 0xf
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push str.msiexec.exe__i
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.00403250
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x78], 0x22
cmp ecx, 0x7ffffffe
je 0x40298e
jmp 0x40273c
test esi, esi
je 0x402681
sub esi, edi
sar esi, 1
jmp 0x402684
cmp dword [ebp + 0x1c], 7
lea eax, [ebp + 8]
push ecx
cmova eax, dword [ebp + 8]
push eax
push 1
lea eax, [ebp - 0x78]
push eax
push ecx
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x58]
call fcn.00402fd0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
cmp ecx, edx
jae 0x402782
lea eax, [ecx + 1]
cmp edx, 7
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x58]
cmova eax, dword [ebp - 0x58]
mov dword [eax + ecx*2], 0x22
jmp 0x402794
push 0x22
mov byte [ebp - 0x78], 0
push dword [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x58]
call fcn.004030d0
movups xmm1, xmmword [ebp - 0x58]
xor eax, eax
movq xmm0, qword [ebp - 0x48]
movups xmmword [ebp - 0x40], xmm1
mov dword [ebp - 0x48], 0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 7
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
movd edi, xmm1
mov dword [ebp - 0x78], esi
cmova ecx, edi
sub eax, esi
mov dword [ebp - 0x7c], ecx
cmp edx, eax
ja 0x402816
cmp dword [ebp - 0x14], 7
lea eax, [edx + esi]
mov dword [ebp - 0x18], eax
lea esi, [ebp - 0x28]
cmova esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x78]
lea ecx, [esi + eax*2]
lea eax, [edx + edx]
push eax
push dword [ebp - 0x7c]
push ecx
call fcn.0040e1d0
mov eax, dword [ebp - 0x30]
add esp, 0xc
add eax, dword [ebp - 0x78]
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x40282b
push edx
push ecx
mov byte [ebp - 0x7c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x7c]
push edx
call fcn.00402c40
mov edi, dword [ebp - 0x40]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c]
cmp eax, 7
jbe 0x402866
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x40285c
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402993
push ecx
push edi
call fcn.0040d068
add esp, 8
cmp byte [ebp - 0x71], 0
mov byte [ebp - 4], 3
je 0x40287d
push str.__quiet__norestart
lea ecx, [ebp - 0x28]
call fcn.00402af0
push 6
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push str.Eraser
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
call fcn.00403250
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.00402280
mov ecx, dword [ebp - 0x2c]
test eax, eax
sete byte [ebp - 0x71]
cmp ecx, 7
jbe 0x4028f0
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4028e6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402993
push ecx
push edx
call fcn.0040d068
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x402926
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40291c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402993
push ecx
push edx
call fcn.0040d068
add esp, 8
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 7
jbe 0x402970
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402966
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402993
push ecx
push edx
call fcn.0040d068
add esp, 8
mov al, byte [ebp - 0x71]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040cdb6
mov esp, ebp
pop ebp
ret
call fcn.004010a0
call fcn.0041012f
int3