Function at 0x409360
Capabilities:
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x4177ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
lea esi, [ebp + 0x358]
push esi
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x168], 0
test eax, eax
mov dword [esp + 0x1c], 0x41fed8
mov edi, 0x400000
je 0x4093b5
mov edi, 0x4400100
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x4093c2
or edi, 0x200000
lea eax, [esp + 0x18]
push 8
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push str.https:__
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4093f9
or edi, 0x800000
mov ecx, dword [ebp + 0x40]
test ecx, ecx
je 0x40963d
mov eax, dword [ebp + 0x10]
push 0
lea edx, [esp + 0x20]
push edi
push edx
push eax
mov eax, dword [esp + 0x180]
push str.HTTP_1.0
push eax
push 0x41febc
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edx, eax
test edx, edx
mov dword [ebp + 0x44], edx
je 0x409637
or ebx, 0xffffffff
mov edi, str.Accept:___r_n
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push 0x80000000
not ecx
dec ecx
push ecx
push str.Accept:___r_n
push edx
call esi
test eax, eax
jne 0x409471
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x168], ebx
jmp 0x409648
mov eax, dword [esp + 0x17c]
mov ecx, dword [esp + 0x178]
test eax, eax
ja 0x409487
test ecx, ecx
jbe 0x4094d0
push eax
push ecx
lea ecx, [esp + 0x68]
push str.Range:bytes_I64d_
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x70]
mov ecx, ebx
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x44]
push 0x10000000
not ecx
dec ecx
lea edx, [esp + 0x64]
push ecx
push edx
push eax
call esi
test eax, eax
jne 0x4094d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x168], ebx
jmp 0x409648
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4094fd
push 0x10000000
push ecx
mov ecx, dword [ebp + 0x44]
push eax
push ecx
call esi
test eax, eax
jne 0x4094fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x168], ebx
jmp 0x409648
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40952a
mov edx, dword [ebp + 0x44]
push 0x10000000
push ecx
push eax
push edx
call esi
test eax, eax
jne 0x40952a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x168], ebx
jmp 0x409648
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x409557
push 0x10000000
push ecx
push eax
mov eax, dword [ebp + 0x44]
push eax
call esi
test eax, eax
jne 0x409557
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x168], ebx
jmp 0x409648
mov ecx, dword [ebp + 0x44]
mov esi, dword [sym.imp.WININET.dll_HttpSendRequestA]
push 0
push 0
push 0
push 0
push ecx
call esi
test eax, eax
jne 0x40958e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
jne 0x40954b
mov edx, dword [ebp + 0x44]
push 0
push 0
push 0
push 0
push edx
call esi
test eax, eax
je 0x40956f
mov eax, dword [esp + 0x180]
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
mov dword [esp + 0x14], 0x40
je 0x4095e5
mov edx, dword [ebp + 0x44]
lea eax, [esp + 0x14]
push 0
lea ecx, [esp + 0x24]
push eax
push ecx
push 1
push edx
call ebx
test eax, eax
je 0x4095e5
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x180]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x44]
lea ecx, [esp + 0x14]
push 0
lea edx, [esp + 0x24]
push ecx
push edx
push 0x13
push eax
mov dword [esp + 0x28], 0x40
call ebx
test eax, eax
je 0x409637
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
mov edx, dword [esp + 0x178]
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x168], 0xffffffff
mov dword [edx], eax
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x409653
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x168], 0xffffffff
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x15c
ret 0x14