Function at 0x40b340
Capabilities:
Get local ipv4 addresses

Disassembly:
sub esp, 0x44c
mov eax, dword [0x6009e4]
xor eax, esp
mov dword [esp + 0x444], eax
push ebx
push ebp
push esi
push edi
mov ebx, edx
mov dword [esp + 0x14], ecx
push 0x288
mov dword [esp + 0x28], ebx
xor esi, esi
mov dword [esp + 0x20], 0
call fcn.0058d200
mov ebp, eax
add esp, 4
mov dword [esp + 0x20], ebp
test ebp, ebp
je 0x40b80a
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [esp + 0x1c]
push eax
push ebp
mov dword [esp + 0x24], 0x288
call edi
test eax, eax
je 0x40b3c5
push ebp
call fcn.0058bf82
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
je 0x40b80a
push eax
call fcn.0058d200
add esp, 4
mov dword [esp + 0x20], eax
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
push ebp
call edi
test eax, eax
jne 0x40b801
cmp dword [esp + 0x1c], esi
je 0x40b801
push 0x178
call fcn.0058d200
mov ebp, eax
add esp, 4
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x40b3ff
push dword [esp + 0x20]
jmp 0x40b802
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
lea eax, [esp + 0x1c]
push eax
push ebp
push 0
push 0x90
push 0
mov dword [esp + 0x30], 0x178
call edi
test eax, eax
je 0x40b446
push ebp
call fcn.0058bf82
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
je 0x40b80a
push eax
call fcn.0058d200
add esp, 4
mov dword [esp + 0x28], eax
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
push ebp
push 0
push 0x90
push 0
call edi
test eax, eax
jne 0x40b7f5
cmp dword [esp + 0x1c], esi
je 0x40b7f5
mov ecx, dword [esp + 0x20]
xor edx, edx
mov dword [esp + 0x30], edx
mov ebp, ecx
test ecx, ecx
je 0x40b7dc
nop dword [eax]
mov eax, dword [esp + 0x28]
mov edi, eax
test eax, eax
je 0x40b49c
mov eax, dword [ebp + 0x19c]
cmp dword [edi + 4], eax
je 0x40b4b1
mov edi, dword [edi + 8]
test edi, edi
jne 0x40b490
push dword [esp + 0x20]
call fcn.0058bf82
add esp, 4
push dword [esp + 0x28]
jmp 0x40b802
test edx, edx
je 0x40b4d0
mov eax, ebx
sub eax, esi
push 0x603904
push eax
mov eax, dword [esp + 0x1c]
add eax, esi
push eax
call fcn.0040b320
add esp, 0xc
add esi, eax
mov eax, ebx
sub eax, esi
push 0x603908
push eax
mov eax, dword [esp + 0x1c]
add eax, esi
push eax
call fcn.0040b320
add esp, 0xc
add esi, eax
mov eax, ebx
sub eax, esi
push dword [ebp + 0x1a0]
push 0x60390c
push eax
mov eax, dword [esp + 0x20]
add eax, esi
push eax
call fcn.0040b320
mov edx, dword [edi + 0x28]
add esp, 0x10
mov ecx, edx
add esi, eax
lea eax, [ecx + 2]
mov dword [esp + 0x18], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b520
sub ecx, dword [esp + 0x18]
sar ecx, 1
je 0x40b58a
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x18], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b540
sub ecx, dword [esp + 0x18]
lea eax, [esp + 0x50]
sar ecx, 1
push ecx
push edx
push 0x3ff
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00591fb8
add esp, 0x14
lea eax, [esp + 0x50]
push eax
mov eax, ebx
sub eax, esi
push str.__name_:__s_
push eax
mov eax, dword [esp + 0x20]
add eax, esi
push eax
call fcn.0040b320
add esp, 0x10
add esi, eax
mov edx, dword [edi + 0x24]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x18], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b596
sub ecx, dword [esp + 0x18]
sar ecx, 1
je 0x40b5fc
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x18], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b5b2
sub ecx, dword [esp + 0x18]
lea eax, [esp + 0x50]
sar ecx, 1
push ecx
push edx
push 0x3ff
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00591fb8
add esp, 0x14
lea eax, [esp + 0x50]
push eax
mov eax, ebx
sub eax, esi
push str.__desc_:__s_
push eax
mov eax, dword [esp + 0x20]
add eax, esi
push eax
call fcn.0040b320
add esp, 0x10
add esi, eax
cmp dword [ebp + 0x190], 6
jne 0x40b650
movzx eax, byte [ebp + 0x199]
push eax
movzx eax, byte [ebp + 0x198]
push eax
movzx eax, byte [ebp + 0x197]
push eax
movzx eax, byte [ebp + 0x196]
push eax
movzx eax, byte [ebp + 0x195]
push eax
movzx eax, byte [ebp + 0x194]
push eax
mov eax, ebx
sub eax, esi
push str.__mac_:__02x_02x_02x_02x_02x_02x_
push eax
mov eax, dword [esp + 0x34]
add eax, esi
push eax
call fcn.0040b320
add esp, 0x24
add esi, eax
mov edx, dword [edi + 0x20]
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b660
sub ecx, edi
sar ecx, 1
je 0x40b6be
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b676
sub ecx, edi
lea eax, [esp + 0x50]
sar ecx, 1
push ecx
push edx
push 0x3ff
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00591fb8
add esp, 0x14
lea eax, [esp + 0x50]
push eax
mov eax, ebx
sub eax, esi
push str.__dnssuffix_:__s_
push eax
mov eax, dword [esp + 0x20]
add eax, esi
push eax
call fcn.0040b320
add esp, 0x10
add esi, eax
mov edi, dword [esp + 0x24]
lea ebx, [ebp + 0x1b0]
push ebx
mov eax, edi
sub eax, esi
push str.__v4addr_:__s_
push eax
mov eax, dword [esp + 0x20]
add eax, esi
push eax
call fcn.0040b320
add esi, eax
lea eax, [ebp + 0x1c0]
push eax
mov eax, dword [esp + 0x28]
sub edi, esi
push str.__v4mask_:__s_
add eax, esi
push edi
push eax
call fcn.0040b320
add esi, eax
lea edi, [ebp + 0x1d8]
mov eax, dword [esp + 0x44]
push edi
sub eax, esi
push str.__v4gateway_:__s_
push eax
mov eax, dword [esp + 0x40]
add eax, esi
push eax
call fcn.0040b320
add esi, eax
mov edx, ebx
lea eax, [esp + 0x64]
mov ecx, 2
push eax
call fcn.004b4460
add esp, 0x34
lea eax, [esp + 0x38]
mov edx, edi
mov ecx, 2
push eax
call fcn.004b4460
add esp, 4
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
mov ebx, dword [esp + 0x24]
jne 0x40b7a9
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, ebx
sub eax, esi
push str.__gatewaymac_:__02x_02x_02x_02x_02x_02x_
push eax
mov eax, dword [esp + 0x34]
add eax, esi
push eax
call fcn.0040b320
add esp, 0x24
add esi, eax
mov eax, ebx
sub eax, esi
push 0x6039d0
push eax
mov eax, dword [esp + 0x1c]
add eax, esi
push eax
call fcn.0040b320
mov edx, dword [esp + 0x3c]
add esp, 0xc
mov ebp, dword [ebp]
inc edx
add esi, eax
mov dword [esp + 0x30], edx
test ebp, ebp
jne 0x40b480
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0058bf82
add esp, 4
push dword [esp + 0x28]
call fcn.0058bf82
add esp, 4
mov eax, esi
jmp 0x40b80c
push dword [esp + 0x20]
call fcn.0058bf82
add esp, 4
push ebp
call fcn.0058bf82
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x454]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00584a28
add esp, 0x44c
ret