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

Disassembly:
push 0xffffffffffffffff
push 0x17f289c
mov eax, dword fs:[0]
push eax
mov eax, 0x12b8
call fcn.017b03b0
mov eax, dword [0x1845170]
xor eax, esp
mov dword [esp + 0x12b4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1845170]
xor eax, esp
push eax
lea eax, [esp + 0x12cc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x12e0]
mov ebp, dword [esp + 0x12dc]
xor ebx, ebx
cmp dword [0x186d2a4], ebx
mov dword [esp + 0x1c], eax
jne 0x17926cc
call fcn.017924e0
cmp dword [0x186d2a4], ebx
je 0x1792801
push 0x206
lea ecx, [esp + 0x86]
push ebx
push ecx
mov word [esp + 0x8c], bx
call fcn.017b03e0
push 0x103e
lea edx, [esp + 0x29a]
push ebx
push edx
mov word [esp + 0x2a0], bx
call fcn.017b03e0
push 0x3c
lea eax, [esp + 0x60]
push ebx
push eax
call fcn.017b03e0
lea ecx, [esp + 0xa4]
add esp, 0x24
cmp dword [ebp + 0x18], 8
lea edx, [esp + 0x288]
mov edi, 1
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x44], 0x3c
mov dword [esp + 0x58], 0x104
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], 0x820
mov dword [esp + 0x4c], edi
jb 0x179275e
mov eax, dword [ebp + 4]
lea esi, [ebp + 4]
mov dword [esp + 0x14], esi
jmp 0x1792767
lea eax, [ebp + 4]
mov dword [esp + 0x14], eax
mov esi, eax
lea edx, [esp + 0x44]
push edx
push ebx
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x1792808
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x18], 8
mov edi, eax
jb 0x179278f
mov eax, dword [esi]
jmp 0x1792791
mov eax, esi
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x30]
push eax
call fcn.01797540
add esp, 0xc
mov dword [esp + 0x12d4], ebx
mov ebx, 0x10
cmp dword [eax + 0x18], ebx
jb 0x17927b7
mov eax, dword [eax + 4]
jmp 0x17927ba
add eax, 4
push eax
push edi
push str.WinHttpCrackUrl_:_LastErr__d____Url:__s
push 0x2000001
call fcn.0177bbe0
add esp, 0x10
mov dword [esp + 0x12d4], 0xffffffff
cmp dword [esp + 0x40], ebx
jb 0x17927ec
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.017af9e0
add esp, 4
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
xor eax, eax
jmp 0x1792ab8
cmp dword [0x186d2a4], ebx
jne 0x1792815
call fcn.017924e0
mov edx, dword [esp + 0x5c]
mov ecx, dword [0x186d2a4]
push ebx
push edx
lea eax, [esp + 0x88]
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, eax
cmp ecx, ebx
mov dword [esp + 0x18], ecx
jne 0x1792888
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffffff
lea edx, [esp + 0x84]
mov esi, eax
push edx
lea eax, [esp + 0x30]
push eax
call fcn.01797540
add esp, 0xc
mov dword [esp + 0x12d4], edi
mov ebx, 0x10
cmp dword [eax + 0x18], ebx
jb 0x1792879
mov eax, dword [eax + 4]
push eax
push esi
push str.WinHttpConnect_:_LastErr__d____HostName:__s
jmp 0x17927c1
add eax, 4
push eax
push esi
push str.WinHttpConnect_:_LastErr__d____HostName:__s
jmp 0x17927c1
mov edx, dword [esp + 0x70]
xor eax, eax
mov ebx, 2
cmp dword [esp + 0x50], ebx
setne al
sub eax, 1
and eax, 0x800000
push eax
push 0
push 0
push 0
push edx
push 0x1810478
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x1792929
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x70]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.01797540
add esp, 0xc
mov dword [esp + 0x12d4], ebx
cmp dword [eax + 0x18], 0x10
jb 0x17928ec
mov eax, dword [eax + 4]
jmp 0x17928ef
add eax, 4
push eax
push esi
push str.WinHttpOpenRequest_:_LastErr__d____UrlPath:__s
push 0x2000001
call fcn.0177bbe0
add esp, 0x10
mov dword [esp + 0x12d4], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.01666500
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x1792ab8
push esi
push esi
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x179294b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpSendRequest_:_LastErr__d_
jmp 0x1792a90
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x1792968
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpReceiveResponse_:_LastErr__d_
jmp 0x1792a90
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
lea edx, [esp + 0x24]
push edx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x17929fa
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x12e4]
lea edx, [esi + eax]
cmp edx, ecx
jae 0x1792a0b
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [ebx + esi]
push edx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1792a84
mov eax, dword [esp + 0x20]
add esi, eax
test eax, eax
ja 0x1792970
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call edi
mov eax, dword [esp + 0x18]
push eax
call edi
test esi, esi
mov byte [ebx + esi], 0
jne 0x1792ab3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf9
push str.__d_____d_
push 0x2000001
call fcn.0177bbe0
add esp, 0x10
xor eax, eax
jmp 0x1792ab8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpQueryDataAvailable_:_LastErr__d_
jmp 0x1792a90
mov edx, dword [esp + 0x1c]
push edx
add esi, eax
push esi
push ecx
push str.WinHttpQueryDataAvailable_BufferOverflow_:_Allocation_Total_buffer_size__d___Required_buffer_size__d___ResultBuf__s_
push 0x2000001
call fcn.0177bbe0
mov eax, dword [esp + 0x28]
add esp, 0x14
cmp dword [ebp + 0x18], 8
jb 0x1792a32
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.01797540
add esp, 0xc
mov dword [esp + 0x12d4], 3
cmp dword [eax + 0x18], 0x10
jb 0x1792a58
mov eax, dword [eax + 4]
jmp 0x1792a5b
add eax, 4
push eax
push str.WinHttpQueryDataAvailable_BufferOverflow_:_Url__s_
push 0x2000001
call fcn.0177bbe0
add esp, 0xc
mov dword [esp + 0x12d4], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.01666500
jmp 0x1792a9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpWriteData_:_LastErr__d_
push 0x2000001
call fcn.0177bbe0
add esp, 0xc
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x1792ab8
mov eax, 1
mov ecx, dword [esp + 0x12cc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x12b4]
xor ecx, esp
call fcn.017b0193
add esp, 0x12c4
ret 0xc