Function at 0x40de30
Capabilities:
Create thread
Get local ipv4 addresses
Get mac address on windows
Print debug messages
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xe4
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor ebp, ebp
push eax
push ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call sub.iphlpapi.dll_GetAdaptersInfo
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
lea edx, [esp + 0x10]
mov esi, eax
push edx
push esi
mov dword [esp + 0x24], esi
call sub.iphlpapi.dll_GetAdaptersInfo
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x34]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
push str.check_pppoe_state_n
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call edi
mov eax, dword [0x429450]
lea ecx, [esp + 0x74]
push eax
push str.pppoe_state_d_n
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x74]
push edx
call edi
cmp esi, ebp
je 0x40e041
lea eax, [esp + 0x20]
lea edi, [esp + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x1a0]
cmp eax, 6
je 0x40dee2
cmp eax, 0x17
jne 0x40e033
lea ecx, [esi + 0x1b0]
push ecx
call fcn.0040af30
add esp, 4
mov dword [edi], eax
mov edx, dword [esi + 0x1a4]
lea ebp, [esi + 0x1c0]
push edx
push ebp
call fcn.0040af30
mov ecx, dword [edi]
add esp, 4
lea edx, [esp + 0x78]
push eax
mov eax, dword [esi + 0x1a0]
push eax
push ecx
push str.sip_08X_ptype_d_mask_08X_dhcp_d_n
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov ecx, dword [edi]
push ebp
mov dword [esp + 0x34], ecx
call fcn.0040af30
mov edx, eax
mov eax, dword [esp + 0x34]
and edx, eax
add esp, 4
cmp edx, 0xfea9
jne 0x40df74
mov ecx, dword [0x41e160]
test ecx, ecx
jne 0x40df74
test byte [esi + 0x1a4], 1
je 0x40df74
push str.ms169ip
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
jmp 0x40e031
test eax, eax
je 0x40e031
lea eax, [esi + 0x194]
lea ecx, [edi - 8]
push ebp
lea ebx, [edi + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ax, word [eax + 4]
mov word [ecx + 4], ax
call fcn.0040af30
mov dword [ebx], eax
mov eax, dword [0x41e160]
add esp, 4
test eax, eax
je 0x40dfc0
mov eax, dword [0x429518]
test eax, eax
jne 0x40dfc0
test byte [0x41e15c], 0x80
je 0x40dfc0
mov dword [ebx], 0xffffffff
mov cl, byte [esi + 0x1a4]
mov ebp, dword [esp + 0x18]
mov byte [edi - 2], cl
mov dl, byte [esi + 0x1a0]
mov byte [edi - 1], dl
mov eax, dword [esi + 0x19c]
push 0
push edi
mov dword [ebp], eax
call fcn.0040a1d0
add esp, 4
push eax
call fcn.00409d30
add esp, 8
push 0
push ebx
call fcn.0040a1d0
add esp, 4
push eax
call fcn.00409d30
mov ecx, dword [esi + 0x1a0]
push 1
push ecx
call fcn.0040af90
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x3c]
add esp, 0x10
inc eax
add ebp, 4
add edi, 0x10
cmp eax, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebp
jge 0x40e03f
xor ebp, ebp
mov esi, dword [esi]
cmp esi, ebp
jne 0x40dece
jmp 0x40e041
xor ebp, ebp
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov ecx, 0x10
lea esi, [esp + 0x38]
mov edi, 0x4229d0
mov dword [0x422a10], eax
mov eax, dword [0x429450]
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
cmp eax, ebp
mov dword [0x422a14], ecx
mov dword [0x422a18], edx
mov dword [0x422a1c], ebx
jne 0x40e173
xor ebx, ebx
cmp edi, ebp
jle 0x40e324
xor esi, esi
mov ecx, dword [esi + 0x4229d0]
mov edx, dword [esi + 0x4229dc]
xor eax, eax
mov al, byte [esp + esi + 0x3b]
push eax
push ecx
push eax
push edx
lea eax, [esp + 0x84]
push str.mask_08X_type_d_ip_08X_type2_d_n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
cmp dword [esi + 0x4229dc], 0xffffffff
jne 0x40e0e6
cmp byte [esp + esi + 0x3b], 0x17
je 0x40e10f
mov edx, dword [esi + 0x4229d0]
mov eax, dword [str.DEST]
cmp edx, eax
jne 0x40e0fc
cmp byte [esp + esi + 0x3b], 6
je 0x40e10f
inc ebx
add esi, 0x10
cmp ebx, edi
jl 0x40e09f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe4
ret
cmp dword [0x42951c], ebp
jne 0x40e137
lea eax, [esp + 0x1c]
mov esi, 1
push eax
push ebp
push esi
push 0x40ee40
push ebp
push ebp
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x42951c], eax
jmp 0x40e13c
mov esi, 1
mov dword [0x429450], esi
mov dword [0x429454], esi
mov dword [0x4229c8], esi
pop edi
mov dword [0x41e178], ebp
pop esi
pop ebp
mov dword [0x41e15c], 0x80
mov dword [0x429490], 0x1010101
pop ebx
add esp, 0xe4
ret
mov eax, dword [0x429580]
mov esi, dword [sym.imp.MSVCRT.dll_clock]
cmp eax, ebp
jne 0x40e189
call esi
mov dword [0x429580], eax
mov ecx, dword [0x42954c]
mov edx, dword [0x41e15c]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
push edx
lea eax, [esp + 0x7c]
push str.pppoeproxyactv_d__disp_sygatemark_d_n
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
add esp, 0x10
lea ecx, [esp + 0x74]
push ecx
call edi
mov eax, dword [0x42954c]
mov dword [0x429550], ebp
cmp eax, ebp
je 0x40e1d1
test byte [0x41e15c], 0x80
jne 0x40e1dd
cmp dword [0x429554], ebp
je 0x40e2fe
push 0x64
call fcn.004047d0
add esp, 4
push eax
call edi
cmp dword [0x429450], ebp
je 0x40e31e
mov eax, dword [0x42957c]
cmp eax, ebp
jne 0x40e246
call esi
push 0x30
push 0x2d
mov dword [0x42957c], eax
mov dword [0x429550], 1
call fcn.004047d0
add esp, 4
push eax
push 0x64
call fcn.004047d0
mov edx, dword [0x428cd4]
add esp, 4
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
mov dword [0x429554], ebp
pop esi
pop ebp
pop ebx
add esp, 0xe4
ret
mov ecx, dword [0x429580]
lea edx, [esp + 0x74]
push ecx
push eax
push str.proxy_first_found_time_d__pppoe_net_linkup_time_d_n
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x74]
push eax
call edi
cmp dword [0x42957c], ebp
je 0x40e31e
cmp dword [0x429580], ebp
je 0x40e31e
call esi
mov ecx, dword [0x42957c]
sub eax, ecx
cmp eax, 0x1388
mov eax, dword [0x429580]
jl 0x40e2dc
mov edx, ecx
sub edx, eax
cmp edx, 0x1388
jl 0x40e2dc
mov dword [0x41e15c], ebp
mov dword [0x429450], ebp
mov dword [0x41e178], ebp
mov dword [0x429454], 1
mov dword [0x429580], ebp
mov dword [0x42957c], ebp
call fcn.0040dd60
pop edi
mov dword [0x429554], ebp
pop esi
pop ebp
pop ebx
add esp, 0xe4
ret
sub ecx, eax
cmp ecx, 0x1388
jg 0x40e31e
call esi
pop edi
mov dword [0x429554], ebp
pop esi
pop ebp
mov dword [0x42957c], eax
pop ebx
add esp, 0xe4
ret
mov dword [0x41e15c], 0x80
mov dword [0x429450], ebp
mov dword [0x41e178], ebp
mov dword [0x429454], 1
mov dword [0x429554], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe4
ret