Function at 0x408c10
Capabilities:
Connect to http server
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x40d4c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov eax, dword [esp + 0x268]
xor ebp, ebp
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x260], ebp
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov eax, 1
lea ebx, [esi + 0x4c]
push ebx
mov byte [esp + 0x260], al
mov dword [esp + 0x1c], eax
lea edi, [esi + 0x48]
push edi
lea eax, [esi + 0x44]
lea ecx, [esi + 0x40]
push eax
push ecx
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call sub.MFC71.DLL_AfxParseURL
test eax, eax
je 0x408eaf
mov edi, edi
call sub.MFC71.DLL_AfxGetModuleState
mov eax, dword [eax + 0x10]
push ebp
push ebp
push ebp
push ebp
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebp
mov dword [esi + 0x24], eax
je 0x408eaf
mov ecx, dword [esi + 0x40]
push esi
push ebp
xor edx, edx
mov dx, word [ebx]
push ecx
push ebp
push ebp
lea ecx, [esi + 0x44]
push edx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebp
mov dword [esi + 0x28], eax
jne 0x408ce4
mov ecx, dword [esi + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], ebp
push edi
lea ecx, [esp + 0x14]
call dword [0x40e230]
push 0x2f
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
sub ebx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
add ebx, eax
push ebx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Right]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x260], 2
call dword [0x40e230]
mov bl, 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x25c], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x2f
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
inc eax
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [esi + 0x3c]
mov byte [esp + 0x260], 3
call dword [0x40e230]
lea ecx, [esp + 0x20]
mov byte [esp + 0x25c], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esi + 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea edx, [esp + 0x154]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
cmp dword [esp + 0x18], ebp
je 0x408dc8
push str..zip
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x154]
push edx
mov ebx, eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
call sub.MFC71.DLL_CFile::GetStatus
push ebx
mov ecx, esi
mov dword [esp + 0x20], ebp
call fcn.004076a0
test eax, eax
je 0x408e35
push ebp
lea eax, [esp + 0x154]
push eax
mov ecx, esi
call fcn.00407dd0
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x2c]
cmp eax, ebp
je 0x408e35
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call ebx
mov dword [esi + 0x2c], ebp
jmp 0x408e3b
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esi + 0x2c]
cmp eax, ebp
je 0x408e48
push eax
call ebx
mov dword [esi + 0x2c], ebp
mov eax, dword [esi + 0x28]
cmp eax, ebp
je 0x408e55
push eax
call ebx
mov dword [esi + 0x28], ebp
mov eax, dword [esi + 0x24]
cmp eax, ebp
je 0x408e62
push eax
call ebx
mov dword [esi + 0x24], ebp
mov ebx, dword [esp + 0x1c]
cmp ebx, ebp
jne 0x408ec7
cmp dword [esp + 0x18], ebp
je 0x408f21
mov ecx, dword [esp + 0x264]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea ebx, [esi + 0x4c]
push ebx
push edi
lea eax, [esi + 0x44]
push eax
lea eax, [esi + 0x40]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], ebp
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call sub.MFC71.DLL_AfxParseURL
test eax, eax
jne 0x408c90
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x408f37
lea edx, [esp + 0x10]
push edx
lea ecx, [esi + 0x38]
call dword [0x40e230]
mov edi, dword [esp + 0x18]
cmp edi, ebp
je 0x408f19
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str..xml
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00409de0
add esp, 8
test eax, eax
jne 0x408eaf
push edi
mov ecx, esi
call fcn.00408b80
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, ebx
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x250
ret 8