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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x39c
mov eax, dword [0x43f070]
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 0x40f48e
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 0x40f221
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 0x40f41d
mov eax, dword [esp + 0x14]
jmp 0x40f1c4
test esi, esi
jne 0x40f41d
mov dword [esp + 0x10], esi
lea edi, [esi + 2]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [ebx + 0x44], 1
jne 0x40f342
mov eax, dword [ebx + 0x40]
cmp eax, 6
je 0x40f251
cmp eax, 0x47
jne 0x40f342
push str.Wi_Fi_Direct_Virtual
push dword [ebx + 0x24]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x40f2b8
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.0041184f
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.0040e9d0
push 2
push edi
call fcn.004115e7
add esp, 8
mov edi, 2
push 0x35c
lea eax, [esp + 0x44]
push 0
push eax
call fcn.00414160
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 0x40f342
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.0041184f
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.0040e9d0
push 2
push edi
call fcn.004115e7
add esp, 8
mov eax, dword [ebx + 8]
mov edi, 2
mov ebx, eax
test eax, eax
jne 0x40f236
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40f36c
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.0040ef70
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.0040ef70
test eax, eax
js 0x40f3ea
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0040ef70
test eax, eax
js 0x40f3ea
mov ecx, ebx
call fcn.0040eeb0
imul ecx, dword [esp + 0xc], 0x58
add ecx, dword [ebx + 4]
call fcn.0040fb20
test eax, eax
js 0x40f3ea
imul ecx, dword [esp + 0x10], 0x58
add ecx, dword [ebx + 4]
call fcn.0040fb70
test eax, eax
je 0x40f408
mov ecx, ebx
call fcn.0040ee10
test eax, eax
jne 0x40f408
lea eax, [esp + 0x30]
mov ecx, ebx
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0040f120
mov ecx, dword [esp + 0x3a4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041103d
mov esp, ebp
pop ebp
ret
push esi
push str.Call_to_GetAdaptersAddresses_failed_with_error:__d_n
call fcn.0040f4f0
add esp, 8
cmp esi, 0xe8
jne 0x40f445
push str._tNo_addresses_were_found_for_the_requested_parameters_n
call fcn.0040f4f0
add esp, 4
jmp 0x40f354
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 0x40f354
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x40f487
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 1
call fcn.0041a10b
push str.Memory_allocation_failed_for_IP_ADAPTER_ADDRESSES_struct_n
call fcn.0040f4f0
add esp, 4
push 1
call fcn.0041a10b
int3