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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x39c
mov eax, dword [0x45a06c]
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 0x40ceda
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 0x40cc91
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 0x40ce8d
mov eax, dword [esp + 0x14]
jmp 0x40cc34
test esi, esi
jne 0x40ce8d
mov dword [esp + 0x10], esi
lea edi, [esi + 2]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [ebx + 0x44], 1
jne 0x40cdb2
mov eax, dword [ebx + 0x40]
cmp eax, 6
je 0x40ccc1
cmp eax, 0x47
jne 0x40cdb2
push str.Wi_Fi_Direct_Virtual
push dword [ebx + 0x24]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x40cd28
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.0040fd35
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.0040c4c0
push 2
push edi
call fcn.0040fcff
add esp, 8
mov edi, 2
push 0x35c
lea eax, [esp + 0x44]
push 0
push eax
call fcn.00427940
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 0x40cdb2
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.0040fd35
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.0040c4c0
push 2
push edi
call fcn.0040fcff
add esp, 8
mov eax, dword [ebx + 8]
mov edi, 2
mov ebx, eax
test eax, eax
jne 0x40cca6
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40cddc
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.0040ca40
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.0040ca40
test eax, eax
js 0x40ce5a
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0040ca40
test eax, eax
js 0x40ce5a
mov ecx, ebx
call fcn.0040c9e0
imul ecx, dword [esp + 0xc], 0x58
add ecx, dword [ebx + 4]
call fcn.0040d5e0
test eax, eax
js 0x40ce5a
imul ecx, dword [esp + 0x10], 0x58
add ecx, dword [ebx + 4]
call fcn.0040d630
test eax, eax
je 0x40ce78
mov ecx, ebx
call fcn.0040c940
test eax, eax
jne 0x40ce78
lea eax, [esp + 0x30]
mov ecx, ebx
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0040cb90
mov ecx, dword [esp + 0x3a4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040f6a8
mov esp, ebp
pop ebp
ret
push esi
push str.Call_to_GetAdaptersAddresses_failed_with_error:__d_n
call fcn.0040cf40
add esp, 8
cmp esi, 0xe8
jne 0x40ceb5
push str._tNo_addresses_were_found_for_the_requested_parameters_n
call fcn.0040cf40
add esp, 4
jmp 0x40cdc4
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
jne 0x40ceee
jmp 0x40cdc4
push str.Memory_allocation_failed_for_IP_ADAPTER_ADDRESSES_struct_n
call fcn.0040cf40
add esp, 4
push 1
call fcn.0042f5fb
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x40cf0c
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 1
call fcn.0042f5fb
int3