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

Disassembly:
push 0xffffffffffffffff
push 0x44bd0b
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 sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x18], 0x45fa90
test eax, eax
mov edx, 0x400000
je 0x4362ba
mov edx, 0x4400100
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4362c7
or edx, 0x200000
mov ecx, dword [esi + 0x40]
test ecx, ecx
jne 0x4362e9
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x436558
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 0x45fa80
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edx, eax
test edx, edx
mov dword [esi + 0x44], edx
jne 0x436338
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x436558
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 0x4363f7
mov eax, dword [esp + 0x174]
test eax, eax
jbe 0x4363a6
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 0x4363f7
mov eax, dword [esi + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4363c1
push 0x10000000
push ecx
mov ecx, dword [esi + 0x44]
push eax
push ecx
call ebx
test eax, eax
je 0x4363f7
mov eax, dword [esi + 0x20]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4363dc
mov edx, dword [esi + 0x44]
push 0x10000000
push ecx
push eax
push edx
call ebx
test eax, eax
je 0x4363f7
mov eax, dword [esi + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x436414
push 0x10000000
push ecx
push eax
mov eax, dword [esi + 0x44]
push eax
call ebx
test eax, eax
jne 0x436414
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], ebp
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x436558
mov ecx, dword [esi + 0x44]
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 0x436451
call ebp
cmp eax, 0x2f00
jne 0x4364db
mov edx, dword [esi + 0x44]
push 0
push 0
push 0
push 0
push edx
call edi
test eax, eax
je 0x436432
mov edx, dword [esi + 0x44]
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
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 0x436495
call ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x436558
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 0x4364f3
cmp eax, 0xce
je 0x4364f3
cmp eax, 0x12e
je 0x4364d4
cmp eax, 0x12f
jne 0x4364db
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x4364f3
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x436558
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 0x436513
call ebp
jmp 0x43653f
mov edx, dword [esp + 0x178]
test edx, edx
je 0x43653f
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