Function at 0x7ff7c8e547e0
Capabilities:
Prepare http request
Read http header
Receive http response

Disassembly:
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x7ff7c8ea3088]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp byte [rcx + 0x10], 0
mov eax, 0x800000
mov rcx, qword [rcx + 8]
mov edx, 0x100
mov r12, qword [rsp + 0xc0]
cmove eax, edx
mov dword [rsp + 0x30], eax
lea rdx, [0x7ff7c8e97e18]
xor edi, edi
mov r15, r9
mov r13, r8
mov qword [rsp + 0x28], rdi
xor r9d, r9d
mov qword [rsp + 0x20], rdi
lea r8, str.getip.php
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
test rax, rax
jne 0x7ff7c8e5486d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._Error:_WinHttpOpenRequest_failed_with_error_code___d_n
call fcn.7ff7c8e566b0
movzx eax, byte [rsp + 0x48]
jmp 0x7ff7c8e54a86
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], edi
mov rcx, r14
mov qword [rsp + 0xa8], rbx
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov ebx, eax
test eax, eax
jne 0x7ff7c8e548b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._Error:_WinHttpSendRequest_failed_with_error_code___d_n
call fcn.7ff7c8e566b0
jmp 0x7ff7c8e54a72
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov ebx, eax
test eax, eax
jne 0x7ff7c8e548dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._Error:_WinHttpReceiveResponse_failed_with_error_code___d_n
call fcn.7ff7c8e566b0
jmp 0x7ff7c8e54a72
mov qword [rsp + 0x68], rbp
mov ebp, edi
mov qword [rsp + 0x60], rsi
mov rsi, rdi
mov dword [rsp + 0x4c], edi
nop
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], edi
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x7ff7c8e549ea
test rsi, rsi
jne 0x7ff7c8e54931
mov ecx, dword [rsp + 0x40]
inc ecx
call fcn.7ff7c8e592d4
mov r8d, dword [rsp + 0x40]
xor edx, edx
inc r8d
mov rcx, rax
mov rsi, rax
call fcn.7ff7c8e5c560
jmp 0x7ff7c8e54964
test ebp, ebp
je 0x7ff7c8e54964
mov ecx, dword [rsp + 0x40]
inc ecx
add ecx, ebp
mov ebx, ecx
call fcn.7ff7c8e592d4
mov r9d, ebp
mov r8, rsi
mov edx, ebx
mov rcx, rax
mov rdi, rax
call fcn.7ff7c8e54d60
mov rcx, rsi
call fcn.7ff7c8e5903c
mov rsi, rdi
xor edi, edi
mov ecx, dword [rsp + 0x40]
inc ecx
call fcn.7ff7c8e592d4
mov rbx, rax
test rax, rax
je 0x7ff7c8e549e6
mov r8d, dword [rsp + 0x40]
xor edx, edx
inc r8d
mov rcx, rax
call fcn.7ff7c8e5c560
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x4c]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x7ff7c8e549d0
mov edx, dword [rsp + 0x40]
mov r8, rbx
mov ecx, ebp
mov r9d, edx
add rcx, rsi
call fcn.7ff7c8e54d60
add ebp, dword [rsp + 0x40]
mov rcx, rbx
call fcn.7ff7c8e5903c
cmp dword [rsp + 0x40], 0
ja 0x7ff7c8e548f0
jmp 0x7ff7c8e549ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.7ff7c8e566b0
jmp 0x7ff7c8e549ea
mov dword [rsp + 0x40], edi
test r13, r13
je 0x7ff7c8e54a00
mov qword [r13], rsi
test rsi, rsi
je 0x7ff7c8e54a08
mov eax, ebp
mov byte [rax + rsi], 0
jmp 0x7ff7c8e54a08
mov rcx, rsi
call fcn.7ff7c8e5903c
mov rsi, qword [rsp + 0x60]
test r15, r15
je 0x7ff7c8e54a15
mov dword [r15], ebp
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x44], edi
mov edx, 0x20000013
mov dword [rsp + 0x48], 4
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov rbp, qword [rsp + 0x68]
mov ebx, eax
test eax, eax
jne 0x7ff7c8e54a65
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._Error:_WinHttpReceiveResponse_failed_with_error_code___d_n
call fcn.7ff7c8e566b0
test r12, r12
je 0x7ff7c8e54a72
mov eax, dword [rsp + 0x44]
mov dword [r12], eax
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
movzx eax, bl
mov rbx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.7ff7c8e589f0
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
ret