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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2080
call fcn.0043d890
mov eax, dword [0x4ef340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x2078], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x206c], eax
mov eax, dword [ebp + 0x18]
push 1
mov dword [ebp - 0x2068], ebx
mov dword [ebp - 0x2060], esi
mov dword [ebp - 0x207c], eax
mov dword [ebp - 0x2080], edi
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40c49b
lea eax, [ebp - 0x2060]
push eax
push str.CMcHttp::SendRequest_called_with_url__s
push 0x246
push str.CMcHttp::SendRequest
push str...includeMcHttp3.cpp
push 1
call fcn.00402fc0
mov esi, dword [ebp - 0x2060]
add esp, 0x18
xor eax, eax
mov dword [ebp - 0x2058], 0x4b57bc
mov dword [edi], eax
mov edi, eax
push 0x824
mov dword [ebp - 0x2054], eax
mov dword [ebp - 0x2050], eax
mov dword [ebp - 0x2060], eax
lea eax, [ebp - 0x204c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
lea eax, [ebp - 0x1004]
mov ecx, ebx
push eax
lea eax, [ebp - 0x204c]
push eax
call fcn.0040ca04
mov esi, eax
mov dword [ebp - 0x205c], esi
test esi, esi
jne 0x40c6f1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x2068]
mov ecx, esi
push 0
call fcn.0040c9b7
push eax
lea eax, [ebp - 0x2058]
push eax
push 0
push str.HTTP_1.1
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x2078]
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
je 0x40c856
mov eax, dword [ebp - 0x206c]
test eax, eax
je 0x40c56a
push eax
call fcn.00443c45
pop ecx
test eax, eax
je 0x40c56a
push dword [ebp + 0x14]
mov eax, dword [ebp - 0x206c]
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x40c748
push dword [ebp + 0x1c]
push dword [ebp - 0x207c]
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x40c608
call ebx
mov esi, eax
mov dword [ebp - 0x205c], esi
cmp esi, 0x3e5
je 0x40c602
cmp dword [ebp - 0x2060], 3
jae 0x40c771
push 1
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40c5d6
lea eax, [ebp - 0x2060]
push eax
push str.Calling__Init_attempt:__ld
push 0x282
push str.CMcHttp::SendRequest
push str...includeMcHttp3.cpp
push 1
call fcn.00402fc0
add esp, 0x18
inc dword [ebp - 0x2060]
and dword [ebp - 0x2064], 0
and dword [ebp - 0x2070], 0
push edi
mov dword [ebp - 0x2074], 4
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor edi, edi
jmp 0x40c6c2
mov esi, dword [ebp - 0x2068]
and dword [ebp - 0x2064], 0
lea eax, [ebp - 0x2070]
and dword [ebp - 0x2070], 0
push eax
lea eax, [ebp - 0x2074]
mov dword [ebp - 0x2074], 4
push eax
lea eax, [ebp - 0x2064]
push eax
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40c826
mov eax, dword [ebp - 0x2064]
cmp eax, 0x12d
je 0x40c695
cmp eax, 0x12e
je 0x40c695
cmp eax, 0x194
je 0x40c793
cmp dword [ebp + 0x20], 0
jne 0x40c679
cmp eax, 0xc8
jne 0x40c793
push dword [ebp - 0x2080]
push esi
push edi
call fcn.0040b150
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40c733
jmp 0x40c6c2
push 0x1048
lea eax, [ebp - 0x204c]
mov ecx, esi
push eax
push edi
call fcn.0040c91a
mov esi, eax
push edi
mov dword [ebp - 0x205c], esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor edi, edi
test esi, esi
jne 0x40c800
push dword [ebp - 0x2060]
mov ecx, dword [ebp - 0x2068]
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x204c]
push eax
call fcn.0040ca04
mov esi, eax
mov dword [ebp - 0x205c], esi
test esi, esi
je 0x40c4fc
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40c728
lea eax, [ebp - 0x205c]
push eax
push str._Init_returned_error__ld
push 0x25b
push str.CMcHttp::SendRequest
push str...includeMcHttp3.cpp
push 4
call fcn.00402fc0
mov esi, dword [ebp - 0x205c]
add esp, 0x18
test edi, edi
je 0x40c733
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043cfdf
mov esp, ebp
pop ebp
ret 0x20
call ebx
mov esi, eax
push 4
mov dword [ebp - 0x205c], esi
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40c728
lea eax, [ebp - 0x205c]
push eax
push str.HttpAddRequestHeaders_returned_error__ld
push 0x26d
jmp 0x40c70e
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40c728
lea eax, [ebp - 0x205c]
push eax
push str.HttpSendRequest_returned_error__ld
push 0x290
jmp 0x40c70e
push 4
pop ebx
push ebx
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40c7c5
lea eax, [ebp - 0x2064]
push eax
push str.HttpQueryInfo_dwStatus__lu
push 0x2bb
push str.CMcHttp::SendRequest
push str...includeMcHttp3.cpp
push ebx
call fcn.00402fc0
add esp, 0x18
mov esi, 0x2f78
push ebx
mov dword [ebp - 0x205c], esi
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40c728
lea eax, [ebp - 0x205c]
push eax
push str.SendRequest_returning_error__lu
push 0x2bd
push str.CMcHttp::SendRequest
push str...includeMcHttp3.cpp
push ebx
jmp 0x40c71a
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40c733
lea eax, [ebp - 0x205c]
push eax
push str._GetRedirectedUrl_returned_error__ld
push 0x2aa
jmp 0x40c70e
call ebx
mov esi, eax
push 4
mov dword [ebp - 0x205c], esi
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40c728
lea eax, [ebp - 0x205c]
push eax
push str.HttpQueryInfo_returned_error__ld
push 0x29d
jmp 0x40c70e
call ebx
mov esi, eax
push 4
mov dword [ebp - 0x205c], esi
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40c733
lea eax, [ebp - 0x205c]
push eax
push str.HttpOpenRequest_returned_error__ld
push 0x264
push str.CMcHttp::SendRequest
push str...includeMcHttp3.cpp
push 4
call fcn.00402fc0
mov esi, dword [ebp - 0x205c]
add esp, 0x18
jmp 0x40c733