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

Disassembly:
push 0xffffffffffffffff
push 0x41237b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
lea eax, [esi + 0x358]
push eax
call fcn.00410d8c
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x18], 0x418e54
test eax, eax
mov edx, 0x400000
je 0x40889a
mov edx, 0x4400100
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4088a7
or edx, 0x200000
mov ecx, dword [esi + 0x40]
test ecx, ecx
jne 0x4088c9
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x408b38
mov eax, dword [esi + 0x10]
push 0
push edx
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x17c]
push str.HTTP_1.0
push eax
push 0x418e44
push ecx
call dword [0x413598]
mov edx, eax
test edx, edx
mov dword [esi + 0x44], edx
jne 0x408918
call dword [0x413074]
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x408b38
or ebp, 0xffffffff
mov edi, str.Accept:___r_n
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [0x413594]
push 0x80000000
not ecx
dec ecx
push ecx
push str.Accept:___r_n
push edx
call ebx
test eax, eax
je 0x4089d7
mov eax, dword [esp + 0x174]
test eax, eax
jbe 0x408986
push eax
lea ecx, [esp + 0x60]
push str.Range:bytes_d_
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x68]
mov ecx, ebp
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x44]
push 0x10000000
not ecx
dec ecx
lea edx, [esp + 0x60]
push ecx
push edx
push eax
call ebx
test eax, eax
je 0x4089d7
mov eax, dword [esi + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4089a1
push 0x10000000
push ecx
mov ecx, dword [esi + 0x44]
push eax
push ecx
call ebx
test eax, eax
je 0x4089d7
mov eax, dword [esi + 0x20]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4089bc
mov edx, dword [esi + 0x44]
push 0x10000000
push ecx
push eax
push edx
call ebx
test eax, eax
je 0x4089d7
mov eax, dword [esi + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4089f4
push 0x10000000
push ecx
push eax
mov eax, dword [esi + 0x44]
push eax
call ebx
test eax, eax
jne 0x4089f4
call dword [0x413074]
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], ebp
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x408b38
mov ecx, dword [esi + 0x44]
mov edi, dword [0x413590]
push 0
push 0
push 0
push 0
push ecx
call edi
mov ebp, dword [0x413074]
test eax, eax
jne 0x408a31
call ebp
cmp eax, 0x2f00
jne 0x408abb
mov edx, dword [esi + 0x44]
push 0
push 0
push 0
push 0
push edx
call edi
test eax, eax
je 0x408a12
mov edx, dword [esi + 0x44]
mov edi, dword [0x413578]
lea eax, [esp + 0x14]
push 0
lea ecx, [esp + 0x20]
push eax
push ecx
mov ebx, 0x40
push 0x13
push edx
mov dword [esp + 0x28], ebx
call edi
test eax, eax
jne 0x408a75
call ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x408b38
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
mov ecx, dword [esp + 0x174]
mov dword [esi + 0x38c], eax
add esp, 4
mov dword [ecx], eax
mov eax, dword [esi + 0x38c]
cmp eax, 0xc8
je 0x408ad3
cmp eax, 0xce
je 0x408ad3
cmp eax, 0x12e
je 0x408ab4
cmp eax, 0x12f
jne 0x408abb
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x408ad3
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x408b38
mov ecx, dword [esi + 0x44]
lea edx, [esp + 0x14]
push 0
lea eax, [esp + 0x20]
push edx
push eax
push 1
push ecx
mov dword [esp + 0x28], ebx
call edi
test eax, eax
jne 0x408af3
call ebp
jmp 0x408b1f
mov edx, dword [esp + 0x178]
test edx, edx
je 0x408b1f
lea edi, [esp + 0x1c]
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 + 0x164], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0x10