Function at 0x4034a0
Capabilities:
Get networking parameters

Disassembly:
push 0xffffffffffffffff
push 0x404698
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
xor ebx, ebx
push 1
push eax
push ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], ebx
call sub.iphlpapi.dll_GetIpAddrTable
mov ecx, dword [esp + 0x14]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebx
jne 0x4034fb
push str.Memory_allocation_error_n
jmp 0x4036d5
lea ecx, [esp + 0x14]
push ebx
push ecx
push esi
call sub.iphlpapi.dll_GetIpAddrTable
cmp eax, ebx
je 0x40352f
push eax
lea edx, [esp + 0x14]
push str.GetIpAddrTable_failed_with_error__d_n
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
push ebx
push ebx
push eax
call sub.MFC42.DLL_AfxMessageBox
jmp 0x40375c
cmp dword [esi], ebx
jbe 0x4035c9
mov eax, dword [esi + 4]
xor edx, edx
mov ecx, eax
mov dl, ah
and eax, 0xff
and edx, 0xff
shl eax, 8
shr ecx, 0x10
add edx, eax
mov eax, ecx
shl edx, 8
and eax, 0xff
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add edx, eax
xor eax, eax
mov al, ch
mov ecx, dword [ebp + 0x4e0]
shl edx, 8
and eax, 0xff
add edx, eax
push edx
push ebx
push 0x465
push ecx
call edi
mov eax, dword [esi + 0xc]
xor edx, edx
mov ecx, eax
mov dl, ah
and eax, 0xff
and edx, 0xff
shl eax, 8
shr ecx, 0x10
add edx, eax
mov eax, ecx
shl edx, 8
and eax, 0xff
add edx, eax
xor eax, eax
mov al, ch
mov ecx, dword [ebp + 0x4a0]
shl edx, 8
and eax, 0xff
add edx, eax
push edx
push ebx
push 0x465
push ecx
call edi
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push edx
push ebx
call sub.iphlpapi.dll_GetNetworkParams
cmp eax, ebx
je 0x4035e9
cmp eax, 0x6f
je 0x4035e9
push eax
push str.GetNetworkParams_sizing_failed_with_error__d_n
jmp 0x403634
mov edx, dword [esp + 0x18]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebx
jne 0x40361f
lea eax, [esp + 0x10]
push str.Memory_allocation_error_n
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x18]
add esp, 8
push ebx
push ebx
push ecx
call sub.MFC42.DLL_AfxMessageBox
jmp 0x40375c
lea edx, [esp + 0x18]
push edx
push esi
call sub.iphlpapi.dll_GetNetworkParams
cmp eax, ebx
je 0x403652
push eax
push str.GetNetworkParams_failed_with_error__d_n
lea eax, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ebx
push ebx
push ecx
call sub.MFC42.DLL_AfxMessageBox
jmp 0x40375c
add esi, 0x10c
xor edi, edi
cmp esi, ebx
je 0x4036a6
cmp edi, 2
jge 0x4036a6
lea edx, [esi + 4]
lea eax, [esp + 0x10]
push edx
push 0x407404
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
cmp edi, ebx
jne 0x40368a
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [ebp + 0x400]
jmp 0x40369a
cmp edi, 1
jne 0x40369f
mov edx, dword [esp + 0x10]
lea ecx, [ebp + 0x3c0]
push edx
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov esi, dword [esi]
inc edi
cmp esi, ebx
jne 0x40365e
lea eax, [esp + 0x1c]
xor esi, esi
push eax
push ebx
mov dword [esp + 0x24], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4036fb
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x4036f0
push str.Insufficient_Memory
lea edx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x18]
add esp, 8
push ebx
push ebx
push eax
call sub.MFC42.DLL_AfxMessageBox
jmp 0x40375c
lea ecx, [esp + 0x1c]
push ecx
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, ebx
jne 0x40375c
cmp esi, ebx
jne 0x403723
lea edx, [esp + 0x10]
push str.No_Interfaces_Present.
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x18]
add esp, 8
push ebx
push ebx
push eax
call sub.MFC42.DLL_AfxMessageBox
jmp 0x40374c
add esi, 0x1d8
lea ecx, [esp + 0x10]
push esi
push 0x407404
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [ebp + 0x440]
push edx
call sub.MFC42.DLL_CWnd::SetWindowTextA
push 0x4073c8
lea ecx, [ebp + 0x340]
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00403ba6
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret