Function at 0x423c90
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481860
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x288
push 0
mov dword [ebp - 0x10], 0x288
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x423d4a
lea eax, [ebp - 0x30]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], ebx
jb 0x423cf9
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.ERROR:_cannot_allocat_memory_needed_to_call_GetAdaptersinfo
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov eax, dword [ebp - 0x1c]
add esp, 0x1c
cmp eax, 0x10
jb 0x423d37
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.00404120
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x423de7
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x10]
push 0
call edi
push eax
call esi
mov ebx, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jne 0x423de7
lea eax, [ebp - 0x30]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 1
jb 0x423da3
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.ERROR:_allocating_memory_needed_to_call_GetAdaptersinfo
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
add esp, 0x1c
lea ecx, [ebp - 0x30]
call fcn.004058c0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov esi, eax
test esi, esi
jne 0x423ec9
mov esi, ebx
test ebx, ebx
je 0x423f5a
mov ebx, dword [ebp + 8]
nop dword [eax + eax]
cmp byte [esi + 0x10c], 0
lea edx, [esi + 0x10c]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
jne 0x423e35
xor ecx, ecx
jmp 0x423e49
mov ecx, edx
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x423e40
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.00403ef0
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 2
push eax
mov ecx, ebx
lea edi, [esi + 0x1b0]
call fcn.0040bb50
cmp byte [edi], 0
mov dword [ebp - 0x18], eax
jne 0x423e77
xor ecx, ecx
jmp 0x423e8c
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x423e80
mov eax, dword [ebp - 0x18]
sub ecx, edx
push ecx
push edi
mov ecx, eax
call fcn.00403ef0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x423eb1
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.00404120
mov esi, dword [esi]
test esi, esi
jne 0x423e10
mov ebx, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
jmp 0x423f4a
lea eax, [ebp - 0x48]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 3
jb 0x423ef0
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.ERROR:_GetAdaptersInfo_failed_with_error__
push 0x48649c
push eax
call fcn.0040e7e0
push esi
push 0x486544
push eax
call fcn.0040e7e0
push 0x486730
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov eax, dword [ebp - 0x34]
add esp, 0x34
cmp eax, 0x10
jb 0x423f4a
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.00404120
test ebx, ebx
je 0x423f5a
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, dword [eax + 4]
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret