Function at 0x480764
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x70], eax
xor edi, edi
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x44], edi
and dword [ebp - 0x40], edi
push str.119.75.217.109
mov dword [ebp - 0x74], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, 0x5100
mov esi, eax
push ebx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
push ebx
mov dword [ebp - 0x6c], ebx
xor ebx, ebx
push ebx
push eax
mov dword [ebp - 0x68], eax
call sub.msvcrt.dll_memset
add esp, 0x10
mov dword [ebp - 0x54], ebx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x50], ebx
push ebx
push ebx
call fcn.00480ce3
mov ebx, eax
lea ecx, [ebp - 0x64]
xor eax, eax
mov dword [ebp - 0x54], ebx
push eax
push eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
call fcn.00472c94
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x3c]
push eax
push edi
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetBestRoute]
test eax, eax
jne 0x480b24
push dword [ebp - 0x2c]
call dword [sym.imp.IPHLPAPI.DLL_GetFriendlyIfIndex]
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x6c]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x480b27
mov ecx, esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x58], ecx
mov eax, ecx
test ecx, ecx
je 0x4809e7
mov edx, dword [ebp - 0x48]
mov ecx, dword [eax + 0x19c]
cmp ecx, edx
je 0x48084b
cmp ecx, dword [ebp - 0x2c]
je 0x48084b
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x48082e
jmp 0x4809e7
add eax, 0x1b0
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call esi
mov ecx, dword [ebp - 0x58]
mov edi, eax
add ecx, 0x1c0
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call esi
mov esi, eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0x1ac]
jmp 0x4808a7
lea eax, [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov edi, eax
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov esi, eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
push edi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], eax
call fcn.00480ca2
pop ecx
test al, al
je 0x4808bc
test esi, esi
jne 0x4808c5
mov esi, dword [ebp - 0x40]
test esi, esi
jne 0x48087c
jmp 0x48093a
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], edi
push eax
push ebx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x48], esi
call fcn.00480487
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x480937
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
lea eax, [ebx + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call esi
lea ecx, [ebx + 0x14]
mov dword [ebp - 0x40], eax
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call esi
push dword [ebp - 0x40]
mov ebx, dword [ebx]
mov dword [ebp - 0x48], eax
call fcn.00480ca2
pop ecx
test al, al
je 0x480933
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x480933
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x54]
mov dword [ebp - 0x7c], ecx
lea ecx, [ebp - 0x54]
call fcn.00480487
test ebx, ebx
jne 0x4808e5
mov ebx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x58]
lea eax, [esi + 0x1d8]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov esi, dword [esi + 0x1d4]
jmp 0x48096c
lea eax, [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov esi, dword [esi]
push eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x58], eax
call fcn.00480ca2
pop ecx
test al, al
jne 0x480983
test esi, esi
jne 0x480959
jmp 0x4809bc
lea eax, [ebp - 0x58]
jmp 0x4809ac
lea eax, [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov esi, dword [esi]
push eax
mov dword [ebp - 0x48], eax
call fcn.00480ca2
pop ecx
test al, al
je 0x4809b8
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x64]
lea ecx, [ebp - 0x64]
call fcn.0047195b
test esi, esi
jne 0x480988
push dword [ebp - 0x40]
call fcn.00480ca2
pop ecx
test al, al
jne 0x4809e7
push dword [ebp - 0x30]
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
call esi
push eax
call fcn.00480ca2
pop ecx
test al, al
je 0x4809e7
push dword [ebp - 0x30]
call esi
mov dword [ebp - 0x40], eax
push edi
call fcn.00480ca2
mov esi, dword [ebp - 0x40]
movzx eax, al
neg eax
push esi
sbb eax, eax
and edi, eax
call fcn.00480ca2
movzx eax, al
neg eax
pop ecx
sbb eax, eax
and eax, esi
cmp dword [ebp - 0x60], 1
pop ecx
mov dword [ebp - 0x40], eax
jbe 0x480a5f
push dword [ebp - 0x30]
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
call esi
push eax
call fcn.00480ca2
pop ecx
test al, al
je 0x480a5f
push dword [ebp - 0x30]
call esi
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
mov byte [ebp - 0x48], 0
push dword [ebp - 0x48]
push eax
push esi
push dword [esi]
lea eax, [ebp - 0x48]
push eax
call fcn.00480461
add esp, 0x14
cmp dword [ebp - 0x48], esi
je 0x480a5f
push dword [ebp - 0x30]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x50], 1
jbe 0x480b24
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00480569
mov esi, dword [ebx]
jmp 0x480aa1
mov ecx, dword [esi + 0xc]
and ecx, dword [ebp - 0x40]
je 0x480a9f
mov eax, dword [esi + 8]
and eax, dword [esi + 0xc]
cmp eax, ecx
je 0x480a9f
push esi
mov esi, dword [esi]
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x54]
call fcn.00480dd9
mov ebx, dword [ebp - 0x54]
jmp 0x480aa1
mov esi, dword [esi]
cmp esi, ebx
jne 0x480a79
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x480ad6
push eax
call fcn.00480b8f
mov edx, eax
mov eax, dword [ebp - 0x5c]
pop ecx
test edx, edx
je 0x480acd
mov ecx, dword [eax]
jmp 0x480ac9
mov edi, dword [ecx + 8]
cmp edi, edx
je 0x480ad1
mov ecx, dword [ecx]
cmp ecx, eax
jne 0x480ac0
mov eax, dword [eax]
jmp 0x480afa
mov ebx, dword [ecx + 0xc]
jmp 0x480b00
cmp eax, 1
jbe 0x480b05
push 0
call fcn.00480b8f
pop ecx
test eax, eax
je 0x480af8
mov ecx, dword [ebx]
jmp 0x480af4
mov edi, dword [ecx + 8]
cmp edi, eax
je 0x480ad1
mov ecx, dword [ecx]
cmp ecx, ebx
jne 0x480aeb
mov eax, dword [ebx]
mov edi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov dword [ebp - 0x44], ebx
jmp 0x480b10
mov eax, dword [ebx]
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x5c]
call fcn.00480d95
push 0x10
push dword [ebp - 0x5c]
call fcn.00404bac
pop ecx
pop ecx
mov esi, dword [ebp - 0x68]
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
mov esi, dword [ebp - 0x70]
pop ecx
test esi, esi
je 0x480b4a
mov ebx, dword [ebp - 0x40]
push ebx
call fcn.00480ca2
movzx eax, al
neg eax
pop ecx
sbb eax, eax
and eax, ebx
mov dword [esi], eax
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x480b56
mov eax, dword [ebp - 0x44]
mov dword [ecx], eax
lea ecx, [ebp - 0x64]
call fcn.00472d69
push 0xc
push dword [ebp - 0x64]
call fcn.00404bac
pop ecx
pop ecx
lea ecx, [ebp - 0x54]
call fcn.00480d95
push 0x10
push dword [ebp - 0x54]
call fcn.00404bac
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00522d04
leave
ret