Function at 0x43edd0
Capabilities:
Get local ipv4 addresses
Get mac address on windows
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x56d380]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
xor ebx, ebx
mov dword [ebp - 0x6c], eax
mov eax, 0xf
push 0x248
push 0x40
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x3c], bl
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
call esi
mov edi, eax
push 0x288
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x64], 0x248
call fcn.00500236
add esp, 4
lea ecx, [ebp - 0x64]
push ecx
push edi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x68], 0x288
call sub.IPHLPAPI.DLL_GetNetworkParams
cmp eax, 0x6f
jne 0x43ee5d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp - 0x64]
push edx
push 0x40
call esi
mov dword [ebp - 0x60], eax
mov edi, eax
mov esi, dword [ebp - 0x5c]
lea eax, [ebp - 0x68]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x43ee86
push esi
call fcn.004ff19b
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00500236
add esp, 8
mov dword [ebp - 0x5c], eax
mov esi, eax
lea edx, [ebp - 0x68]
push edx
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x43eeed
push str.GetAdaptersInfo_failed_:
call fcn.00503ee1
mov esi, 0x10
add esp, 4
cmp dword [ebp - 0xc], esi
jb 0x43eeb7
mov eax, dword [ebp - 0x20]
push eax
call fcn.004fe49e
add esp, 4
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
cmp dword [ebp - 0x28], esi
jb 0x43eed5
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.004fe49e
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500397
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x64]
push edx
push edi
call sub.IPHLPAPI.DLL_GetNetworkParams
test eax, eax
je 0x43ef28
push str.GetNetworkParams_failed_:
call fcn.00503ee1
add esp, 4
lea ecx, [ebp - 0x3c]
call fcn.00426020
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500397
mov esp, ebp
pop ebp
ret 4
push edi
push str._tHost_Name_._._._._._._._._._._._._:__s_n
call fcn.00503ee1
push str._tPrimary_DNS_Suffix._._._._._._._._:__n
call fcn.00503ee1
mov eax, dword [edi + 0x134]
dec eax
add esp, 0xc
cmp eax, 7
ja case.0x43ef4c.3
jmp dword [eax*4 + 0x43f2dc]
mov eax, str.Broadcast
jmp 0x43ef74
mov eax, str.Peer_To_Peer
jmp 0x43ef74
mov eax, str.Mixed
jmp 0x43ef74
mov eax, str.Hybrid
jmp 0x43ef74
mov eax, 0x53f690
push eax
push str._tNode_Type_._._._._._._._._._._._._:__s_n
call fcn.00503ee1
add esp, 8
cmp dword [edi + 0x23c], ebx
je 0x43ef91
push str._tIP_Routing_Enabled._._._._._._._._:_Yes_n
jmp 0x43ef96
push str._tIP_Routing_Enabled._._._._._._._._:_No_n
call fcn.00503ee1
mov eax, dword [ebp - 0x5c]
add esp, 4
cmp dword [eax + 0x224], ebx
je 0x43efb0
push str._tWINS_Proxy_enabled._._._._._._._._:_Yes_n
jmp 0x43efb5
push str._tWINS_Proxy_enabled._._._._._._._._:_No_n
call fcn.00503ee1
add esp, 4
lea eax, [edi + 0x84]
push eax
push str._tDNS_Suffix_Search_List._._._._._._:__s_n
call fcn.00503ee1
add esp, 8
mov eax, dword [esi + 0x1a0]
dec eax
cmp eax, 0x1b
ja case.0x43efe4.2
movzx ecx, byte [eax + 0x43f31c]
jmp dword [ecx*4 + 0x43f2fc]
mov eax, str.Other_Type_Of_Adapter
jmp 0x43f021
mov eax, str.Ethernet_Adapter
jmp 0x43f021
mov eax, str.Token_Ring_Adapter
jmp 0x43f021
mov eax, str.FDDI_Adapter
jmp 0x43f021
mov eax, str.PPP_Adapter
jmp 0x43f021
mov eax, str.Loopback_Adapter
jmp 0x43f021
mov eax, str.SLIP_Adapter
jmp 0x43f021
mov eax, 0x53f690
push eax
push str._n_s_......_:__n_n
call fcn.00503ee1
lea edi, [esi + 0x1b0]
add esp, 8
mov ecx, 0x53ff44
mov eax, edi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x43f060
cmp dl, bl
je 0x43f05c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x43f060
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x43f040
xor eax, eax
jmp 0x43f065
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x43f07b
push str._tMedia_State_._._._._._._._._._._._:_Media_disconnected_n
call fcn.00503ee1
add esp, 4
jmp 0x43f28e
mov eax, dword [ebp - 0x60]
add eax, 0x84
push eax
push str._tConnection_specific_DNS_Suffix._._:__s_n
call fcn.00503ee1
lea edx, [esi + 0x10c]
push edx
push str._tDescription_._._._._._._._._._._._:__s_n
call fcn.00503ee1
movzx eax, byte [esi + 0x199]
movzx ecx, byte [esi + 0x198]
movzx edx, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push ecx
movzx ecx, byte [esi + 0x195]
push edx
movzx edx, byte [esi + 0x194]
push eax
push ecx
push edx
push str._02x__02x__02x__02x__02x__02x
push 0x570358
call fcn.0043d360
push 0x570358
push str._tPhysical_Address._._._._._._._._._:__s_n
call fcn.00503ee1
movzx eax, byte [esi + 0x199]
movzx ecx, byte [esi + 0x198]
movzx edx, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push ecx
movzx ecx, byte [esi + 0x195]
push edx
movzx edx, byte [esi + 0x194]
push eax
push ecx
push edx
push str._02x__02x__02x__02x__02x__02x
push 0x570358
call fcn.0043d360
mov eax, 0x570358
add esp, 0x58
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x58], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x43f144
sub eax, ecx
push eax
push 0x570358
lea ecx, [ebp - 0x58]
call fcn.0040fa80
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040e740
cmp dword [ebp - 0x44], 0x10
jb 0x43f179
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.004fe49e
add esp, 4
cmp dword [esi + 0x1a4], ebx
je 0x43f188
push str._tDHCP_Enabled._._._._._._._._._._._:_Yes_n
jmp 0x43f18d
push str._tDHCP_Enabled._._._._._._._._._._._:_No_n
call fcn.00503ee1
add esp, 4
push str._tAutoconfiguration_Enabled_._._._._:__n
call fcn.00503ee1
push edi
push str._tIP_Address._._._._._._._._._._._._:__s_n
call fcn.00503ee1
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x43f1b2
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x3c]
call fcn.0040fa80
lea edx, [esi + 0x1c0]
push edx
push str._tSubnet_Mask_._._._._._._._._._._._:__s_n
call fcn.00503ee1
lea eax, [esi + 0x1d8]
push eax
push str._tDefault_Gateway_._._._._._._._._._:__s_n
call fcn.00503ee1
add esp, 0x10
cmp dword [esi + 0x1a4], ebx
je 0x43f206
lea ecx, [esi + 0x200]
push ecx
push str._tDHCP_Server_._._._._._._._._._._._:__s_n
call fcn.00503ee1
add esp, 8
push str._tDNS_Servers_._._._._._._._._._._._:
call fcn.00503ee1
mov edi, dword [ebp - 0x60]
lea edx, [edi + 0x110]
push edx
push 0x53fb10
call fcn.00503ee1
mov edi, dword [edi + 0x10c]
add esp, 0xc
cmp edi, ebx
je 0x43f248
lea eax, [edi + 4]
push eax
push str._t_t_t_t_t_____s_n
call fcn.00503ee1
mov edi, dword [edi]
add esp, 8
cmp edi, ebx
jne 0x43f231
cmp dword [esi + 0x224], ebx
je 0x43f275
lea ecx, [esi + 0x22c]
push ecx
push str._tPrimary_WINS_Server_._._._._._._._:__s_n
call fcn.00503ee1
lea edx, [esi + 0x254]
push edx
push 0x53fa48
call fcn.00503ee1
add esp, 0x10
push 0x53fa44
call fcn.00503ee1
mov ecx, dword [ebp - 0x6c]
add esp, 4
lea eax, [ebp - 0x3c]
push eax
call fcn.0043ed10
mov esi, dword [esi]
cmp esi, ebx
jne 0x43efd1
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp - 0x5c]
push edx
call fcn.004ff19b
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax]
xor edx, edx
add esp, 4
cmp ecx, dword [eax + 4]
lea ecx, [ebp - 0x3c]
setne dl
mov esi, edx
call fcn.00426020
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00500397
mov esp, ebp
pop ebp
ret 4