Function at 0x47e670
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ea08
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0xd]
push ecx
mov dword [ebp - 0x20], eax
mov esi, str.kvpins.exe
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x44]
cmp ax, 9
je 0x47e6bf
cmp ax, 6
jne 0x47e6c4
mov esi, str.Kvpins64.exe
mov edx, dword [0x5fcb00]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcb00
call eax
lea ecx, [eax + 0x10]
mov dword [ebp - 0x18], ecx
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
mov edi, 0x104
sub eax, edi
or eax, edx
mov dword [ebp - 4], 0
jge 0x47e703
push edi
lea ecx, [ebp - 0x18]
call fcn.00421da0
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 8], edi
jge 0x47e712
push 0x80070057
call fcn.00421960
mov dword [ecx - 0xc], edi
mov eax, dword [ebp - 0x18]
xor edx, edx
push ecx
lea ecx, [ebp - 0x20]
mov word [eax + 0x208], dx
call fcn.0047d0f0
test eax, eax
je 0x47ea9f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, edi
or eax, edx
jge 0x47e752
push edi
lea ecx, [ebp - 0x18]
call fcn.00421da0
mov ecx, dword [ebp - 0x18]
mov eax, ecx
cmp dword [ecx - 8], edi
jge 0x47e763
push 0x80070057
call fcn.00421960
mov dword [ecx - 0xc], edi
mov edx, dword [ebp - 0x18]
push esi
xor ecx, ecx
push eax
mov word [edx + 0x208], cx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00534a48
add esp, 8
test eax, eax
js 0x47e708
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx - 8]
jg 0x47e708
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 8]
test eax, eax
jne 0x47e7b6
mov eax, 0x591ff8
push eax
lea ecx, [ebp - 0x1c]
call fcn.00422540
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
mov esi, 0x200
sub eax, esi
or eax, edx
mov byte [ebp - 4], 1
jge 0x47e7e8
push esi
lea ecx, [ebp - 0x1c]
call fcn.00421da0
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
cmp dword [ecx - 8], esi
jge 0x47e7f9
push 0x80070057
call fcn.00421960
mov dword [ecx - 0xc], esi
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
push eax
mov word [edx + 0x400], cx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x47e82f
push esi
lea ecx, [ebp - 0x1c]
call fcn.00421da0
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
cmp dword [ecx - 8], esi
jge 0x47e840
push 0x80070057
call fcn.00421960
mov dword [ecx - 0xc], esi
mov edx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
xor ecx, ecx
push eax
mov word [edx + 0x400], cx
call esi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00534a48
add esp, 8
test eax, eax
js 0x47e708
mov ecx, dword [ebp - 0x1c]
cmp eax, dword [ecx - 8]
jg 0x47e708
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
push eax
call fcn.00421e00
lea ecx, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x14], ecx
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, edi
or eax, edx
mov byte [ebp - 4], 2
jge 0x47e8be
push edi
lea ecx, [ebp - 0x14]
call fcn.00421da0
mov ecx, dword [ebp - 0x14]
mov eax, ecx
cmp dword [ecx - 8], edi
jge 0x47e8cf
push 0x80070057
call fcn.00421960
mov dword [ecx - 0xc], edi
mov edx, dword [ebp - 0x14]
push str..inf
xor ecx, ecx
push eax
mov word [edx + 0x208], cx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00534a48
add esp, 8
test eax, eax
js 0x47e708
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x47e708
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, edi
or eax, edx
jge 0x47e93a
push edi
lea ecx, [ebp - 0x14]
call fcn.00421da0
mov ecx, dword [ebp - 0x14]
mov eax, ecx
cmp dword [ecx - 8], edi
jge 0x47e94b
push 0x80070057
call fcn.00421960
mov dword [ecx - 0xc], edi
mov edx, dword [ebp - 0x14]
xor ecx, ecx
push eax
mov word [edx + 0x208], cx
call esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00534a48
add esp, 8
test eax, eax
js 0x47e708
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x47e708
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x14]
xor ecx, ecx
push 0x5a14ec
mov word [edx + eax*2], cx
push ecx
lea ecx, [ebp - 0x14]
call fcn.00479b20
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
push str.__s__s
push ecx
call fcn.00479d90
add esp, 0xc
call fcn.0046b1d0
test eax, eax
jne 0x47ea3f
push str.office6_
add ebx, 0x10
lea edx, [ebp - 0x20]
push ebx
push edx
call fcn.004221d0
push str.wps.exe
push eax
lea eax, [ebp + 8]
mov bl, 3
push eax
mov byte [ebp - 4], bl
call fcn.004221d0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
push eax
mov byte [ebp - 4], 4
call fcn.00472f40
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 0x24
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47ea1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47ea59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x47ea59
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0
push 1
push 0
push 1
push 0xffffffffffffffff
push ecx
push edx
call fcn.00471f30
add esp, 0x1c
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47ea7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47ea9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47eac5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4