Function at 0x403680
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x42b1d0]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x2c], eax
xor eax, eax
push 1
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x18], ecx
xor esi, esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call fcn.004029e0
mov edi, eax
cmp edi, 0xffffffff
jne 0x4036eb
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00412899
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
lea eax, [esp + 0x14]
push eax
push esi
push esi
lea ecx, [esp + 0x2c]
push ecx
push esi
lea edx, [esp + 0x44]
push edx
push edi
mov dword [esp + 0x30], esi
call ebx
test eax, eax
jne 0x403753
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x403753
test esi, esi
je 0x403726
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
push edx
mov esi, eax
push esi
lea eax, [esp + 0x2c]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push edi
call ebx
test eax, eax
je 0x403710
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
test esi, esi
je 0x4037c8
mov ecx, 0x423d93
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403785
test dl, dl
je 0x403781
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403785
add eax, 2
add ecx, 2
test dl, dl
jne 0x403765
xor eax, eax
jmp 0x40378a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4037c1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403793
mov ebx, dword [esp + 0x10]
sub eax, edx
push eax
push esi
lea ecx, [ebx + 8]
call fcn.00401c30
push esi
push str.Adapter_is:__s
call fcn.004124a0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4037d9
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.Cant_find_Adapter....
call fcn.00412560
mov ebx, dword [esp + 0x14]
add esp, 4
push str.FindAdapter_run..
mov edi, 5
mov dword [esp + 0x1c], 0x288
xor esi, esi
call fcn.004124a0
add esp, 4
dec edi
test esi, esi
je 0x403803
push esi
call fcn.00413164
add esp, 4
mov edx, dword [esp + 0x18]
push edx
call fcn.00412870
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
push 0
push esi
mov dword [esp + 0x1c], esi
call fcn.004183e0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x403857
cmp eax, 0x6f
je 0x40384f
test esi, esi
je 0x40384f
push esi
call fcn.00413164
add esp, 4
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x10]
test edi, edi
jne 0x4037f5
mov dword [esp + 0x1c], 0
test esi, esi
je 0x403a14
mov eax, dword [0x42442c]
mov edx, dword [str.169.254]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], edx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403881
sub eax, edx
mov dword [esp + 0x28], eax
mov edi, edi
lea edi, [esi + 0x10c]
push edi
push str.adacur__Description:__s
call fcn.004124a0
add esp, 8
cmp dword [ebx + 0x20], 0x10
jb 0x4038af
mov eax, dword [ebx + 0xc]
jmp 0x4038b2
lea eax, [ebx + 0xc]
push eax
push str.m_chDeviceName_is:__s
call fcn.004124a0
add esp, 8
cmp dword [ebx + 0x20], 0x10
jb 0x4038cb
mov eax, dword [ebx + 0xc]
jmp 0x4038ce
lea eax, [ebx + 0xc]
push eax
push edi
call fcn.00413540
add esp, 8
test eax, eax
jne 0x4038e7
mov esi, dword [esi]
test esi, esi
jne 0x403890
jmp 0x403a07
lea edi, [esi + 0x1b0]
push edi
push str.IPAddress:__s
call fcn.004124a0
add esi, 0x1d8
push esi
push str.adacur__GatewayList.IpAddress.String:__s
call fcn.004124a0
mov eax, edi
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403911
sub eax, edx
je 0x403a07
mov ecx, edi
mov eax, str.0.0.0.0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403947
test dl, dl
je 0x403943
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403947
add eax, 2
add ecx, 2
test dl, dl
jne 0x403927
xor eax, eax
jmp 0x40394c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x403a07
mov ebx, dword [esp + 0x28]
push ebx
lea ecx, [esp + 0x50]
push ecx
push edi
call fcn.00413475
add esp, 0xc
test eax, eax
je 0x403a07
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403974
sub eax, edx
je 0x403a07
mov ecx, esi
mov eax, str.0.0.0.0
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4039b0
test dl, dl
je 0x4039ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4039b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x403990
xor eax, eax
jmp 0x4039b5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x403a07
push ebx
lea edx, [esp + 0x50]
push edx
push esi
call fcn.00413475
add esp, 0xc
test eax, eax
je 0x403a07
mov edi, dword [esp + 0x2c]
push edi
mov edx, str.http:__
mov dword [esp + 0x20], 1
call fcn.004015a0
push edi
mov edx, esi
call fcn.004015c0
cmp dword [edi + 0x18], 0x10
jb 0x4039f6
mov edi, dword [edi + 4]
jmp 0x4039f9
add edi, 4
push edi
push str.Gateway:__s
call fcn.004124a0
add esp, 8
mov eax, dword [esp + 0x10]
push eax
call fcn.00413164
add esp, 4
push str.FindAdapter_exit..
call fcn.004124a0
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00412899
mov esp, ebp
pop ebp
ret 4