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

Disassembly:
push 0xffffffffffffffff
push 0x4175f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
mov edx, dword [esp + 0x5c]
push ebp
push esi
mov esi, ecx
push edi
push 0
lea ecx, [esp + 0x14]
mov eax, dword [esi + 0x10]
push 0x400040
push ecx
push eax
mov eax, dword [esi + 0x40]
push 0x41eec0
push edx
push 0x41f050
push eax
mov ebp, 1
mov dword [esp + 0x30], 0x41eed8
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edx, eax
test edx, edx
mov dword [esi + 0x44], edx
jne 0x40adda
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x40af6b
mov edi, 0x41eeac
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x80000000
push ecx
push 0x41eeac
push edx
call ebx
test eax, eax
jne 0x40ae0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x40af6b
mov edi, 0x41f030
or ecx, 0xffffffff
xor eax, eax
push 0x20000000
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esi + 0x44]
push 0x41f030
push ecx
call ebx
test eax, eax
jne 0x40ae3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x40af6b
mov edi, 0x41f020
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi + 0x44]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x20000000
push ecx
push 0x41f020
push edx
call ebx
test eax, eax
jne 0x40ae70
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x40af6b
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40ae98
push 0x10000000
push ecx
push eax
mov eax, dword [esi + 0x44]
push eax
call ebx
test eax, eax
jne 0x40ae98
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x40af6b
mov eax, dword [esi + 0x20]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40aec0
push 0x10000000
push ecx
mov ecx, dword [esi + 0x44]
push eax
push ecx
call ebx
test eax, eax
jne 0x40aec0
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x40af6b
push 0x41efec
lea ecx, [esp + 0x6c]
call fcn.00415abc
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x70]
mov ecx, dword [eax - 8]
push edx
push ecx
push eax
mov eax, dword [esi + 0x44]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40aef9
call edi
xor ebp, ebp
mov eax, dword [esi + 0x44]
lea ecx, [esp + 0x14]
push 0
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x13
push eax
mov dword [esp + 0x28], 0x40
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x40af34
call edi
lea ecx, [esp + 0x68]
mov dword [esp + 0x60], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40af6b
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
cmp eax, 0xc8
mov dword [esi + 0x398], eax
mov dword [esp + 0x60], 0xffffffff
lea ecx, [esp + 0x68]
je 0x40af64
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40af6b
call sub.MFC42.DLL_CString::CString
mov eax, ebp
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 0xc