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

Disassembly:
push 0xffffffffffffffff
push 0x15795ac
mov eax, dword fs:[0]
push eax
mov eax, 0x12b8
call fcn.0153ed50
mov eax, dword [0x15b0648]
xor eax, esp
mov dword [esp + 0x12b4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x15b0648]
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 [0x15d734c], ebx
mov dword [esp + 0x1c], eax
jne 0x15210cc
call fcn.01520ee0
cmp dword [0x15d734c], ebx
je 0x1521201
push 0x206
lea ecx, [esp + 0x86]
push ebx
push ecx
mov word [esp + 0x8c], bx
call fcn.0153ecd0
push 0x103e
lea edx, [esp + 0x29a]
push ebx
push edx
mov word [esp + 0x2a0], bx
call fcn.0153ecd0
push 0x3c
lea eax, [esp + 0x60]
push ebx
push eax
call fcn.0153ecd0
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 0x152115e
mov eax, dword [ebp + 4]
lea esi, [ebp + 4]
mov dword [esp + 0x14], esi
jmp 0x1521167
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 0x1521208
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x18], 8
mov edi, eax
jb 0x152118f
mov eax, dword [esi]
jmp 0x1521191
mov eax, esi
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x30]
push eax
call fcn.01526600
add esp, 0xc
mov dword [esp + 0x12d4], ebx
mov ebx, 0x10
cmp dword [eax + 0x18], ebx
jb 0x15211b7
mov eax, dword [eax + 4]
jmp 0x15211ba
add eax, 4
push eax
push edi
push str.WinHttpCrackUrl_:_LastErr__d____Url:__s
push 0x2000001
call fcn.01509090
add esp, 0x10
mov dword [esp + 0x12d4], 0xffffffff
cmp dword [esp + 0x40], ebx
jb 0x15211ec
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0153e380
add esp, 4
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
xor eax, eax
jmp 0x15214b8
cmp dword [0x15d734c], ebx
jne 0x1521215
call fcn.01520ee0
mov edx, dword [esp + 0x5c]
mov ecx, dword [0x15d734c]
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 0x1521288
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.01526600
add esp, 0xc
mov dword [esp + 0x12d4], edi
mov ebx, 0x10
cmp dword [eax + 0x18], ebx
jb 0x1521279
mov eax, dword [eax + 4]
push eax
push esi
push str.WinHttpConnect_:_LastErr__d____HostName:__s
jmp 0x15211c1
add eax, 4
push eax
push esi
push str.WinHttpConnect_:_LastErr__d____HostName:__s
jmp 0x15211c1
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 0x1589ea0
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x1521329
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.01526600
add esp, 0xc
mov dword [esp + 0x12d4], ebx
cmp dword [eax + 0x18], 0x10
jb 0x15212ec
mov eax, dword [eax + 4]
jmp 0x15212ef
add eax, 4
push eax
push esi
push str.WinHttpOpenRequest_:_LastErr__d____UrlPath:__s
push 0x2000001
call fcn.01509090
add esp, 0x10
mov dword [esp + 0x12d4], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.01451cc0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x15214b8
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 0x152134b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpSendRequest_:_LastErr__d_
jmp 0x1521490
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x1521368
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpReceiveResponse_:_LastErr__d_
jmp 0x1521490
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 0x15213fa
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x12e4]
lea edx, [esi + eax]
cmp edx, ecx
jae 0x152140b
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 0x1521484
mov eax, dword [esp + 0x20]
add esi, eax
test eax, eax
ja 0x1521370
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 0x15214b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf9
push str.__d_____d_
push 0x2000001
call fcn.01509090
add esp, 0x10
xor eax, eax
jmp 0x15214b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpQueryDataAvailable_:_LastErr__d_
jmp 0x1521490
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.01509090
mov eax, dword [esp + 0x28]
add esp, 0x14
cmp dword [ebp + 0x18], 8
jb 0x1521432
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.01526600
add esp, 0xc
mov dword [esp + 0x12d4], 3
cmp dword [eax + 0x18], 0x10
jb 0x1521458
mov eax, dword [eax + 4]
jmp 0x152145b
add eax, 4
push eax
push str.WinHttpQueryDataAvailable_BufferOverflow_:_Url__s_
push 0x2000001
call fcn.01509090
add esp, 0xc
mov dword [esp + 0x12d4], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.01451cc0
jmp 0x152149d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpWriteData_:_LastErr__d_
push 0x2000001
call fcn.01509090
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 0x15214b8
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.0153eb33
add esp, 0x12c4
ret 0xc