Function at 0x403c50
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41523c
push eax
mov eax, 0x1654
mov dword fs:[0], esp
call fcn.00414b70
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1670]
push edi
lea ecx, [esp + 0x28]
mov eax, dword [esi]
push 0x2000000
lea edx, [esp + 0x264]
push ecx
push edx
push eax
mov dword [esp + 0x38], 0x400
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
lea eax, [esp + 0x260]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::operator_1
xor ebx, ebx
lea ecx, [esp + 0x1c]
or ebp, 0xffffffff
mov dword [esp + 0x14], ebx
call sub.MFC42.DLL_CString::CString_3
mov al, byte [esp + 0x167c]
mov dword [esp + 0x166c], ebx
cmp al, bl
je 0x403e06
mov ecx, dword [esp + 0x1678]
mov ebp, dword [sym.imp.MSVCRT.dll__mbsrchr]
xor eax, eax
lea edi, [esp + 0x58]
mov esi, dword [ecx]
mov ecx, 0x41
push 0x5c
push esi
rep stosd dword es:[edi], eax
call ebp
add esp, 8
cmp eax, ebx
je 0x403d93
sub eax, esi
cmp eax, ebx
jle 0x403d93
push eax
lea edx, [esp + 0x5c]
push esi
mov esi, dword [sym.imp.MSVCRT.dll__mbsnbcpy]
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x58]
push ebx
push eax
call dword [0x417058]
cmp eax, 1
je 0x403d93
call dword [0x417028]
cmp eax, 3
jne 0x403d93
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x15c]
push 0x5c
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x5c]
push ecx
call ebp
add esp, 8
cmp eax, ebx
je 0x403d93
lea edx, [esp + 0x58]
sub eax, edx
cmp eax, ebx
jle 0x403d93
push eax
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x160]
push eax
push ecx
call esi
lea edx, [esp + 0x168]
push edx
call fcn.004036f0
add esp, 0x10
cmp eax, 1
jne 0x403d93
lea eax, [esp + 0x58]
push ebx
push eax
call dword [0x417058]
mov ecx, dword [esp + 0x1678]
push ebx
push 0x80
push 2
mov eax, dword [ecx]
push ebx
push 3
push 0x40000000
push eax
call dword [0x417060]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x403e17
push 0x41c34c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x14]
push 1
push edx
mov byte [esp + 0x1674], 1
call fcn.004042f0
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x166c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x166c], ebp
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x403ff5
mov ecx, dword [esp + 0x1678]
push 0x41df08
call sub.MFC42.DLL_CString::operator_1
push ebx
push ebx
push ebx
push ebx
push str.Netpas_AutoUpdate_Agent
call dword [sym.imp.WININET.dll_InternetOpenA]
push ebx
push CWnd::GetDlgItem
push ebx
lea ecx, [esp + 0x26c]
push ebx
push ecx
push eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
lea edx, [esp + 0x34]
push ebx
lea eax, [esp + 0x3c]
push edx
push eax
push 5
push edi
mov byte [esp + 0x27], 1
mov dword [esp + 0x48], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
mov esi, eax
mov al, byte [esp + 0x1684]
add esp, 4
cmp al, bl
je 0x403e97
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push esi
push ebx
mov eax, dword [eax + 0x20]
mov ecx, eax
mov dword [esp + 0x28], eax
call fcn.0040cfe0
lea edx, [esp + 0x30]
lea eax, [esp + 0x660]
push edx
push 0x1000
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, dword [esp + 0x30]
cmp eax, ebx
je 0x403f85
cmp esi, ebx
jbe 0x403f81
mov ecx, dword [esp + 0x14]
mov al, byte [esp + 0x1680]
add ecx, esi
cmp al, bl
mov dword [esp + 0x14], ecx
je 0x403eea
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0040cfe0
call fcn.004047c0
mov al, byte [esp + 0x167c]
mov byte [esp + esi + 0x660], bl
cmp al, bl
je 0x403f5a
lea edx, [esp + 0x2c]
push ebx
push edx
lea eax, [esp + 0x668]
push esi
push eax
push ebp
call dword [0x41705c]
cmp esi, dword [esp + 0x2c]
je 0x403e97
push 0x41c320
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
push 1
push ecx
mov byte [esp + 0x1674], 2
call fcn.004042f0
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x166c], bl
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x13], bl
jmp 0x403e97
lea edx, [esp + 0x660]
lea ecx, [esp + 0x1c]
push edx
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x1678]
lea eax, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::operator_2
jmp 0x403e97
cmp eax, ebx
jne 0x403fbe
push 0x41c310
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
push 1
push ecx
mov byte [esp + 0x1674], 3
call fcn.004042f0
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x166c], bl
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x13], bl
cmp byte [esp + 0x167c], bl
je 0x403fce
push ebp
call dword [0x417044]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x403fdd
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x166c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x1664]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1660
ret