Function at 0x402c42
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push rbp
sub rsp, 0x110
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xa0], rcx
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rcx, str.A_WinHTTP_Example_Program_1.0
call sub.WINHTTP.dll_WinHttpOpen
mov qword [rbp + 0x58], rax
cmp qword [rbp + 0x58], 0
jne 0x402c9f
lea rcx, str.Error:_WinHttpOpen_failed.
call sub.msvcrt.dll_puts
mov eax, 0
jmp 0x4034c5
lea rdx, [0x00407a17]
mov rcx, qword [rbp + 0xa0]
call sub.msvcrt.dll_strstr
add rax, 3
mov qword [rbp + 0x50], rax
cmp qword [rbp + 0x50], 0
jne 0x402ce3
lea rcx, str.Error:_Invalid_URL_format.
call sub.msvcrt.dll_puts
mov rax, qword [rbp + 0x58]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov eax, 0
jmp 0x4034c5
mov rax, qword [rbp + 0x50]
mov edx, 0x2f
mov rcx, rax
call sub.msvcrt.dll_strchr
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x402d25
mov rcx, qword [rbp + 0xa0]
call sub.msvcrt.dll_strlen
mov rdx, rax
mov rax, qword [rbp + 0xa0]
add rax, rdx
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
sub rax, qword [rbp + 0x50]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
add rax, 1
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x40], rax
cmp qword [rbp + 0x40], 0
jne 0x402d71
lea rcx, str.Error:_Memory_allocation_failed.
call sub.msvcrt.dll_puts
mov rax, qword [rbp + 0x58]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov eax, 0
jmp 0x4034c5
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x50]
mov rax, qword [rbp + 0x40]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_strncpy
mov rdx, qword [rbp + 0x40]
mov rax, qword [rbp + 0x48]
add rax, rdx
mov byte [rax], 0
mov rax, qword [rbp + 0x48]
add rax, 1
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x38], rax
cmp qword [rbp + 0x38], 0
jne 0x402ddf
lea rcx, str.Error:_Memory_allocation_failed.
call sub.msvcrt.dll_puts
mov rax, qword [rbp + 0x40]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x58]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov eax, 0
jmp 0x4034c5
mov qword [rbp + 0x80], 0
mov qword [rbp + 0x78], 0
jmp 0x402e43
mov rdx, qword [rbp + 0x40]
mov rax, qword [rbp + 0x78]
add rax, rdx
movzx eax, byte [rax]
movsx eax, al
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll_isspace]
call rax
test eax, eax
jne 0x402e3e
mov rdx, qword [rbp + 0x40]
mov rax, qword [rbp + 0x78]
lea rcx, [rdx + rax]
mov rax, qword [rbp + 0x80]
lea rdx, [rax + 1]
mov qword [rbp + 0x80], rdx
mov rdx, qword [rbp + 0x38]
add rdx, rax
movzx eax, byte [rcx]
mov byte [rdx], al
add qword [rbp + 0x78], 1
mov rax, qword [rbp + 0x78]
cmp rax, qword [rbp + 0x48]
jb 0x402df4
mov rdx, qword [rbp + 0x38]
mov rax, qword [rbp + 0x80]
add rax, rdx
mov byte [rax], 0
mov rax, qword [rbp + 0x38]
mov r8d, 0
mov rdx, rax
mov ecx, 0
call sub.msvcrt.dll_mbstowcs
add rax, 1
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
add rax, rax
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x402ed1
lea rcx, str.Error:_Memory_allocation_failed.
call sub.msvcrt.dll_puts
mov rax, qword [rbp + 0x40]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x38]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x58]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov eax, 0
jmp 0x4034c5
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x38]
mov rax, qword [rbp + 0x28]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_mbstowcs
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x58]
mov r9d, 0
mov r8d, 0x1bb
mov rcx, rax
call sub.WINHTTP.dll_WinHttpConnect
mov qword [rbp + 0x20], rax
cmp qword [rbp + 0x20], 0
jne 0x402f55
lea rcx, str.Error:_WinHttpConnect_failed.
call sub.msvcrt.dll_puts
mov rax, qword [rbp + 0x40]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x38]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x28]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x58]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov eax, 0
jmp 0x4034c5
mov rax, qword [rbp + 0x88]
mov r8d, 0
mov rdx, rax
mov ecx, 0
call sub.msvcrt.dll_mbstowcs
add rax, 1
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
add rax, rax
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x18], 0
jne 0x402fe3
lea rcx, str.Error:_Memory_allocation_failed.
call sub.msvcrt.dll_puts
mov rax, qword [rbp + 0x40]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x38]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x28]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rax, qword [rbp + 0x58]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov eax, 0
jmp 0x4034c5
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x88]
mov rax, qword [rbp + 0x18]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_mbstowcs
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x20]
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
lea rdx, [0x00407a78]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpOpenRequest
mov qword [rbp + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x4030a0
lea rcx, str.Error:_WinHttpOpenRequest_failed.
call sub.msvcrt.dll_puts
mov rax, qword [rbp + 0x40]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x38]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x28]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rax, qword [rbp + 0x58]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov eax, 0
jmp 0x4034c5
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
call sub.WINHTTP.dll_WinHttpSendRequest
test eax, eax
jne 0x403144
lea rcx, str.Error:_WinHttpSendRequest_failed.
call sub.msvcrt.dll_puts
mov rax, qword [rbp + 0x40]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x38]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x28]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rax, qword [rbp + 0x58]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov eax, 0
jmp 0x4034c5
mov rax, qword [rbp + 0x10]
mov edx, 0
mov rcx, rax
call sub.WINHTTP.dll_WinHttpReceiveResponse
test eax, eax
jne 0x4031c3
lea rcx, str.Error:_WinHttpReceiveResponse_failed.
call sub.msvcrt.dll_puts
mov rax, qword [rbp + 0x40]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x38]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x28]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rax, qword [rbp + 0x58]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov eax, 0
jmp 0x4034c5
mov dword [rbp - 0x3c], 0
mov dword [rbp - 0x40], 0
mov qword [rbp + 8], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov dword [rbp - 0x3c], 0
lea rdx, [rbp - 0x3c]
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpQueryDataAvailable
test eax, eax
jne 0x40321d
lea rcx, str.Error:_WinHttpQueryDataAvailable_failed.
call sub.msvcrt.dll_puts
jmp 0x403301
mov eax, dword [rbp - 0x3c]
test eax, eax
je 0x403300
mov eax, dword [rbp - 0x3c]
mov eax, eax
add qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x60]
mov rcx, rax
call sub.msvcrt.dll_realloc
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x403275
lea rcx, str.Error:_Memory_allocation_failed.
call sub.msvcrt.dll_puts
mov rax, qword [rbp + 0x60]
mov rcx, rax
call sub.msvcrt.dll_free
mov qword [rbp + 0x60], 0
jmp 0x403301
mov rax, qword [rbp]
mov qword [rbp + 0x60], rax
mov eax, dword [rbp - 0x3c]
add eax, 1
mov ecx, eax
mov rdx, qword [rbp + 0x60]
mov rax, qword [rbp + 0x70]
add rax, rdx
mov r8, rcx
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov ecx, dword [rbp - 0x3c]
mov rdx, qword [rbp + 0x60]
mov rax, qword [rbp + 0x70]
add rdx, rax
lea r8, [rbp - 0x40]
mov rax, qword [rbp + 0x10]
mov r9, r8
mov r8d, ecx
mov rcx, rax
call sub.WINHTTP.dll_WinHttpReadData
test eax, eax
jne 0x4032ea
lea rcx, str.Error:_WinHttpReadData_failed.
call sub.msvcrt.dll_puts
mov rax, qword [rbp + 0x60]
mov rcx, rax
call sub.msvcrt.dll_free
mov qword [rbp + 0x60], 0
jmp 0x403301
mov eax, dword [rbp - 0x40]
mov eax, eax
add qword [rbp + 0x70], rax
mov eax, dword [rbp - 0x3c]
test eax, eax
jne 0x4031f1
jmp 0x403301
nop
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rax, qword [rbp + 0x58]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
cmp qword [rbp + 0x60], 0
je 0x403490
mov rdx, qword [rbp + 0x60]
mov rax, qword [rbp + 0x70]
add rax, rdx
mov byte [rax], 0
lea rax, str._div_class_tgme_page_title___span_dir_auto__
mov qword [rbp - 8], rax
lea rax, str.__span___div_
mov qword [rbp - 0x10], rax
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x60]
mov rcx, rax
call sub.msvcrt.dll_strstr
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x403484
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.msvcrt.dll_strlen
add qword [rbp - 0x18], rax
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.msvcrt.dll_strstr
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
je 0x403484
mov rax, qword [rbp - 0x20]
sub rax, qword [rbp - 0x18]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
add rax, 1
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x30], 0
je 0x403484
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x30]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_strncpy
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x28]
add rax, rdx
mov byte [rax], 0
mov rax, qword [rbp - 0x30]
mov r8d, 0
mov rdx, rax
mov ecx, 0
call sub.msvcrt.dll_mbstowcs
add rax, 1
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
add rax, rax
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x38], rax
cmp qword [rbp - 0x38], 0
je 0x403484
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x38]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_mbstowcs
mov rax, qword [rbp + 0x60]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x38]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x28]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp - 0x30]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp - 0x38]
jmp 0x4034c5
mov rax, qword [rbp + 0x60]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x40]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x38]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x28]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, 0
add rsp, 0x110
pop rbp
ret