Function at 0x498140
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xa18
mov eax, dword [0x51c080]
xor eax, esp
mov dword [esp + 0xa14], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebp
push edi
xor ebp, ebp
push str.IPInterface::RetrieveAdapterInformation_____n
mov edi, ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
call ebx
push str.Iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebp
mov dword [esp + 0x18], eax
jne 0x49818f
push str.LoadLibrary_Iphlpapi.dll__failed____n
call ebx
jmp 0x498457
push esi
push str.GetAdaptersAddresses
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebp
jne 0x4981ac
push str.Unable_to_locate_GetAdaptersAddresses____n
jmp 0x498438
lea eax, [esp + 0x14]
push eax
push ebp
push ebp
push 0x10
push 0x17
call esi
cmp eax, 0x6f
je 0x4981c8
push str.no_enough_buffer_1__n
jmp 0x498438
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004aab2c
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x18], ebp
jne 0x4981e9
push str.no_enough_buffer_2__n
jmp 0x498438
lea edx, [esp + 0x14]
push edx
push ebp
push 0
push 0x10
push 0x17
call esi
test eax, eax
je 0x498216
push eax
lea eax, [esp + 0x428]
push str.GetAdaptersAddresses___failed__d__n
push eax
call fcn.004aa842
add esp, 0xc
jmp 0x49843a
mov dword [esp + 0x10], ebp
jmp 0x498224
mov ebp, dword [esp + 0x10]
mov edx, dword [ebp + 0x28]
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x498230
push 0
push 0
push 0x200
sub eax, esi
lea ecx, [esp + 0x830]
push ecx
sar eax, 1
push eax
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x49842c
lea edx, [esp + 0x824]
push edx
mov byte [esp + eax + 0x828], 0
lea eax, [esp + 0x428]
push str.Adapter_Name_:__s_n
push eax
call fcn.004aa842
add esp, 0xc
lea ecx, [esp + 0x424]
push ecx
call ebx
cmp dword [ebp + 0x44], 1
je 0x4982a5
push str.status:_not_up_n
call ebx
jmp 0x49841b
mov ebp, dword [ebp + 0x10]
test ebp, ebp
je 0x498417
cmp dword [edi + 0x1ab0], 0x32
jge 0x498417
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push 2
push 0
push 0
push 0x401
lea edx, [esp + 0x30]
push edx
push eax
push ecx
call fcn.0048efe0
test eax, eax
jne 0x498433
mov edx, dword [ebp + 0xc]
cmp word [edx], 0x17
jne 0x49840c
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x428]
push str.Unicast_Address:__s_n
push ecx
call fcn.004aa842
add esp, 0xc
lea edx, [esp + 0x20]
push edx
call ebx
push 5
lea eax, [esp + 0x24]
push str.fe80:
push eax
call fcn.004c2119
add esp, 0xc
test eax, eax
jne 0x49840c
push 0xb
lea ecx, [esp + 0x24]
push str.fe80::5efe:
push ecx
call fcn.004c2119
add esp, 0xc
test eax, eax
jne 0x498350
push str.ISATAP_Address:_Skip_
call ebx
jmp 0x49840c
lea edx, [esp + 0x20]
push 0x25
push edx
call fcn.004aae90
add esp, 8
test eax, eax
je 0x49840c
lea ecx, [esp + 0x20]
mov byte [eax], 0
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x498371
sub ecx, esi
cmp ecx, 0x80
jae 0x49840c
mov ecx, dword [edi + 0x1ab0]
imul ecx, ecx, 0x84
lea edx, [esp + 0x20]
lea esi, [ecx + edi + 0xe8]
nop
mov cl, byte [edx]
mov byte [esi], cl
add edx, 1
add esi, 1
test cl, cl
jne 0x4983a0
add eax, 1
push eax
call fcn.004ab876
mov edx, dword [edi + 0x1ab0]
imul edx, edx, 0x84
mov dword [edx + edi + 0x168], eax
mov eax, dword [edi + 0x1ab0]
imul eax, eax, 0x84
mov ecx, dword [eax + edi + 0x168]
add eax, edi
push ecx
add eax, 0xe8
push eax
lea edx, [esp + 0x430]
push str.Storing___s___scope_id__d__n
push edx
call fcn.004aa842
add esp, 0x14
lea eax, [esp + 0x424]
push eax
call ebx
add dword [edi + 0x1ab0], 1
mov ebp, dword [ebp + 8]
test ebp, ebp
jne 0x4982b0
mov ebp, dword [esp + 0x10]
mov ebp, dword [ebp + 8]
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x498220
jmp 0x49843a
push str.cannot_convert_adapter_name_n
jmp 0x498438
push str.cant_convert_network_format_to_presentation_format
call ebx
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
test eax, eax
pop esi
je 0x498457
push eax
call fcn.004aa8d9
add esp, 4
push str.___IPInterface::RetrieveAdapterInformation___n
call ebx
mov ecx, dword [esp + 0xa20]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a998e
add esp, 0xa18
ret