Function at 0x43e8a0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa8
push ebx
push ebp
push esi
push edi
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x43ec06
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push esi
call ebx
test eax, eax
mov dword [esp + 0x20], eax
je 0x43ec06
push str.GetModuleFileNameExA
push esi
call ebx
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x43ec06
mov edx, dword [esp + 0xc4]
mov edi, str.System
or ecx, 0xffffffff
xor eax, eax
mov byte [edx], 0
mov dword [esp + 0x24], 0x94
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x34], 2
jne 0x43e9d5
cmp dword [esp + 0x28], 5
jne 0x43e9d5
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x43e9d5
mov edx, dword [esp + 0xbc]
push edx
call fcn.0043ec20
mov ecx, dword [esp + 0xc4]
add esp, 4
test eax, eax
mov dword [ecx], eax
je 0x43ec06
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x43ec06
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push 4
push eax
push esi
mov dword [esp + 0x24], 0x400
call dword [esp + 0x30]
test eax, eax
je 0x43e9be
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xa8
ret
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
xor edi, edi
cmp ebp, edi
je 0x43ec06
push str.AllocateAndGetTcpExTableFromStack
push ebp
mov dword [esp + 0x18], edi
call ebx
mov esi, eax
cmp esi, edi
jne 0x43ea12
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa8
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 2
push edi
call ebx
push eax
lea ecx, [esp + 0x1c]
push 1
push ecx
call esi
mov eax, dword [esp + 0x10]
xor esi, esi
cmp dword [eax], edi
jbe 0x43ea5d
mov dx, word [edi + eax + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0xbc]
and eax, 0xffff
cmp eax, ecx
je 0x43eafd
mov eax, dword [esp + 0x10]
inc esi
add edi, 0x18
cmp esi, dword [eax]
jb 0x43ea31
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebp
call edi
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x43ec06
push str.AllocateAndGetUdpExTableFromStack
push ebp
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x43ec03
push 2
push 0
call ebx
push eax
lea eax, [esp + 0x1c]
push 1
push eax
call esi
mov eax, dword [esp + 0x10]
xor esi, esi
cmp dword [eax], 0
jbe 0x43ebf7
xor edi, edi
mov cx, word [edi + eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0xbc]
and eax, 0xffff
cmp eax, ecx
je 0x43eb6a
mov eax, dword [esp + 0x10]
inc esi
add edi, 0xc
cmp esi, dword [eax]
jb 0x43eac6
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x43ebf7
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc0]
lea eax, [esi + esi*2 + 3]
mov eax, dword [ecx + eax*8]
push eax
push 0
push 0x410
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x43eb63
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push 4
push ecx
push esi
mov dword [esp + 0x28], 0x400
call dword [esp + 0x30]
test eax, eax
je 0x43eb5c
mov edx, dword [esp + 0xc8]
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
push esi
call dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
push edx
jmp 0x43ebd5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc0]
lea edx, [esi + esi*2 + 3]
mov eax, dword [eax + edx*4]
push eax
push 0
push 0x410
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x43ebd0
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push 4
push eax
push esi
mov dword [esp + 0x2c], 0x400
call dword [esp + 0x30]
test eax, eax
je 0x43ebc9
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
push esi
call dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
push ecx
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xa8
ret
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa8
ret