Function at 0x40da16
Capabilities:
Link many functions at runtime

Disassembly:
push 8
mov eax, 0x440d98
call fcn.004266a4
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
cmp dword [esi + 0x4c], edi
je 0x40da3c
push str._ClsWinInetEnvironment::Create_
call fcn.00414978
pop ecx
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
cmp dword [esi + 8], edi
jne 0x40dcb8
cmp dword [esi + 0x4c], edi
je 0x40da5e
push str._ClsWinInetEnvironment::Create_No_hWinModule
call fcn.00414978
pop ecx
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 8], eax
cmp eax, edi
je 0x40dc9e
push str.InternetOpenA
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov dword [esi + 0x18], eax
test eax, eax
jne 0x40da9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push eax
push str._ClsWinInetEnvironment::Create_hWinModule_InternetOpenA_failed_to_load__ld
call fcn.00414978
pop ecx
pop ecx
push 0
call ebx
push str.InternetErrorDlg
push dword [esi + 8]
call edi
mov dword [esi + 0x20], eax
test eax, eax
jne 0x40daca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push eax
push str._ClsWinInetEnvironment::Create_hWinModule_InternetErrorDlg_failed_to_load__ld
call fcn.00414978
pop ecx
pop ecx
push 0
call ebx
push str.HttpQueryInfoA
push dword [esi + 8]
call edi
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x40daf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push eax
push str._ClsWinInetEnvironment::Create_hWinModule_HttpQueryInfoA_failed_to_load__ld
call fcn.00414978
pop ecx
pop ecx
push 0
call ebx
push str.InternetConnectA
push dword [esi + 8]
call edi
mov dword [esi + 0x2c], eax
test eax, eax
jne 0x40db20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push eax
push str._ClsWinInetEnvironment::Create_hWinModule_InternetConnectA_failed_to_load__ld
call fcn.00414978
pop ecx
pop ecx
push 0
call ebx
push str.HttpOpenRequestA
push dword [esi + 8]
call edi
mov dword [esi + 0x30], eax
test eax, eax
jne 0x40db4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push eax
push str._ClsWinInetEnvironment::Create_hWinModule_HttpOpenRequestA_failed_to_load__ld
call fcn.00414978
pop ecx
pop ecx
push 0
call ebx
push str.HttpAddRequestHeadersA
push dword [esi + 8]
call edi
mov dword [esi + 0x34], eax
test eax, eax
jne 0x40db76
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push eax
push str._ClsWinInetEnvironment::Create_hWinModule_HttpAddRequestHeadersA_failed_to_load__ld
call fcn.00414978
pop ecx
pop ecx
push 0
call ebx
push str.HttpSendRequestExA
push dword [esi + 8]
call edi
mov dword [esi + 0x38], eax
test eax, eax
jne 0x40dba1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push eax
push str._ClsWinInetEnvironment::Create_hWinModule_HttpSendRequestExA_failed_to_load__ld
call fcn.00414978
pop ecx
pop ecx
push 0
call ebx
push str.InternetWriteFile
push dword [esi + 8]
call edi
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x40dbcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push eax
push str._ClsWinInetEnvironment::Create_hWinModule_InternetWriteFile_failed_to_load__ld
call fcn.00414978
pop ecx
pop ecx
push 0
call ebx
push str.HttpEndRequestA
push dword [esi + 8]
call edi
mov dword [esi + 0x40], eax
test eax, eax
jne 0x40dbf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push eax
push str._ClsWinInetEnvironment::Create_hWinModule_HttpEndRequestA_failed_to_load__ld
call fcn.00414978
pop ecx
pop ecx
push 0
call ebx
push str.InternetReadFile
push dword [esi + 8]
call edi
mov dword [esi + 0x24], eax
test eax, eax
jne 0x40dc22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push eax
push str._ClsWinInetEnvironment::Create_hWinModule_InternetReadFile_failed_to_load__ld
call fcn.00414978
pop ecx
pop ecx
push 0
call ebx
push str.InternetCloseHandle
push dword [esi + 8]
call edi
mov dword [esi + 0x28], eax
test eax, eax
jne 0x40dc4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push eax
push str._ClsWinInetEnvironment::Create_hWinModule_InternetCloseHandle_failed_to_loaded__ld
call fcn.00414978
pop ecx
pop ecx
push 0
call ebx
push str.InternetQueryOptionA
push dword [esi + 8]
call edi
mov dword [esi + 0x44], eax
test eax, eax
jne 0x40dc78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push eax
push str._ClsWinInetEnvironment::Create_hWinModule_InternetQueryOptionA_failed_to_load__ld
call fcn.00414978
pop ecx
pop ecx
push 0
call ebx
push str.InternetSetOptionA
push dword [esi + 8]
call edi
mov dword [esi + 0x48], eax
test eax, eax
jne 0x40dcb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push eax
push str._ClsWinInetEnvironment::Create_hWinModule_InternetSetOptionA_failed_to_load__ld
jmp 0x40dcb1
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [ebp - 0x14], eax
call edi
push eax
push str._ClsWinInetEnvironment::Create_hWinModule_Failed_to_Load_Library__ld
call fcn.00414978
pop ecx
pop ecx
cmp dword [esi + 4], 0
je 0x40dcdf
cmp dword [ebp - 0x14], 0
mov eax, str.Succeeded
je 0x40dcce
mov eax, str.Failed
push dword [ebp - 0x14]
push eax
push str._ClsWinInetEnvironment__Creating_environment...___s___d__
call fcn.00414978
add esp, 0xc
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
call fcn.00426749
ret