Function at 0x405260
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b136
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x43d288]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x15c], eax
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov dword [eax + 0x11800], 0
lea eax, [ebp - 0x130]
push eax
push 0
push 0
push 0xa6
push 2
mov dword [0x43e4d0], 0
mov dword [ebp - 0x130], 0
call esi
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x140]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x140], xmm0
mov dword [ebp - 0x138], ecx
lea ecx, [ebp - 0x13c]
push ecx
mov dword [ebp - 0x134], ecx
lea ecx, [ebp - 0x140]
push eax
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], eax
call fcn.00401420
test al, al
jne 0x405337
call fcn.0041aa5e
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x6c
push str.e:workwthttp.._common_heapmem.h
push str.ERROR
call fcn.004161a0
add esp, 0x14
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x138]
mov eax, dword [eax]
test eax, eax
je 0x405670
lea ecx, [ebp - 0x130]
push ecx
push eax
push 0
push 0xa6
push 2
call esi
test eax, eax
je 0x405372
push eax
push str.Failed_to_execute_GetAdapteraAddresses._Error:__d
push 0x67
jmp 0x40567e
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax]
mov dword [ebp - 0x154], ecx
test ecx, ecx
je 0x405525
jmp 0x405390
mov eax, dword [ecx + 0x3c]
cmp eax, 0xffff
jae 0x4054a2
test eax, eax
je 0x4054a2
mov edi, dword [ecx + 0x10]
test edi, edi
je 0x4054a2
mov esi, dword [edi + 0xc]
mov esi, dword [esi + 4]
test esi, esi
je 0x405497
cmp esi, 0xffffffff
je 0x405497
cmp esi, 0x100007f
je 0x405497
cmp si, 0xfea9
je 0x405497
xor eax, eax
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x11e], eax
mov word [ebp - 0x11a], ax
mov ax, word [ecx + 0x3c]
mov word [ebp - 0x120], ax
lea eax, [ecx + 0x2c]
push eax
lea ecx, [ebp - 0x11e]
call fcn.004062d0
mov eax, dword [ebp - 0x154]
lea ecx, [ebp - 0x118]
mov edx, 0x80
push dword [eax + 0x24]
call fcn.004048b0
mov ecx, dword [ebp - 0x154]
add esp, 4
mov dword [ebp - 0x124], 0xffffff
mov eax, dword [ecx + 0xa4]
test eax, eax
je 0x40544f
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
jmp 0x405452
mov dword [ebp - 0x18], esi
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x15c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x128]
push eax
call fcn.00405fe0
test al, al
jne 0x405491
call fcn.0041aa5e
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x90
push str.....common_netInterfaces.cpp
push str.ERROR
call fcn.004161a0
add esp, 0x14
mov ecx, dword [ebp - 0x154]
mov edi, dword [edi + 8]
test edi, edi
jne 0x4053b1
mov esi, dword [ecx + 0x1c]
test esi, esi
je 0x405514
lea esp, [esp]
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x158], eax
cmp eax, 0x100007f
je 0x405507
lea eax, [ebp - 0x158]
push eax
call fcn.004062a0
cmp eax, 0xffffffff
jne 0x405507
lea eax, [ebp - 0x158]
push eax
call fcn.00406120
test al, al
jne 0x405507
call fcn.0041aa5e
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0xab
push str.....common_netInterfaces.cpp
push str.ERROR
call fcn.004161a0
add esp, 0x14
mov esi, dword [esi + 8]
test esi, esi
jne 0x4054b0
mov ecx, dword [ebp - 0x154]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x154], ecx
test ecx, ecx
jne 0x405390
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetIpAddrTable]
lea eax, [ebp - 0x12c]
push 0
push eax
push 0
mov dword [ebp - 0x12c], 0
call esi
push ecx
push dword [ebp - 0x12c]
xorps xmm0, xmm0
lea ecx, [ebp - 0x150]
movdqu xmmword [ebp - 0x150], xmm0
call fcn.004061b0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x148]
mov eax, dword [eax]
test eax, eax
jne 0x405590
push str.pIPAddrTable_not_allocated.
push 0xbd
push str.....common_netInterfaces.cpp
push str.ERROR
call fcn.004161a0
add esp, 0x10
jmp 0x405647
push 0
lea ecx, [ebp - 0x12c]
push ecx
push eax
call esi
test eax, eax
je 0x4055c2
push eax
push str.GetIpAddrTable_failed_with_error__d
push 0xc4
push str.....common_netInterfaces.cpp
push str.ERROR
call fcn.004161a0
add esp, 0x14
jmp 0x405647
mov eax, dword [ebp - 0x148]
xor edi, edi
mov eax, dword [eax]
mov dword [ebp - 0x160], eax
cmp dword [eax], edi
jbe 0x405647
lea esi, [eax + 0xc]
lea esp, [esp]
mov eax, dword [esi - 8]
mov ecx, dword [ebp - 0x15c]
mov dword [ebp - 0x154], eax
mov eax, dword [esi]
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x154]
push eax
call fcn.00406260
cmp eax, 0xffffffff
je 0x405639
mov ecx, dword [ebp - 0x15c]
push eax
call fcn.00406040
mov ecx, dword [ebp - 0x158]
mov edx, dword [eax]
and edx, ecx
mov dword [eax + 4], ecx
mov ecx, dword [eax + 0x110]
and ecx, dword [ebp - 0x158]
cmp edx, ecx
je 0x405639
mov ecx, dword [eax]
mov dword [eax + 0x110], ecx
mov eax, dword [ebp - 0x160]
inc edi
add esi, 0x18
cmp edi, dword [eax]
jb 0x4055e0
mov eax, dword [ebp - 0x150]
test eax, eax
je 0x405664
push eax
call fcn.0041aab2
add esp, 4
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
jmp 0x405690
call fcn.0041aa5e
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x62
push str.....common_netInterfaces.cpp
push str.ERROR
call fcn.004161a0
add esp, 0x14
mov eax, dword [ebp - 0x140]
test eax, eax
je 0x4056a3
push eax
call fcn.0041aab2
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041aa1b
mov esp, ebp
pop ebp
ret