Function at 0x140061590
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
sub rsp, 0x528
mov rax, rcx
mov r8, rcx
mov qword [rsp + 0x520], r8
mov byte [rsp + 0x51f], 0
mov qword [rsp + 0x150], rcx
mov qword [rsp + 0x148], rdx
mov qword [rsp + 0x140], rax
call fcn.140012650
test byte [0x140162aca], 1
je 0x1400617ea
cmp qword [0x140162ad0], 0
je 0x1400615f2
mov rcx, qword [0x140162ad0]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rax, [0x140162970]
add rax, 0xe0
mov rcx, rax
lea rdx, [0x1401193e0]
call fcn.140022590
test al, 1
jne 0x14006161b
jmp 0x14006163d
lea rax, [0x140162970]
add rax, 0xe0
mov rcx, rax
call fcn.1400073b0
mov qword [rsp + 0x138], rax
jmp 0x14006164e
xor eax, eax
mov ecx, eax
mov qword [rsp + 0x138], rcx
jmp 0x14006164e
mov rax, qword [rsp + 0x138]
mov edx, dword [0x140162af0]
lea rcx, [0x140162970]
mov qword [rsp + 0x130], rax
mov dword [rsp + 0x12c], edx
call fcn.1400073b0
xor edx, edx
mov r9d, edx
xor edx, edx
mov rcx, rax
mov r8d, dword [rsp + 0x12c]
mov dword [rsp + 0x128], edx
mov edx, r8d
mov rax, qword [rsp + 0x130]
mov r8, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [0x140162ad0], rax
cmp qword [0x140162ad0], 0
je 0x1400617ae
lea rax, [0x140162970]
add rax, 0xe0
mov rcx, rax
lea rdx, [0x1401193e0]
call fcn.140022590
test al, 1
jne 0x1400616ea
jmp 0x1400617ae
lea rax, [0x140162970]
add rax, 0x100
mov rcx, rax
lea rdx, [0x1401193e0]
call fcn.140022590
test al, 1
jne 0x140061713
jmp 0x1400617ae
lea rax, [0x140162970]
add rax, 0x100
mov rcx, rax
call fcn.140033050
lea rcx, [0x140162970]
add rcx, 0x100
mov rdx, qword [0x140162ad0]
mov qword [rsp + 0x120], rcx
mov rcx, rdx
mov edx, 0x2b
mov r8, qword [rsp + 0x120]
mov r9d, eax
call qword [sym.imp.WININET.dll_InternetSetOptionA]
lea rcx, [0x140162970]
add rcx, 0x120
mov dword [rsp + 0x11c], eax
call fcn.140033050
lea rcx, [0x140162970]
add rcx, 0x120
mov r8, qword [0x140162ad0]
mov qword [rsp + 0x110], rcx
mov rcx, r8
mov edx, 0x2c
mov r8, qword [rsp + 0x110]
mov r9d, eax
call qword [sym.imp.WININET.dll_InternetSetOptionA]
test byte [0x140162ab1], 1
je 0x1400617e3
lea rax, [0x140162970]
add rax, 0x141
mov rcx, qword [0x140162ad0]
mov edx, 0x41
mov r8, rax
mov r9d, 1
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov byte [0x140162aca], 0
cmp qword [0x140162ad0], 0
jne 0x1400618a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x4d8]
mov edx, eax
call fcn.140023990
lea rcx, [rsp + 0x4b8]
lea rdx, [0x14011fbfc]
mov r8d, 0x35
call fcn.14002f4b0
lea rcx, [rsp + 0x4f8]
lea rdx, [rsp + 0x4b8]
lea r8, [rsp + 0x4d8]
call fcn.140013d00
mov rcx, qword [rsp + 0x150]
add rcx, 0xc0
lea rdx, [rsp + 0x4f8]
call fcn.140015f40
lea rcx, [rsp + 0x4f8]
mov qword [rsp + 0x108], rax
call fcn.140001770
lea rcx, [rsp + 0x4b8]
call fcn.140001770
lea rcx, [rsp + 0x4d8]
call fcn.140001770
mov byte [rsp + 0x51f], 1
mov dword [rsp + 0x4b4], 1
jmp 0x14006245e
jmp 0x1400618ac
mov dword [rsp + 0x4b0], 3
mov word [rsp + 0x4ae], 0x1bb
lea rcx, [rsp + 0x498]
mov rdx, qword [rsp + 0x148]
mov r8, qword [rsp + 0x150]
lea r9, [rsp + 0x4ae]
call fcn.1400624a0
mov qword [rsp + 0x490], 0
cmp dword [0x140162ae8], 0
jne 0x1400619c4
mov eax, dword [rsp + 0x4b0]
mov r8w, word [rsp + 0x4ae]
lea rcx, [rsp + 0x470]
lea rdx, [0x14011fc32]
mov r9d, 0x24
mov word [rsp + 0x106], r8w
mov r8, r9
mov dword [rsp + 0x100], eax
call fcn.14002f4b0
lea rcx, [rsp + 0x498]
lea rdx, [rsp + 0x470]
call fcn.1400697e0
mov rcx, rax
call fcn.1400073b0
xor r10d, r10d
mov r9d, r10d
xor r10d, r10d
mov rcx, qword [0x140162ad0]
mov rdx, rax
mov r8w, word [rsp + 0x106]
mov qword [rsp + 0x20], 0
mov r11d, dword [rsp + 0x100]
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0xfc], r10d
call qword [sym.imp.WININET.dll_InternetConnectA]
mov qword [rsp + 0x490], rax
lea rcx, [rsp + 0x470]
call fcn.140001770
jmp 0x140061a87
mov eax, dword [rsp + 0x4b0]
mov cx, word [rsp + 0x4ae]
lea rdx, [rsp + 0x430]
mov word [rsp + 0xfa], cx
mov rcx, rdx
lea rdx, [0x14011fc57]
mov r8d, 0x24
mov dword [rsp + 0xf4], eax
call fcn.14002f4b0
lea rcx, [rsp + 0x498]
lea rdx, [rsp + 0x430]
call fcn.1400697e0
lea rcx, [rsp + 0x450]
mov rdx, rax
call fcn.140005ff0
lea rcx, [0x140162970]
add rcx, 0x160
lea rdx, [rsp + 0x490]
mov r8, qword [rsp + 0x150]
lea r9, [rsp + 0x450]
mov r10w, word [rsp + 0xfa]
mov word [rsp + 0x20], r10w
mov r11d, dword [rsp + 0xf4]
mov dword [rsp + 0x28], r11d
mov qword [rsp + 0xe8], rax
call fcn.140063700
lea rcx, [rsp + 0x430]
mov byte [rsp + 0xe7], al
call fcn.140001770
cmp qword [rsp + 0x490], 0
jne 0x140061b45
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x3f0]
mov edx, eax
call fcn.140023990
lea rcx, [rsp + 0x3d0]
lea rdx, [0x14011fc7c]
mov r8d, 0x38
call fcn.14002f4b0
lea rcx, [rsp + 0x410]
lea rdx, [rsp + 0x3d0]
lea r8, [rsp + 0x3f0]
call fcn.140013d00
mov rcx, qword [rsp + 0x150]
add rcx, 0xc0
lea rdx, [rsp + 0x410]
call fcn.140015f40
lea rcx, [rsp + 0x410]
mov qword [rsp + 0xd8], rax
call fcn.140001770
lea rcx, [rsp + 0x3d0]
call fcn.140001770
lea rcx, [rsp + 0x3f0]
call fcn.140001770
mov byte [rsp + 0x51f], 1
mov dword [rsp + 0x4b4], 1
jmp 0x14006243c
jmp 0x140061b4a
mov qword [rsp + 0x3c8], 0
movzx eax, word [rsp + 0x4ae]
cmp eax, 0x50
jne 0x140061c13
lea rcx, [rsp + 0x3a8]
lea rdx, [0x14011fcb5]
mov r8d, 0x24
call fcn.14002f4b0
lea rcx, [rsp + 0x498]
lea rdx, [rsp + 0x3a8]
call fcn.1400697e0
mov rcx, rax
call fcn.1400073b0
mov rcx, qword [rsp + 0x148]
add rcx, 0x80
mov qword [rsp + 0xd0], rax
call fcn.1400073b0
xor r9d, r9d
mov rcx, qword [rsp + 0x490]
mov rdx, rax
mov r8, qword [rsp + 0xd0]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0x4200000
mov qword [rsp + 0x38], 0
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov qword [rsp + 0x3c8], rax
lea rcx, [rsp + 0x3a8]
call fcn.140001770
jmp 0x140061cba
lea rcx, [rsp + 0x388]
lea rdx, [0x14011fcda]
mov r8d, 0x24
call fcn.14002f4b0
lea rcx, [rsp + 0x498]
lea rdx, [rsp + 0x388]
call fcn.1400697e0
mov rcx, rax
call fcn.1400073b0
mov rcx, qword [rsp + 0x148]
add rcx, 0x80
mov qword [rsp + 0xc8], rax
call fcn.1400073b0
xor r9d, r9d
mov rcx, qword [rsp + 0x490]
mov rdx, rax
mov r8, qword [rsp + 0xc8]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0x4a00000
mov qword [rsp + 0x38], 0
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov qword [rsp + 0x3c8], rax
lea rcx, [rsp + 0x388]
call fcn.140001770
cmp qword [rsp + 0x3c8], 0
jne 0x140061d78
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x348]
mov edx, eax
call fcn.140023990
lea rcx, [rsp + 0x328]
lea rdx, [0x14011fcff]
mov r8d, 0x38
call fcn.14002f4b0
lea rcx, [rsp + 0x368]
lea rdx, [rsp + 0x328]
lea r8, [rsp + 0x348]
call fcn.140013d00
mov rcx, qword [rsp + 0x150]
add rcx, 0xc0
lea rdx, [rsp + 0x368]
call fcn.140015f40
lea rcx, [rsp + 0x368]
mov qword [rsp + 0xc0], rax
call fcn.140001770
lea rcx, [rsp + 0x328]
call fcn.140001770
lea rcx, [rsp + 0x348]
call fcn.140001770
mov byte [rsp + 0x51f], 1
mov dword [rsp + 0x4b4], 1
jmp 0x14006243c
mov dword [rsp + 0x320], 4
lea rax, [rsp + 0x324]
mov rcx, qword [rsp + 0x3c8]
mov edx, 0x1f
mov r8, rax
lea r9, [rsp + 0x320]
call qword [sym.imp.WININET.dll_InternetQueryOptionA]
cmp eax, 0
je 0x140061df9
mov eax, dword [rsp + 0x324]
or eax, 0x13380
mov dword [rsp + 0x324], eax
lea rcx, [rsp + 0x324]
mov rdx, qword [rsp + 0x3c8]
mov qword [rsp + 0xb8], rcx
mov rcx, rdx
mov edx, 0x1f
mov r8, qword [rsp + 0xb8]
mov r9d, 4
call qword [sym.imp.WININET.dll_InternetSetOptionA]
lea rcx, [rsp + 0x300]
mov rdx, qword [rsp + 0x148]
lea r8, [rsp + 0x498]
call fcn.140063ae0
mov dword [rsp + 0x2fc], 0
cmp dword [0x140162aec], 0
jne 0x140061f46
lea rax, [0x140162970]
add rax, 0x40
mov rcx, rax
lea rdx, [0x1401193e0]
call fcn.140015f10
test al, 1
jne 0x140061e57
jmp 0x140061e68
xor eax, eax
mov ecx, eax
mov qword [rsp + 0xb0], rcx
jmp 0x140061e89
lea rax, [0x140162970]
add rax, 0x40
mov rcx, rax
call fcn.1400017a0
shl rax, 0
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
lea rcx, [0x140162970]
add rcx, 0x40
lea rdx, [0x1401193e0]
mov dword [rsp + 0xac], eax
call fcn.140015f10
test al, 1
jne 0x140061ebf
jmp 0x140061ed0
xor eax, eax
mov ecx, eax
mov qword [rsp + 0xa0], rcx
jmp 0x140061ef1
lea rax, [0x140162970]
add rax, 0x40
xor ecx, ecx
mov edx, ecx
mov rcx, rax
call fcn.140001710
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
lea rcx, [rsp + 0x300]
mov qword [rsp + 0x98], rax
call fcn.1400073b0
mov rcx, qword [rsp + 0x3c8]
mov rdx, rax
mov r8d, 0xffffffff
mov r9, qword [rsp + 0x98]
mov r10d, dword [rsp + 0xac]
mov dword [rsp + 0x20], r10d
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [rsp + 0x2fc], eax
jmp 0x140061f8e
lea rcx, [rsp + 0x2d8]
lea rdx, [rsp + 0x300]
call fcn.140005ff0
lea rcx, [rsp + 0x3c8]
lea rdx, [rsp + 0x2d8]
mov r8, qword [rsp + 0x150]
mov qword [rsp + 0x90], rax
call fcn.140064390
and al, 1
movzx r9d, al
mov dword [rsp + 0x2fc], r9d
cmp dword [rsp + 0x2fc], 0
jne 0x140062057
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x298]
mov edx, eax
call fcn.140023990
lea rcx, [rsp + 0x278]
lea rdx, [0x14011fd38]
mov r8d, 0x47
call fcn.14002f4b0
lea rcx, [rsp + 0x2b8]
lea rdx, [rsp + 0x278]
lea r8, [rsp + 0x298]
call fcn.140013d00
mov rcx, qword [rsp + 0x150]
add rcx, 0xc0
lea rdx, [rsp + 0x2b8]
call fcn.140015f40
lea rcx, [rsp + 0x2b8]
mov qword [rsp + 0x88], rax
call fcn.140001770
lea rcx, [rsp + 0x278]
call fcn.140001770
lea rcx, [rsp + 0x298]
call fcn.140001770
lea rcx, [0x140162970]
call fcn.140069830
mov byte [rsp + 0x51f], 1
mov dword [rsp + 0x4b4], 1
jmp 0x14006241a
lea rcx, [rsp + 0x258]
lea rdx, [rsp + 0x3c8]
mov r8, qword [rsp + 0x150]
mov r9, qword [rsp + 0x148]
call fcn.140064720
lea rcx, [rsp + 0x238]
lea rdx, [rsp + 0x3c8]
mov r8, qword [rsp + 0x150]
call fcn.140064930
lea rcx, [rsp + 0x3c8]
mov rdx, qword [rsp + 0x148]
mov r8, qword [rsp + 0x150]
lea r9, [rsp + 0x238]
lea rax, [rsp + 0x498]
mov qword [rsp + 0x20], rax
call fcn.140064b30
test byte [0x140162ac9], 1
je 0x1400621d6
lea rcx, [rsp + 0x218]
lea rdx, [0x14011fd80]
mov r8d, 0x28
call fcn.14002f4b0
lea rcx, [rsp + 0x238]
lea rdx, [rsp + 0x218]
call fcn.140013970
lea rcx, [rsp + 0x218]
mov byte [rsp + 0x87], al
call fcn.140001770
mov al, byte [rsp + 0x87]
test al, 1
jne 0x14006212f
jmp 0x140062162
mov rcx, qword [rsp + 0x3c8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x490]
mov dword [rsp + 0x80], eax
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [rsp + 0x4b4], 2
jmp 0x140062400
lea rcx, [rsp + 0x1f8]
lea rdx, [0x14011fda9]
mov r8d, 0x28
call fcn.14002f4b0
lea rcx, [rsp + 0x238]
lea rdx, [rsp + 0x1f8]
call fcn.140013970
lea rcx, [rsp + 0x1f8]
mov byte [rsp + 0x7f], al
call fcn.140001770
mov al, byte [rsp + 0x7f]
test al, 1
jne 0x1400621b3
jmp 0x1400621d1
mov rcx, qword [rsp + 0x3c8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [rsp + 0x4b4], 3
jmp 0x140062400
jmp 0x1400621d6
mov rcx, qword [rsp + 0x3c8]
mov rdx, qword [rsp + 0x150]
call fcn.140065ba0
mov rax, qword [rsp + 0x150]
add rax, 0x60
mov rcx, rax
lea rdx, [rsp + 0x258]
call fcn.1400139a0
xor r8d, r8d
lea rcx, [rsp + 0x258]
lea rdx, [rsp + 0x1d8]
mov r9d, 0xe
mov qword [rsp + 0x70], rax
call fcn.140023840
lea rax, [rsp + 0x1d8]
mov qword [rsp + 0x1d0], rax
mov rcx, qword [rsp + 0x1d0]
lea rdx, [rsp + 0x1c8]
call fcn.140005b00
mov rcx, qword [rsp + 0x1d0]
lea rdx, [rsp + 0x1c0]
call fcn.140005a80
lea rax, [rsp + 0x1c8]
lea rcx, [rsp + 0x1c0]
mov qword [rsp + 0x68], rcx
mov rcx, rax
mov rdx, qword [rsp + 0x68]
call fcn.1400699b0
test al, 1
jne 0x140062295
jmp 0x1400622d6
lea rcx, [rsp + 0x1c8]
call fcn.1400699e0
mov qword [rsp + 0x1b8], rax
mov rax, qword [rsp + 0x1b8]
movsx ecx, byte [rax]
call fcn.1400e6be4
mov rdx, qword [rsp + 0x1b8]
mov byte [rdx], al
lea rcx, [rsp + 0x1c8]
call fcn.140069a00
jmp 0x140062266
lea rcx, [rsp + 0x198]
lea rdx, [0x14011fdd2]
mov r8d, 0x2e
call fcn.14002f4b0
lea rcx, [rsp + 0x1d8]
lea rdx, [rsp + 0x198]
call fcn.140013970
lea rcx, [rsp + 0x198]
mov byte [rsp + 0x67], al
call fcn.140001770
mov al, byte [rsp + 0x67]
test al, 1
jne 0x140062327
jmp 0x14006238b
lea rcx, [rsp + 0x158]
lea rdx, [rsp + 0x258]
call fcn.140005ff0
lea rcx, [rsp + 0x178]
lea rdx, [rsp + 0x158]
mov qword [rsp + 0x58], rax
call fcn.140066020
mov rax, qword [rsp + 0x150]
add rax, 0x80
mov rcx, rax
lea rdx, [rsp + 0x178]
call fcn.140015f40
lea rcx, [rsp + 0x178]
mov qword [rsp + 0x50], rax
call fcn.140001770
jmp 0x1400623b0
mov rax, qword [rsp + 0x150]
add rax, 0x60
mov rcx, qword [rsp + 0x150]
add rcx, 0x80
mov rdx, rax
call fcn.1400139a0
lea rcx, [0x140162970]
call fcn.140069830
mov rcx, qword [rsp + 0x3c8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x490]
mov dword [rsp + 0x4c], eax
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [rsp + 0x51f], 1
mov dword [rsp + 0x4b4], 1
lea rcx, [rsp + 0x1d8]
mov dword [rsp + 0x48], eax
call fcn.140001770
lea rcx, [rsp + 0x238]
call fcn.140001770
lea rcx, [rsp + 0x258]
call fcn.140001770
lea rcx, [rsp + 0x300]
call fcn.140001770
mov eax, dword [rsp + 0x4b4]
sub eax, 3
je 0x140061b4a
jmp 0x14006243c
lea rcx, [rsp + 0x498]
call fcn.14001a1c0
mov eax, dword [rsp + 0x4b4]
sub eax, 2
je 0x1400618ac
jmp 0x14006245e
test byte [rsp + 0x51f], 1
jne 0x140062479
mov rcx, qword [rsp + 0x150]
call fcn.140013790
mov rcx, qword [rsp + 0x148]
call fcn.140069710
mov rax, qword [rsp + 0x140]
add rsp, 0x528
ret