Function at 0x437518
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x43753c
xor eax, eax
jmp 0x4379f6
push str.EnumProcessModules
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x43755b
xor eax, eax
jmp 0x4379f6
push str.GetModuleFileNameExA
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
jne 0x437580
xor eax, eax
jmp 0x4379f6
mov edx, dword [ebp + 0x10]
mov byte [edx], 0
push 0x4a7eb8
mov eax, dword [ebp + 0x10]
push eax
call fcn.00465350
add esp, 8
mov dword [ebp - 0x9c], 0x94
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x8c], 2
jne 0x437679
cmp dword [ebp - 0x98], 5
jne 0x437679
cmp dword [ebp - 0x94], 0
jne 0x437679
mov edx, dword [ebp + 8]
push edx
call fcn.004379fa
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0x4375f5
xor eax, eax
jmp 0x4379f6
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
je 0x437672
mov dword [ebp - 0xac], 0x400
lea edx, [ebp - 0xac]
push edx
push 4
lea eax, [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
call dword [ebp - 4]
test eax, eax
je 0x43765b
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
mov edx, dword [ebp - 0xa4]
push edx
call dword [ebp - 0xa0]
mov eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x4379f6
xor eax, eax
jmp 0x4379f6
push 0x4a7ec0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
jne 0x43769a
xor eax, eax
jmp 0x4379f6
mov dword [ebp - 0xbc], 0
push str.AllocateAndGetTcpExTableFromStack
mov ecx, dword [ebp - 0xb4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
jne 0x4376d9
mov edx, dword [ebp - 0xb4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x4379f6
push 2
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 1
lea eax, [ebp - 0xbc]
push eax
call dword [ebp - 0xb0]
mov dword [ebp - 0xb8], 0
jmp 0x43770e
mov ecx, dword [ebp - 0xb8]
add ecx, 1
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0xbc]
mov eax, dword [ebp - 0xb8]
cmp eax, dword [edx]
jae 0x437815
mov ecx, dword [ebp - 0xb8]
imul ecx, ecx, 0x18
mov edx, dword [ebp - 0xbc]
mov ax, word [edx + ecx + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
and eax, 0xffff
cmp eax, dword [ebp + 8]
jne 0x437810
mov ecx, dword [ebp - 0xb8]
imul ecx, ecx, 0x18
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx + ecx + 0x18]
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc4]
mov dword [ecx], edx
mov eax, dword [ebp - 0xc4]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0
je 0x4377e3
mov dword [ebp - 0xcc], 0x400
lea ecx, [ebp - 0xcc]
push ecx
push 4
lea edx, [ebp - 0xc8]
push edx
mov eax, dword [ebp - 0xc0]
push eax
call dword [ebp - 4]
test eax, eax
je 0x4377d6
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0xc0]
push ecx
call dword [ebp - 0xa0]
mov edx, dword [ebp - 0xc0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xbc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xb4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x4379f6
jmp 0x4376ff
mov edx, dword [ebp - 0xbc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jne 0x437859
xor eax, eax
jmp 0x4379f6
mov dword [ebp - 0xd8], 0
push str.AllocateAndGetUdpExTableFromStack
mov ecx, dword [ebp - 0xdc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0
jne 0x437898
mov edx, dword [ebp - 0xdc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x4379f6
push 2
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 1
lea eax, [ebp - 0xd8]
push eax
call dword [ebp - 0xd0]
mov dword [ebp - 0xd4], 0
jmp 0x4378cd
mov ecx, dword [ebp - 0xd4]
add ecx, 1
mov dword [ebp - 0xd4], ecx
mov edx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xd4]
cmp eax, dword [edx]
jae 0x4379d1
mov ecx, dword [ebp - 0xd4]
imul ecx, ecx, 0xc
mov edx, dword [ebp - 0xd8]
mov ax, word [edx + ecx + 8]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
and eax, 0xffff
cmp eax, dword [ebp + 8]
jne 0x4379cc
mov ecx, dword [ebp - 0xd4]
imul ecx, ecx, 0xc
mov edx, dword [ebp - 0xd8]
mov eax, dword [edx + ecx + 0xc]
mov dword [ebp - 0xe4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xe4]
mov dword [ecx], edx
mov eax, dword [ebp - 0xe4]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xe0], 0
je 0x4379a2
mov dword [ebp - 0xec], 0x400
lea ecx, [ebp - 0xec]
push ecx
push 4
lea edx, [ebp - 0xe8]
push edx
mov eax, dword [ebp - 0xe0]
push eax
call dword [ebp - 4]
test eax, eax
je 0x437995
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xe8]
push eax
mov ecx, dword [ebp - 0xe0]
push ecx
call dword [ebp - 0xa0]
mov edx, dword [ebp - 0xe0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xd8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xdc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x4379f6
jmp 0x4378be
mov edx, dword [ebp - 0xd8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov esp, ebp
pop ebp
ret