Function at 0x40f070
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
sub esp, 0x444
mov eax, dword [0x6d1d44]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push ebp
push esi
push edi
push 0x55
xor edi, edi
mov dword [esp + 0x1c], edx
push 0x6d77c4
xor eax, eax
mov dword [esp + 0x1c], ecx
inc edi
mov dword [esp + 0x28], eax
push edi
mov esi, 0x288
mov dword [esp + 0x1c], eax
push esi
mov ebx, eax
call fcn.005ed7c0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x40f553
lea eax, [esp + 0x10]
mov dword [esp + 0x10], esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
push eax
push ebp
call esi
test eax, eax
je 0x40f0fe
push edi
push ebp
call fcn.005ed680
pop ecx
pop ecx
cmp dword [esp + 0x10], ebx
je 0x40f553
push 0x58
push 0x6d77dc
push edi
push dword [esp + 0x1c]
call fcn.005ed7c0
add esp, 0x10
mov ebp, eax
lea eax, [esp + 0x10]
push eax
push ebp
call esi
test eax, eax
jne 0x40f54a
cmp dword [esp + 0x10], ebx
je 0x40f54a
push 0x62
push 0x6d77f4
push edi
push 0x178
call fcn.005ed7c0
mov esi, eax
add esp, 0x10
mov dword [esp + 0x28], esi
test esi, esi
je 0x40f54a
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
lea eax, [esp + 0x10]
push eax
push esi
xor eax, eax
mov dword [esp + 0x18], 0x178
push eax
push 0x90
push eax
call edi
test eax, eax
je 0x40f198
push 1
push esi
call fcn.005ed680
pop ecx
pop ecx
cmp dword [esp + 0x10], ebx
jne 0x40f17d
test ebp, ebp
je 0x40f553
push 1
jmp 0x40f54b
push 0x6d
push 0x6d780c
push 1
push dword [esp + 0x1c]
call fcn.005ed7c0
add esp, 0x10
mov dword [esp + 0x28], eax
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
xor eax, eax
push eax
push 0x90
push eax
call edi
test eax, eax
jne 0x40f535
cmp dword [esp + 0x10], ebx
je 0x40f535
mov dword [esp + 0x1c], eax
mov edx, eax
mov dword [esp + 0x2c], eax
mov edi, ebp
mov dword [esp + 0x24], ebp
test ebp, ebp
je 0x40f515
mov eax, esi
test esi, esi
je 0x40f535
mov ecx, dword [edi + 0x19c]
cmp dword [eax + 4], ecx
je 0x40f1ef
mov eax, dword [eax + 8]
test eax, eax
jne 0x40f1e3
mov dword [esp + 0x1c], eax
test eax, eax
je 0x40f535
mov esi, dword [esp + 0x18]
test edx, edx
je 0x40f21e
mov eax, esi
sub eax, ebx
push 0x6d7824
push eax
mov eax, dword [esp + 0x1c]
add eax, ebx
push eax
call fcn.0040117f
add esp, 0xc
add ebx, eax
mov eax, esi
sub eax, ebx
push 0x6d7828
push eax
mov eax, dword [esp + 0x1c]
add eax, ebx
push eax
call fcn.0040117f
push dword [edi + 0x1a0]
add ebx, eax
mov eax, dword [esp + 0x24]
push str._type_:_d
sub esi, ebx
add eax, ebx
push esi
push eax
call fcn.0040117f
mov esi, dword [esp + 0x38]
add esp, 0x1c
add ebx, eax
mov ecx, dword [esi + 0x28]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x20]
jne 0x40f25f
sub ecx, edx
sar ecx, 1
je 0x40f2c3
mov ecx, dword [esi + 0x28]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x20]
jne 0x40f278
sub ecx, edx
lea eax, [esp + 0x50]
sar ecx, 1
push ecx
push dword [esi + 0x28]
push 0x3ff
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00601850
lea eax, [esp + 0x64]
push eax
mov eax, dword [esp + 0x30]
sub eax, ebx
push str.__name_:__s_
push eax
mov eax, dword [esp + 0x34]
add eax, ebx
push eax
call fcn.0040117f
add esp, 0x24
add ebx, eax
mov ecx, dword [esi + 0x24]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x20]
jne 0x40f2c9
sub ecx, edx
sar ecx, 1
je 0x40f32d
mov ecx, dword [esi + 0x24]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x20]
jne 0x40f2e2
sub ecx, edx
lea eax, [esp + 0x50]
sar ecx, 1
push ecx
push dword [esi + 0x24]
push 0x3ff
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00601850
lea eax, [esp + 0x64]
push eax
mov eax, dword [esp + 0x30]
sub eax, ebx
push str.__desc_:__s_
push eax
mov eax, dword [esp + 0x34]
add eax, ebx
push eax
call fcn.0040117f
add esp, 0x24
add ebx, eax
cmp dword [edi + 0x190], 6
jne 0x40f383
movzx eax, byte [edi + 0x199]
push eax
movzx eax, byte [edi + 0x198]
push eax
movzx eax, byte [edi + 0x197]
push eax
movzx eax, byte [edi + 0x196]
push eax
movzx eax, byte [edi + 0x195]
push eax
movzx eax, byte [edi + 0x194]
push eax
mov eax, dword [esp + 0x30]
sub eax, ebx
push str.__mac_:__02x_02x_02x_02x_02x_02x_
push eax
mov eax, dword [esp + 0x34]
add eax, ebx
push eax
call fcn.0040117f
add esp, 0x24
add ebx, eax
mov ecx, dword [esi + 0x20]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x20]
jne 0x40f389
sub ecx, edx
sar ecx, 1
je 0x40f3ed
mov ecx, dword [esi + 0x20]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x20]
jne 0x40f3a2
sub ecx, edx
lea eax, [esp + 0x50]
sar ecx, 1
push ecx
push dword [esi + 0x20]
push 0x3ff
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00601850
lea eax, [esp + 0x64]
push eax
mov eax, dword [esp + 0x30]
sub eax, ebx
push str.__dnssuffix_:__s_
push eax
mov eax, dword [esp + 0x34]
add eax, ebx
push eax
call fcn.0040117f
add esp, 0x24
add ebx, eax
mov eax, dword [esp + 0x18]
add edi, 0x1b0
push edi
sub eax, ebx
push str.__v4addr_:__s_
push eax
mov eax, dword [esp + 0x20]
add eax, ebx
push eax
call fcn.0040117f
mov esi, dword [esp + 0x34]
add ebx, eax
lea eax, [esi + 0x1c0]
push eax
mov eax, dword [esp + 0x2c]
sub eax, ebx
push str.__v4mask_:__s_
push eax
mov eax, dword [esp + 0x30]
add eax, ebx
push eax
call fcn.0040117f
add ebx, eax
add esi, 0x1d8
mov eax, dword [esp + 0x38]
push esi
sub eax, ebx
push str.__v4gateway_:__s_
push eax
mov eax, dword [esp + 0x40]
add eax, ebx
push eax
call fcn.0040117f
add ebx, eax
mov edx, edi
lea eax, [esp + 0x64]
push eax
push 2
pop ecx
call fcn.0048c79c
lea eax, [esp + 0x6c]
mov edx, esi
push eax
push 2
pop ecx
call fcn.0048c79c
add esp, 0x38
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x3c]
push dword [esp + 0x44]
call dword [sym.imp.IPHLPAPI.DLL_SendARP]
cmp dword [esp + 0x3c], 6
jne 0x40f4d5
movzx eax, byte [esp + 0x45]
push eax
movzx eax, byte [esp + 0x48]
push eax
movzx eax, byte [esp + 0x4b]
push eax
movzx eax, byte [esp + 0x4e]
push eax
movzx eax, byte [esp + 0x51]
push eax
movzx eax, byte [esp + 0x54]
push eax
mov eax, dword [esp + 0x30]
sub eax, ebx
push str.__gatewaymac_:__02x_02x_02x_02x_02x_02x_
push eax
mov eax, dword [esp + 0x34]
add eax, ebx
push eax
call fcn.0040117f
add esp, 0x24
add ebx, eax
mov eax, dword [esp + 0x18]
sub eax, ebx
push 0x6d78f0
push eax
mov eax, dword [esp + 0x1c]
add eax, ebx
push eax
call fcn.0040117f
mov edi, dword [esp + 0x30]
add esp, 0xc
mov edx, dword [esp + 0x2c]
add ebx, eax
mov esi, dword [esp + 0x28]
inc edx
mov dword [esp + 0x1c], eax
mov edi, dword [edi]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], edi
test edi, edi
jne 0x40f1d3
push 1
push ebp
call fcn.005ed680
push 1
push esi
call fcn.005ed680
xor eax, eax
add esp, 0x10
cmp dword [esp + 0x1c], eax
cmovl ebx, eax
mov eax, ebx
jmp 0x40f555
push 1
push ebp
call fcn.005ed680
push 1
push esi
call fcn.005ed680
add esp, 0x10
jmp 0x40f553
push edi
push ebp
call fcn.005ed680
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [esp + 0x450]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005b8900
add esp, 0x444
ret