Function at 0x10003240
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x288
push 0
mov dword [ebp - 0xc], 1
mov dword [ebp - 4], 0x288
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x10003278
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 4]
push eax
push ebx
call edi
cmp eax, 0x6f
jne 0x100032be
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, dword [ebp - 4]
call eax
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x100032b8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [ebp - 4]
push eax
push ebx
call edi
test eax, eax
jne 0x1000342b
mov edi, ebx
test ebx, ebx
je 0x1000341f
nop word [eax + eax]
mov ecx, str.0.0.0.0
lea eax, [edi + 0x1d8]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10003310
test dl, dl
je 0x1000330c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10003310
add eax, 2
add ecx, 2
test dl, dl
jne 0x100032f0
xor eax, eax
jmp 0x10003315
sbb eax, eax
or eax, 1
test eax, eax
je 0x10003413
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push dword [edi + 0x19c]
call dword [sym.imp.IPHLPAPI.DLL_GetPerAdapterInfo]
cmp eax, 0x6f
jne 0x10003413
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, dword [ebp - 8]
call eax
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
lea eax, [ebp - 8]
push eax
push esi
push dword [edi + 0x19c]
call dword [sym.imp.IPHLPAPI.DLL_GetPerAdapterInfo]
test eax, eax
jne 0x100033f9
lea eax, [esi + 0xc]
test eax, eax
je 0x100033f9
mov ecx, 0x10030e52
add eax, 4
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100033a1
test dl, dl
je 0x1000339d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100033a1
add eax, 2
add ecx, 2
test dl, dl
jne 0x10003381
xor eax, eax
jmp 0x100033a6
sbb eax, eax
or eax, 1
test eax, eax
je 0x100033f9
lea eax, [edi + 0x1b0]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [0x1003cf50]
mov edx, eax
mov eax, dword [0x1003cf4c]
cmp eax, ecx
je 0x100033d9
cmp dword [eax], edx
je 0x100033d5
add eax, 4
cmp eax, ecx
jne 0x100033c8
jmp 0x100033d9
cmp eax, ecx
jne 0x1000340d
mov dword [ebp - 0x10], edx
cmp ecx, dword [0x1003cf54]
je 0x100033ef
mov dword [ecx], edx
add dword [0x1003cf50], 4
jmp 0x100033f9
lea eax, [ebp - 0x10]
push eax
push ecx
call fcn.10008e40
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10003413
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, dword [edi]
test edi, edi
jne 0x100032e0
jmp 0x10003434
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x10003443
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret