Function at 0x404110
Capabilities:
Create http request
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x416b51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x430
push ebx
push ebp
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
xor ebp, ebp
push ebx
push str.India_DownLoadAgent
mov dword [esp + 0x44], ebp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x34], edi
je 0x404398
mov eax, dword [esp + 0x44c]
push esi
push ebx
push 0x80000000
push ebx
push ebx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
cmp esi, ebx
je 0x40438c
mov ebp, dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea ecx, [esp + 0x30]
push ebx
lea edx, [esp + 0x44]
push ecx
push edx
push 0x13
push esi
mov dword [esp + 0x44], 0x200
call ebp
test eax, eax
je 0x40420e
lea eax, [esp + 0x40]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0x40]
push ecx
push 0x42279c
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x4041fa
lea edx, [esp + 0x40]
push edx
push 0x422794
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x404348
lea eax, [esp + 0x40]
push eax
push 0x42278c
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x404348
lea ecx, [esp + 0x10]
mov dword [esp + 0x448], 0xffffffff
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x30]
push ebx
lea edx, [esp + 0x30]
push ecx
push edx
push 0x20000005
push esi
call ebp
test eax, eax
je 0x404381
mov eax, dword [esp + 0x454]
push 0x422784
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.MSVCRT.dll__wfopen]
add esp, 8
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x404381
lea ecx, [esp + 0x2b]
push ebx
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x450], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00401e80
push 0x2801
mov byte [esp + 0x44c], 3
mov dword [esp + 0x40], ebx
call sub.MFC42u.DLL_operatornew
lea ecx, [esp + 0x40]
lea edx, [eax + 0x2801]
push ecx
push 0x2801
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edx
call fcn.00408180
mov edi, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov ecx, 0xa00
xor eax, eax
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0x10
lea edx, [esp + 0x14]
stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
push edx
push 0x2800
push eax
push esi
mov dword [esp + 0x24], ebx
call ebp
test eax, eax
je 0x40432a
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40432a
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push ecx
push eax
add edi, eax
push 1
push edx
mov dword [esp + 0x34], edi
call dword [sym.imp.MSVCRT.dll_fwrite]
mov edi, dword [esp + 0x28]
mov ecx, 0xa00
xor eax, eax
add esp, 0x10
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push 0x2800
push ecx
push esi
mov dword [esp + 0x24], ebx
call ebp
test eax, eax
jne 0x4042da
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
cmp edx, eax
jne 0x40435e
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], 1
cmp eax, ebx
je 0x40436f
jmp 0x404366
lea ecx, [esp + 0x10]
mov dword [esp + 0x448], 0xffffffff
call sub.MFC42u.DLL_CString::CString
jmp 0x404381
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40436f
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
mov edi, dword [esp + 0x3c]
add esp, 4
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebp, dword [esp + 0x34]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebp
pop esi
jmp 0x40439a
mov eax, ebp
mov ecx, dword [esp + 0x43c]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x43c
ret