Function at 0x40aae0
Capabilities:
Check http status code
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x41795b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
lea edi, [esi + 0x354]
push edi
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x28]
mov dword [esp + 0x168], 0
test eax, eax
mov dword [esp + 0x1c], 0x41fed8
mov ebp, 0x400000
je 0x40ab35
mov ebp, 0x4400100
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x40ab42
or ebp, 0x200000
lea eax, [esp + 0x18]
push 8
push eax
mov ecx, edi
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 0x40ab79
or ebp, 0x800000
mov ecx, dword [esi + 0x3c]
test ecx, ecx
jne 0x40ab9b
lea ecx, [esp + 0x10]
mov dword [esp + 0x168], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40ae26
mov eax, dword [esi + 0x10]
push 0
lea edx, [esp + 0x20]
push ebp
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 [esi + 0x40], edx
jne 0x40abea
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
mov dword [esp + 0x168], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40ae26
or ebp, 0xffffffff
mov edi, str.Accept:___r_n
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push 0x80000000
not ecx
dec ecx
push ecx
push str.Accept:___r_n
push edx
call ebx
test eax, eax
je 0x40acb5
mov eax, dword [esp + 0x17c]
mov ecx, dword [esp + 0x178]
test eax, eax
ja 0x40ac2d
test ecx, ecx
jbe 0x40ac64
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, ebp
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x40]
push 0x10000000
not ecx
dec ecx
lea edx, [esp + 0x64]
push ecx
push edx
push eax
call ebx
test eax, eax
je 0x40acb5
mov eax, dword [esi + 0x20]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40ac7f
push 0x10000000
push ecx
mov ecx, dword [esi + 0x40]
push eax
push ecx
call ebx
test eax, eax
je 0x40acb5
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40ac9a
mov edx, dword [esi + 0x40]
push 0x10000000
push ecx
push eax
push edx
call ebx
test eax, eax
je 0x40acb5
mov eax, dword [esi + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40acd2
push 0x10000000
push ecx
push eax
mov eax, dword [esi + 0x40]
push eax
call ebx
test eax, eax
jne 0x40acd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
mov dword [esp + 0x168], ebp
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40ae26
mov ecx, dword [esi + 0x40]
mov edi, dword [sym.imp.WININET.dll_HttpSendRequestA]
push 0
push 0
push 0
push 0
push ecx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40ad0f
call ebp
cmp eax, 0x2f00
jne 0x40ad99
mov edx, dword [esi + 0x40]
push 0
push 0
push 0
push 0
push edx
call edi
test eax, eax
je 0x40acf0
mov edx, dword [esi + 0x40]
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [esp + 0x14]
push 0
lea ecx, [esp + 0x24]
push eax
push ecx
mov ebx, 0x40
push 0x13
push edx
mov dword [esp + 0x28], ebx
call edi
test eax, eax
jne 0x40ad53
call ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x168], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40ae26
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
mov ecx, dword [esp + 0x178]
mov dword [esi + 0x390], eax
add esp, 4
mov dword [ecx], eax
mov eax, dword [esi + 0x390]
cmp eax, 0xc8
je 0x40adb1
cmp eax, 0xce
je 0x40adb1
cmp eax, 0x12e
je 0x40ad92
cmp eax, 0x12f
jne 0x40ad99
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x40adb1
lea ecx, [esp + 0x10]
mov dword [esp + 0x168], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40ae26
mov ecx, dword [esi + 0x40]
lea edx, [esp + 0x14]
push 0
lea eax, [esp + 0x24]
push edx
push eax
push 1
push ecx
mov dword [esp + 0x28], ebx
call edi
test eax, eax
jne 0x40add1
call ebp
jmp 0x40ae0d
lea edx, [esp + 0x20]
lea ecx, [esi + 0x394]
push edx
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x180]
test edx, edx
je 0x40ae0d
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, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
mov dword [esp + 0x168], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x15c
ret 0x14