Function at 0x10043a8c
Capabilities:
Check os version

Disassembly:
push 0x350
mov eax, 0x1017d170
call fcn.10077149
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x118
mov dword [ebp - 0x338], eax
mov dword [ebp - 0x35c], eax
lea eax, [ebp - 0x330]
push ebx
mov dword [ebp - 0x354], ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x334], 0x11c
call fcn.10054b20
add esp, 0xc
lea eax, [ebp - 0x334]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
call fcn.1003d4cb
test al, al
je 0x10043b08
pop ecx
push eax
pop edi
pop eax
pop esi
push ecx
push esi
pop esi
pop edx
pop esp
push esp
pop ecx
pop ecx
push esp
pop ebx
push edx
push esp
pop esp
pop ebx
pop ecx
pop ecx
push edx
pop eax
push ebp
pop eax
pop ecx
pop eax
pop esi
xor ebx, ebx
mov ecx, dword [ebp - 0x338]
push 0x101d7658
call fcn.1001fed0
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x350], eax
movzx eax, byte [ebp - 0x21a]
mov dword [ebp - 0x358], eax
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x34c], eax
mov eax, dword [ebp - 0x32c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x354], 1
mov dword [ebp - 0x340], ebx
mov dword [ebp - 0x344], ebx
mov dword [ebp - 0x33c], ebx
mov dword [ebp - 0x348], eax
call fcn.1003db43
test al, al
je 0x10043b91
push eax
pop eax
push eax
push eax
push ebx
push ebx
push eax
pop esi
pop ecx
push ebp
pop esi
pop edi
pop esp
pop esi
push edi
pop ebx
push edi
push edi
pop eax
pop edx
push ecx
push ebx
pop ebp
pop eax
push ecx
pop esi
push ebx
push esi
pop ebp
pop edx
push ebx
pop edi
call fcn.1003d510
test al, al
je 0x10043bb1
push eax
pop esp
push edx
push eax
pop ecx
pop esp
pop eax
pop ebp
pop eax
pop eax
push ebp
pop ebx
pop eax
pop ebp
push ecx
push eax
pop ebx
pop ebp
pop ecx
push eax
push edi
push ebp
pop esi
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10043bfd
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10043bf6
lea ecx, [ebp - 0x33c]
push ecx
lea ecx, [ebp - 0x344]
push ecx
lea ecx, [ebp - 0x340]
push ecx
call eax
movzx eax, word [ebp - 0x33c]
mov dword [ebp - 0x33c], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.1003dab9
test al, al
je 0x10043c1a
pop ebp
push ebx
push ebx
pop ecx
pop edx
pop eax
push ecx
pop ebp
pop edx
pop ecx
push edx
pop edx
pop ebx
pop edi
push edi
pop ebp
pop ecx
pop eax
pop edx
push edi
call fcn.1003d84c
test al, al
je 0x10043c3a
push edi
push ebx
push ebx
push edi
push ebp
pop edi
pop edi
pop ebx
pop edi
push esi
push ebx
pop ecx
pop eax
pop esp
push ecx
push eax
push esi
pop eax
push eax
pop edx
pop esi
push edi
pop esp
mov eax, dword [ebp - 0x350]
cmp eax, 5
jne 0x10043c6c
mov eax, dword [ebp - 0x348]
test eax, eax
je 0x10043d16
cmp eax, 1
jne 0x10043c62
mov esi, str.WindowsXP
jmp 0x10043d02
mov esi, str.WindowsServer2003
jmp 0x10043d02
cmp eax, 6
jne 0x10043d16
mov eax, dword [ebp - 0x348]
sub eax, 0
je 0x10043cef
sub eax, 1
je 0x10043ce8
sub eax, 1
jne 0x10043d16
mov ecx, dword [ebp - 0x34c]
cmp ecx, 0x1ebb
jne 0x10043ca3
mov esi, str.Windows8
jmp 0x10043d02
lea eax, [ecx - 0x1ee6]
cmp eax, 0x25
jbe 0x10043c9c
cmp ecx, 0x1f13
je 0x10043c9c
cmp dword [ebp - 0x340], 0xa
jne 0x10043ccf
cmp dword [ebp - 0x344], 0
jne 0x10043d16
mov esi, str.Windows10
jmp 0x10043d02
cmp dword [ebp - 0x340], 6
jne 0x10043d16
cmp dword [ebp - 0x344], 3
jne 0x10043d16
mov esi, str.Windows8.1
jmp 0x10043d02
mov esi, str.Windows7
jmp 0x10043d02
cmp dword [ebp - 0x358], 1
mov esi, str.WindowsVista
je 0x10043d02
mov esi, str.WindowsServer2008
push esi
call fcn.10064038
pop ecx
mov ecx, dword [ebp - 0x338]
push eax
push esi
call fcn.10020030
call fcn.1003dab9
test al, al
je 0x10043d33
pop ebp
push ebx
push ebx
pop ecx
pop edx
pop eax
push ecx
pop ebp
pop edx
pop ecx
push edx
pop edx
pop ebx
pop edi
push edi
pop ebp
pop ecx
pop eax
pop edx
push edi
call fcn.1003d84c
test al, al
je 0x10043d53
push edi
push ebx
push ebx
push edi
push ebp
pop edi
pop edi
pop ebx
pop edi
push esi
push ebx
pop ecx
pop eax
pop esp
push ecx
push eax
push esi
pop eax
push eax
pop edx
pop esi
push edi
pop esp
mov ebx, dword [ebp - 0x338]
mov ecx, ebx
push 0x101d7658
call fcn.10044013
xor esi, esi
test eax, eax
jne 0x10043dcd
push 0x208
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.10054b20
push dword [ebp - 0x34c]
mov eax, dword [ebp - 0x350]
push dword [ebp - 0x348]
push eax
lea eax, [ebp - 0x218]
push str.Windows_d._d._d
push eax
call fcn.10023cc0
add esp, 0x20
cmp word [ebp - 0x218], si
jne 0x10043db1
mov eax, esi
jmp 0x10043dbe
lea eax, [ebp - 0x218]
push eax
call fcn.10064038
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.10020030
call fcn.1003d738
test al, al
je 0x10043de8
push esi
push edx
push ecx
pop edx
pop eax
push esi
push esi
pop ecx
push ecx
push esi
pop eax
pop ebp
pop edi
push edx
push ebx
push edi
push ebp
push esi
call fcn.1003d5df
test al, al
je 0x10043e07
push eax
pop edx
pop esp
push eax
push ebx
push eax
pop eax
pop ebp
pop ebp
push edi
pop edx
push esp
pop ebx
push edi
push esi
push ebx
mov ebx, dword [ebp - 0x338]
cmp dword [ebp + 0xc], 0
je 0x10043e35
cmp word [ebp - 0x320], 0
je 0x10043e26
lea eax, [ebp - 0x320]
push eax
call fcn.10064038
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x320]
mov ecx, ebx
push eax
call fcn.10021c90
mov eax, ebx
call fcn.10077104
ret