Function at 0x403a48
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c4
or dword [ebp - 0xc], 0xffffffff
push esi
push edi
xor eax, eax
push 0x200
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0x7c4]
xor edi, edi
push eax
mov dword [ebp - 0x18], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2b8]
mov dword [ebp - 0x2b8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [0x40ca60], 1
mov esi, dword [sym.imp.MSVCRT.dll_printf]
jne 0x403aaa
push str.Searching_for_devices...__n
call esi
pop ecx
lea eax, [ebp - 0x5c4]
push eax
call fcn.00404842
test eax, eax
pop ecx
je 0x403ad3
cmp dword [0x40ca60], 1
jne 0x403acc
push str.Failed_to_open_NetworkCards__n
call esi
pop ecx
or eax, 0xffffffff
pop edi
pop esi
leave
ret
cmp dword [0x40ca60], 1
jne 0x403afb
lea eax, [ebp - 0x4c0]
push eax
push str._n________s_n
call esi
lea eax, [ebp - 0x5c4]
push eax
push str.________s_n
call esi
add esp, 0x10
push 0x104
lea eax, [ebp - 0x224]
push 0
push eax
call sub.MSVCRT.dll_memset
push 0x104
lea eax, [ebp - 0x120]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x3bc]
push eax
lea eax, [ebp - 0x224]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x20
cmp dword [ebp - 0x2b4], 5
jb 0x403b4b
mov al, byte [ebp + edi - 0x224]
cmp al, 0x7b
jne 0x403b8d
lea eax, [ebp - 0x3bc]
push eax
call fcn.00404857
test eax, eax
pop ecx
je 0x403bb6
cmp dword [0x40ca60], 1
jne 0x403d9a
lea eax, [ebp - 0x3bc]
push eax
push str._______NetworkCard:__s_is_not_physical_n
call esi
pop ecx
pop ecx
jmp 0x403d9a
cmp al, 0x7b
je 0x403b91
mov al, byte [ebp + edi - 0x223]
inc edi
mov dword [ebp - 0x18], edi
test al, al
jne 0x403b7e
cmp byte [ebp + edi - 0x224], 0
jne 0x403b4b
cmp dword [0x40ca60], 1
jne 0x403d9a
lea eax, [ebp - 0x224]
push eax
push str.Unrecognized_device_name:__s_n
jmp 0x403b75
lea eax, [ebp - 0x224]
mov byte [ebp - 0x120], 0x5c
push eax
lea eax, [ebp - 0x120]
push eax
mov byte [ebp - 0x11f], 0x5c
mov byte [ebp - 0x11e], 0x2e
mov byte [ebp - 0x11d], 0x5c
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x120]
pop ecx
push 0xffffffffffffffff
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x403d79
lea ecx, [ebp - 8]
push ecx
push 1
push eax
call fcn.0040362d
add esp, 0xc
test al, al
je 0x403d5f
cmp dword [0x40ca60], 2
jne 0x403c3f
lea eax, [ebp - 0x224]
push eax
push str.________s__n
call esi
pop ecx
pop ecx
mov edi, 0x100
lea eax, [ebp - 0x120]
push edi
push eax
lea eax, [ebp - 0x7c4]
push eax
call dword [sym.imp.MSVCRT.dll_mbstowcs]
add esp, 0xc
cmp dword [0x40ca60], 1
jne 0x403cc2
lea eax, [ebp - 0x224]
push eax
push str.________s_n
call esi
movzx eax, byte [0x40c848]
mov edi, str.HW_MAC:__X_n
push eax
push edi
call esi
movzx eax, byte [0x40c849]
push eax
push edi
call esi
movzx eax, byte [0x40c84a]
push eax
push edi
call esi
movzx eax, byte [0x40c84b]
push eax
push edi
call esi
movzx eax, byte [0x40c84c]
push eax
push edi
call esi
movzx eax, byte [0x40c84d]
push eax
push edi
call esi
add esp, 0x38
mov edi, 0x100
push 0xffffffffffffffff
push 0
push 3
push 0
push 3
lea eax, [ebp - 0x7c4]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x403d0d
cmp dword [0x40ca60], 1
jne 0x403d5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x7c4]
push eax
push str.Error_last_CreateFile___s____d_n
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 0xc
jmp 0x403d5f
inc dword [ebp - 4]
xor ecx, ecx
cmp dword [0x40ca60], ecx
jne 0x403d23
cmp dword [ebp + 8], ecx
je 0x403dc7
cmp dword [ebp - 0xc], 0xffffffff
je 0x403d3a
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x1c]
jg 0x403d3a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403d5f
cmp dword [ebp + 0xc], ecx
je 0x403d53
lea eax, [ebp - 0x120]
push edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_mbstowcs]
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x5c4]
push eax
call fcn.00404827
mov edi, dword [ebp - 0x18]
jmp 0x403da6
cmp dword [0x40ca60], 1
jne 0x403d9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x224]
push eax
push str.Error_CreateFile___s____d_n
call esi
add esp, 0xc
lea eax, [ebp - 0x5c4]
push eax
call fcn.00404827
test eax, eax
pop ecx
je 0x403ad3
mov eax, dword [ebp + 8]
test eax, eax
je 0x403acc
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
jmp 0x403acf
cmp dword [ebp + 0xc], ecx
je 0x403de0
lea eax, [ebp - 0x120]
push edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_mbstowcs]
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
jmp 0x403acf