Function at 0x49d170
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1f25
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebp - 0x3c]
mov esi, str.ldpins.exe
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x3c]
cmp ax, 9
je 0x49d1b9
cmp ax, 6
jne 0x49d1be
mov esi, str.ldpins64.exe
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x49d3ea
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0
test edx, edx
je 0x49d212
test edx, 0xffff0000
jne 0x49d1fc
movzx eax, dx
lea ecx, [ebp - 0x10]
push eax
call fcn.00429d30
jmp 0x49d21e
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49d201
sub ecx, edi
sar ecx, 1
jmp 0x49d214
xor ecx, ecx
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.0042a000
mov edx, dword [ebp - 0x10]
mov ecx, 1
mov dword [ebp - 4], 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x49d24c
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00429e50
mov edx, dword [ebp - 0x10]
cmp dword [edx - 8], 0x104
jl 0x49d3e0
mov dword [edx - 0xc], 0x104
xor ecx, ecx
mov eax, dword [ebp - 0x10]
push edx
mov word [eax + 0x208], cx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x49d27e
xor ecx, ecx
jmp 0x49d297
push dword [eax - 8]
push eax
call fcn.00566c13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x49d3e0
mov eax, dword [ebp - 0x10]
cmp ecx, dword [eax - 8]
jg 0x49d3e0
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
push esi
push str.office6ldp_s
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x10]
push eax
call fcn.00489520
add esp, 0xc
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x49d3f4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, 0x5c02e8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
test eax, 0xffff0000
jne 0x49d2f6
movzx eax, ax
push eax
call fcn.00429d30
jmp 0x49d302
push 2
push 0x5c02e8
call fcn.0042a000
mov byte [ebp - 4], 3
call fcn.004861e0
or esi, 0xffffffff
test eax, eax
jne 0x49d382
push 0x5bb5a8
lea eax, [ebx + 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004297b0
push str.wps.exe
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 4
push eax
call fcn.004297b0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.0047f840
mov edx, dword [ebp + 8]
add esp, 0x24
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49d366
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49d39a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x49d39a
push 0
push 1
push 0
push 1
push 0xffffffffffffffff
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0047f450
add esp, 0x1c
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49d3b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x49d3cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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
push 0x80070057
call fcn.00429b00
push 0x80004005
call fcn.00429b00
push 0x80004005
call fcn.00429b00
int3