Function at 0x411540
Capabilities:
Get local ipv4 addresses
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x39c
mov eax, dword [0x440070]
xor eax, esp
mov dword [esp + 0x398], eax
push ebx
push esi
mov eax, 0x3a98
mov dword [esp + 0x18], ecx
push edi
mov dword [esp + 0x18], 0
xor edi, edi
mov dword [esp + 0x14], eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebx, ebx
je 0x41183e
lea eax, [esp + 0x14]
push eax
push ebx
push 0
push 0x10
push 0
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov esi, eax
cmp esi, 0x6f
jne 0x4115d1
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
inc edi
mov dword [esp + 0xc], ebx
cmp edi, 3
jae 0x4117cd
mov eax, dword [esp + 0x14]
jmp 0x411574
test esi, esi
jne 0x4117cd
mov dword [esp + 0x10], esi
lea edi, [esi + 2]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [ebx + 0x44], 1
jne 0x4116f2
mov eax, dword [ebx + 0x40]
cmp eax, 6
je 0x411601
cmp eax, 0x47
jne 0x4116f2
push str.Wi_Fi_Direct_Virtual
push dword [ebx + 0x24]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x411668
push 0
push 0
push 0xffffffffffffffff
push dword [ebx + 0xc]
push 0
push 0
call esi
xor ecx, ecx
mov esi, eax
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041385c
add esp, 4
mov edi, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push 0xffffffffffffffff
push dword [ebx + 0xc]
push 0
push 0
call esi
mov edx, edi
lea ecx, [esp + 0x30]
call fcn.00410e30
push 2
push edi
call fcn.004135f4
add esp, 8
mov edi, 2
push 0x35c
lea eax, [esp + 0x44]
push 0
push eax
call fcn.004161b0
mov eax, dword [ebx + 4]
add esp, 0xc
mov dword [esp + 0x240], eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetIfEntry]
mov eax, dword [esp + 0x268]
cmp eax, dword [esp + 0x10]
jbe 0x4116f2
push 0
push 0
push 0xffffffffffffffff
push dword [ebx + 0xc]
mov dword [esp + 0x20], eax
push 0
push 0
call esi
xor ecx, ecx
mov esi, eax
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041385c
add esp, 4
mov edi, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push 0xffffffffffffffff
push dword [ebx + 0xc]
push 0
push 0
call esi
mov edx, edi
lea ecx, [esp + 0x20]
call fcn.00410e30
push 2
push edi
call fcn.004135f4
add esp, 8
mov eax, dword [ebx + 8]
mov edi, 2
mov ebx, eax
test eax, eax
jne 0x4115e6
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41171c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x10], 0
push eax
mov ecx, ebx
call fcn.00411370
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x14], 0
push eax
mov ecx, ebx
call fcn.00411370
test eax, eax
js 0x41179a
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00411370
test eax, eax
js 0x41179a
mov ecx, ebx
call fcn.00411310
imul ecx, dword [esp + 0xc], 0x58
add ecx, dword [ebx + 4]
call fcn.00411ad0
test eax, eax
js 0x41179a
imul ecx, dword [esp + 0x10], 0x58
add ecx, dword [ebx + 4]
call fcn.00411b20
test eax, eax
je 0x4117b8
mov ecx, ebx
call fcn.00411270
test eax, eax
jne 0x4117b8
lea eax, [esp + 0x30]
mov ecx, ebx
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004114d0
mov ecx, dword [esp + 0x3a4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041304a
mov esp, ebp
pop ebp
ret
push esi
push str.Call_to_GetAdaptersAddresses_failed_with_error:__d_n
call fcn.00411860
add esp, 8
cmp esi, 0xe8
jne 0x4117f5
push str._tNo_addresses_were_found_for_the_requested_parameters_n
call fcn.00411860
add esp, 4
jmp 0x411704
push 0
push 0
lea eax, [esp + 0x20]
push eax
push 0x400
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x411704
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x411837
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 1
call fcn.0041c33a
push str.Memory_allocation_failed_for_IP_ADAPTER_ADDRESSES_struct_n
call fcn.00411860
add esp, 4
push 1
call fcn.0041c33a
int3