Function at 0x40da3b
Capabilities:
Link many functions at runtime

Disassembly:
push 8
mov eax, 0x42df18
call fcn.00415554
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
cmp dword [esi + 0x4c], edi
je 0x40da61
push str._ClsWinInetEnvironment::Create_
call fcn.004140dd
pop ecx
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
cmp dword [esi + 8], edi
jne 0x40dcdd
cmp dword [esi + 0x4c], edi
je 0x40da83
push str._ClsWinInetEnvironment::Create_No_hWinModule
call fcn.004140dd
pop ecx
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 8], eax
cmp eax, edi
je 0x40dcc3
push str.InternetOpenA
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov dword [esi + 0x18], eax
test eax, eax
jne 0x40dac4
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.004140dd
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 0x40daef
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.004140dd
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 0x40db1a
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.004140dd
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 0x40db45
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.004140dd
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 0x40db70
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.004140dd
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 0x40db9b
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.004140dd
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 0x40dbc6
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.004140dd
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 0x40dbf1
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.004140dd
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 0x40dc1c
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.004140dd
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 0x40dc47
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.004140dd
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 0x40dc72
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.004140dd
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 0x40dc9d
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.004140dd
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 0x40dcdd
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 0x40dcd6
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.004140dd
pop ecx
pop ecx
cmp dword [esi + 4], 0
je 0x40dd04
cmp dword [ebp - 0x14], 0
mov eax, str.Succeeded
je 0x40dcf3
mov eax, str.Failed
push dword [ebp - 0x14]
push eax
push str._ClsWinInetEnvironment__Creating_environment...___s___d__
call fcn.004140dd
add esp, 0xc
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
call fcn.004155f9
ret