Function at 0x41a25a
Capabilities:
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x10000
mov dword [esp + 4], 0x41a1ac
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpSetStatusCallback
sub esp, 0x10
movzx eax, byte [0x4670e4]
test al, al
je 0x41a2ce
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.Connecting_to__s:_d..._n
call fcn.0041a0f0
mov eax, dword [ebp + 0x10]
movzx eax, ax
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpConnect
sub esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x41a35c
movzx eax, byte [0x4670e4]
test al, al
je 0x41a31c
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov dword [esp], str.Performing_request__s..._n
call fcn.0041a0f0
mov dword [esp + 0x18], 0x800000
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x44a61c
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpOpenRequest
sub esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41a416
movzx eax, byte [0x4670e4]
test al, al
je 0x41a37d
mov dword [esp], str.Sending_request_..._n
call fcn.0041a0f0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x2f
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpSetOption
sub esp, 0x10
cmp dword [ebp + 0x18], 0
je 0x41a3d5
mov dword [ebp - 0x3c], 0x100
mov dword [esp + 0xc], 4
lea eax, [ebp - 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x1f
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpSetOption
sub esp, 0x10
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpSendRequest
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41a527
cmp dword [ebp + 0x18], 0
je 0x41a527
mov dword [ebp - 0x44], 4
lea eax, [ebp - 0x44]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x40]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4e
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpQueryOption
sub esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x41a46f
mov dword [esp], str.Cannot_get_context_n
call fcn.0041a0f0
call fcn.00411b5a
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0xc0000
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
call eax
sub esp, 0x18
mov dword [ebp - 0x28], eax
mov dword [esp + 0x10], str.ROOT
mov dword [esp + 0xc], 0x21000
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0xd
mov eax, dword [sym.imp.CRYPT32.dll_CertOpenStore]
call eax
sub esp, 0x14
mov dword [ebp - 0x2c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov eax, dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
call eax
sub esp, 4
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
mov eax, dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
call eax
sub esp, 4
cmp dword [ebp - 0xc], 0
je 0x41a55d
movzx eax, byte [0x4670e4]
test al, al
je 0x41a544
mov dword [esp], str.Waiting_for_response...._n
call fcn.0041a0f0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpReceiveResponse
sub esp, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0xc], 0
je 0x41a601
mov dword [ebp - 0x30], 0x1000
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
add eax, 0x1000
cmp dword [ebp - 0x1c], eax
jae 0x41a5a5
add dword [ebp - 0x1c], 0x1000
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add edx, eax
lea eax, [ebp - 0x38]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1000
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpReadData
sub esp, 0x10
test eax, eax
sete al
test al, al
je 0x41a5e7
mov dword [ebp - 0x38], 0xffffffff
jmp 0x41a5ed
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x41a5f6
jmp 0x41a57c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add eax, edx
mov byte [eax], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0xc], 0
jne 0x41a7f2
cmp dword [ebp - 0x34], 0x2efd
jne 0x41a62f
mov dword [esp], str.Error:_Cannot_connect_n
call fcn.00411655
jmp 0x41a7ed
cmp dword [ebp - 0x34], 0x2f0c
jne 0x41a649
mov dword [esp], str.Error:_Client_CERT_required_n
call fcn.00411655
jmp 0x41a7ed
cmp dword [ebp - 0x34], 0x2efe
jne 0x41a663
mov dword [esp], str.Error:_Connection_error_n
call fcn.00411655
jmp 0x41a7ed
cmp dword [ebp - 0x34], 0x2ef3
jne 0x41a67d
mov dword [esp], str.Error:_ERROR_WINHTTP_INCORRECT_HANDLE_STATE_n
call fcn.00411655
jmp 0x41a7ed
cmp dword [ebp - 0x34], 0x2ef2
jne 0x41a697
mov dword [esp], str.Error:_ERROR_WINHTTP_INCORRECT_HANDLE_TYPE_n
call fcn.00411655
jmp 0x41a7ed
cmp dword [ebp - 0x34], 0x2ee4
jne 0x41a6b1
mov dword [esp], str.Error:_ERROR_WINHTTP_INTERNAL_ERROR_n
call fcn.00411655
jmp 0x41a7ed
cmp dword [ebp - 0x34], 0x2ee5
jne 0x41a6cb
mov dword [esp], str.Error:_ERROR_WINHTTP_INVALID_URL_n
call fcn.00411655
jmp 0x41a7ed
cmp dword [ebp - 0x34], 0x2eef
jne 0x41a6e5
mov dword [esp], str.Error:_ERROR_WINHTTP_LOGIN_FAILURE_n
call fcn.00411655
jmp 0x41a7ed
cmp dword [ebp - 0x34], 0x2ee7
jne 0x41a6ff
mov dword [esp], str.Error:_ERROR_WINHTTP_NAME_NOT_RESOLVED_n
call fcn.00411655
jmp 0x41a7ed
cmp dword [ebp - 0x34], 0x2ef1
jne 0x41a719
mov dword [esp], str.Error:_ERROR_WINHTTP_OPERATION_CANCELLED_n
call fcn.00411655
jmp 0x41a7ed
cmp dword [ebp - 0x34], 0x2f98
jne 0x41a733
mov dword [esp], str.Error:_ERROR_WINHTTP_RESPONSE_DRAIN_OVERFLOW_n
call fcn.00411655
jmp 0x41a7ed
cmp dword [ebp - 0x34], 0x2f8f
jne 0x41a74d
mov dword [esp], str.Error:_ERROR_WINHTTP_SECURE_FAILURE_n
call fcn.00411655
jmp 0x41a7ed
cmp dword [ebp - 0x34], 0x2eec
jne 0x41a767
mov dword [esp], str.Error:_ERROR_WINHTTP_SHUTDOWN_n
call fcn.00411655
jmp 0x41a7ed
cmp dword [ebp - 0x34], 0x2ee2
jne 0x41a77e
mov dword [esp], str.Error:_ERROR_WINHTTP_TIMEOUT_n
call fcn.00411655
jmp 0x41a7ed
cmp dword [ebp - 0x34], 0x2ee6
jne 0x41a795
mov dword [esp], str.Error:_ERROR_WINHTTP_UNRECOGNIZED_SCHEME_n
call fcn.00411655
jmp 0x41a7ed
cmp dword [ebp - 0x34], 8
jne 0x41a7a9
mov dword [esp], str.Error:_ERROR_NOT_ENOUGH_MEMORY_n
call fcn.00411655
jmp 0x41a7ed
cmp dword [ebp - 0x34], 0x57
jne 0x41a7bd
mov dword [esp], str.Error:_ERROR_INVALID_PARAMETER_n
call fcn.00411655
jmp 0x41a7ed
cmp dword [ebp - 0x34], 0x2f00
jne 0x41a7d4
mov dword [esp], str.Error:__ERROR_WINHTTP_RESEND_REQUEST_n
call fcn.00411655
jmp 0x41a7ed
cmp dword [ebp - 0x34], 0
je 0x41a7ed
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
mov dword [esp], str.Unkonwn_error__d_n
call fcn.00411655
call fcn.00411b5a
cmp dword [ebp - 0x10], 0
je 0x41a806
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpCloseHandle
sub esp, 4
cmp dword [ebp - 0x20], 0
je 0x41a81a
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpCloseHandle
sub esp, 4
cmp dword [ebp + 8], 0
je 0x41a82e
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpCloseHandle
sub esp, 4
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
call eax
sub esp, 4
cmp dword [ebp + 0x1c], 0
je 0x41a84c
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
leave
ret