Function at 0x403650
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 [0x40b690], 1
mov esi, dword [sym.imp.MSVCRT.dll_printf]
jne 0x4036b2
push str.Searching_for_devices...__n
call esi
pop ecx
lea eax, [ebp - 0x5c4]
push eax
call fcn.0040444a
test eax, eax
pop ecx
je 0x4036db
cmp dword [0x40b690], 1
jne 0x4036d4
push str.Failed_to_open_NetworkCards__n
call esi
pop ecx
or eax, 0xffffffff
pop edi
pop esi
leave
ret
cmp dword [0x40b690], 1
jne 0x403703
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 0x403753
mov al, byte [ebp + edi - 0x224]
cmp al, 0x7b
jne 0x403795
lea eax, [ebp - 0x3bc]
push eax
call fcn.0040445f
test eax, eax
pop ecx
je 0x4037be
cmp dword [0x40b690], 1
jne 0x4039a2
lea eax, [ebp - 0x3bc]
push eax
push str._______NetworkCard:__s_is_not_physical_n
call esi
pop ecx
pop ecx
jmp 0x4039a2
cmp al, 0x7b
je 0x403799
mov al, byte [ebp + edi - 0x223]
inc edi
mov dword [ebp - 0x18], edi
test al, al
jne 0x403786
cmp byte [ebp + edi - 0x224], 0
jne 0x403753
cmp dword [0x40b690], 1
jne 0x4039a2
lea eax, [ebp - 0x224]
push eax
push str.Unrecognized_device_name:__s_n
jmp 0x40377d
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 0x403981
lea ecx, [ebp - 8]
push ecx
push 1
push eax
call fcn.00403235
add esp, 0xc
test al, al
je 0x403967
cmp dword [0x40b690], 2
jne 0x403847
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 [0x40b690], 1
jne 0x4038ca
lea eax, [ebp - 0x224]
push eax
push str.________s_n
call esi
movzx eax, byte [0x40b478]
mov edi, str.HW_MAC:__X_n
push eax
push edi
call esi
movzx eax, byte [0x40b479]
push eax
push edi
call esi
movzx eax, byte [0x40b47a]
push eax
push edi
call esi
movzx eax, byte [0x40b47b]
push eax
push edi
call esi
movzx eax, byte [0x40b47c]
push eax
push edi
call esi
movzx eax, byte [0x40b47d]
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 0x403915
cmp dword [0x40b690], 1
jne 0x403967
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 0x403967
inc dword [ebp - 4]
xor ecx, ecx
cmp dword [0x40b690], ecx
jne 0x40392b
cmp dword [ebp + 8], ecx
je 0x4039cf
cmp dword [ebp - 0xc], 0xffffffff
je 0x403942
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x1c]
jg 0x403942
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403967
cmp dword [ebp + 0xc], ecx
je 0x40395b
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.0040442f
mov edi, dword [ebp - 0x18]
jmp 0x4039ae
cmp dword [0x40b690], 1
jne 0x4039a2
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.0040442f
test eax, eax
pop ecx
je 0x4036db
mov eax, dword [ebp + 8]
test eax, eax
je 0x4036d4
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
jmp 0x4036d7
cmp dword [ebp + 0xc], ecx
je 0x4039e8
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 0x4036d7