Function at 0x402630
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x42c070]
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.004018e0
mov edi, eax
cmp edi, 0xffffffff
jne 0x40269b
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00413017
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
lea eax, [esp + 0x18]
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 + 0x3c], esi
mov dword [esp + 0x34], esi
call ebx
test eax, eax
jne 0x402716
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x402716
test esi, esi
je 0x4026d8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x18]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4026f8
push str.LocalAlloc_failed
call fcn.00412950
add esp, 4
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
lea eax, [esp + 0x2c]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push edi
call ebx
test eax, eax
je 0x4026c2
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
test esi, esi
je 0x40278b
mov ecx, 0x424da5
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402748
test dl, dl
je 0x402744
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402748
add eax, 2
add ecx, 2
test dl, dl
jne 0x402728
xor eax, eax
jmp 0x40274d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402784
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402756
mov edi, dword [esp + 0x10]
sub eax, edx
push eax
push esi
lea ecx, [edi + 8]
call fcn.00407f80
push esi
push str.Adapter_is:__s
call fcn.00412950
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40279c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.Cant_find_Adapter....
call fcn.004129d0
mov edi, dword [esp + 0x14]
add esp, 4
push str.FindAdapter_run..
mov esi, 5
mov dword [esp + 0x20], 0x288
xor ebx, ebx
call fcn.00412950
add esp, 4
dec esi
test ebx, ebx
je 0x4027c6
push ebx
call fcn.00414217
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
call fcn.00412fee
mov ebx, eax
add esp, 4
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x4027e9
push str.adapters_is_NULL
call fcn.00412950
jmp 0x402818
mov eax, dword [esp + 0x1c]
mov edx, eax
mov ecx, ebx
call fcn.00412eb0
lea eax, [esp + 0x1c]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x402823
cmp eax, 0x6f
je 0x40281b
push ebx
call fcn.00414217
mov dword [esp + 0x14], 0
add esp, 4
mov ebx, dword [esp + 0x10]
test esi, esi
jne 0x4027b8
mov dword [esp + 0x24], 0
test ebx, ebx
je 0x4029ca
mov edx, dword [0x4250c8]
mov ecx, dword [str.169.254]
lea eax, [esp + 0x4c]
mov dword [esp + 0x50], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x4c], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402852
sub eax, edx
mov dword [esp + 0x28], eax
mov ebx, 0x10
mov esi, dword [esp + 0x14]
add esi, 0x10c
push esi
push str.adacur__Description:__s
call fcn.00412950
add esp, 8
cmp dword [edi + 0x20], ebx
jb 0x402886
mov eax, dword [edi + 0xc]
jmp 0x402889
lea eax, [edi + 0xc]
push eax
push str.m_chDeviceName_is:__s
call fcn.00412950
add esp, 8
cmp dword [edi + 0x20], ebx
jb 0x4028a1
mov eax, dword [edi + 0xc]
jmp 0x4028a4
lea eax, [edi + 0xc]
push eax
push esi
call fcn.004139d0
add esp, 8
test eax, eax
jne 0x4028c5
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x402864
jmp 0x4029bd
mov edi, dword [esp + 0x14]
lea esi, [edi + 0x1b0]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4028d4
sub eax, edx
je 0x4029bd
mov ecx, esi
mov eax, str.0.0.0.0
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402910
test dl, dl
je 0x40290c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402910
add eax, 2
add ecx, 2
test dl, dl
jne 0x4028f0
xor eax, eax
jmp 0x402915
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4029bd
mov ebx, dword [esp + 0x28]
push ebx
lea ecx, [esp + 0x50]
push ecx
push esi
call fcn.004134e4
add esp, 0xc
test eax, eax
je 0x4029bd
add edi, 0x1d8
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402943
sub eax, edx
je 0x4029bd
mov ecx, edi
mov eax, str.0.0.0.0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402975
test dl, dl
je 0x402971
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402975
add eax, 2
add ecx, 2
test dl, dl
jne 0x402955
xor eax, eax
jmp 0x40297a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4029bd
push ebx
lea edx, [esp + 0x50]
push edx
push edi
call fcn.004134e4
add esp, 0xc
test eax, eax
je 0x4029bd
mov esi, dword [esp + 0x2c]
push esi
mov edx, str.http:__
mov dword [esp + 0x28], 1
call fcn.00407010
push esi
mov edx, edi
call fcn.00407030
push str.Get_Gateway_Success
call fcn.00412950
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call fcn.00414217
add esp, 4
push str.FindAdapter_exit..
call fcn.00412950
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x28]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00413017
mov esp, ebp
pop ebp
ret 4