Function at 0x1001c660
Capabilities:
Check http status code
Prepare http request
Read http header
Receive http response
Reference http user-agent string

Disassembly:
mov eax, 0x1864
call fcn.10040f70
mov eax, dword [0x10070850]
xor eax, esp
mov dword [esp + 0x185c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x1870]
mov eax, dword [ebp + 0x18]
push esi
xor esi, esi
push edi
mov ebx, ecx
cmp eax, esi
je 0x1001c69a
push eax
call fcn.1001dbf4
add esp, 4
mov dword [ebp + 0x18], esi
mov eax, dword [esp + 0x187c]
mov dword [ebp + 0x1c], esi
mov dword [esp + 0x28], 4
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
mov dword [ebp + 8], eax
mov dword [ebp + 4], 0x3e9
cmp ebx, esi
je 0x1001ca40
lea ecx, [esp + 0x187c]
push ecx
push ebp
mov edi, 0x10071c00
call fcn.1001c580
mov edi, eax
mov dword [esp + 0x10], edi
cmp edi, esi
je 0x1001ca40
cmp dword [ebp], esi
jne 0x1001ca40
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x24]
push edx
mov edx, dword [ebp + 0x20]
push eax
push ecx
push edx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 7
xor eax, eax
push str.http:__
push ebx
mov dword [ebp + 4], 1
mov word [esp + 0x74], ax
call fcn.1003bd82
add esp, 0xc
test eax, eax
je 0x1001c73c
lea esi, [esp + 0x68]
mov edi, ebx
call fcn.1001c4e0
mov edi, dword [esp + 0x10]
xor esi, esi
jmp 0x1001c74f
push 0x3e8
lea ecx, [esp + 0x6c]
push ebx
push ecx
call fcn.1003dba1
add esp, 0xc
push 0x3c
lea edx, [esp + 0x30]
push esi
push edx
call fcn.1003e640
add esp, 0xc
or eax, 0xffffffff
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x2c], 0x3c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x1001c781
lea ecx, [esp + 0x2c]
push ecx
sub eax, edx
push esi
sar eax, 1
push eax
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x1001ca30
cmp dword [ebp], esi
jne 0x1001ca30
lea eax, [esp + 0x1068]
push eax
lea esi, [esp + 0x30]
lea ebx, [esp + 0x86c]
mov dword [ebp + 4], 2
call fcn.1001c520
mov ecx, dword [esp + 0x44]
push 0
push ecx
mov edx, ebx
mov ebx, dword [esp + 0x18]
push edx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
test edi, edi
je 0x1001ca20
cmp dword [ebp], 0
jne 0x1001ca20
mov eax, dword [esp + 0x58]
push 0x100
push 0x10071cc0
push 0
push str.HTTP_1.1
push eax
push 0x1005ed54
push edi
mov dword [ebp + 4], 3
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x1001ca0b
cmp dword [ebp], 0
jne 0x1001ca0b
mov eax, 4
mov dword [ebp + 4], eax
cmp dword [esp + 0x187c], eax
jne 0x1001c85e
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push 0
push ecx
push edx
push 1
push 1
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1001c9f3
cmp dword [ebp], 0
jne 0x1001c9f3
push 0
push esi
mov dword [ebp + 4], 5
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1001c9f3
cmp dword [ebp], 0
jne 0x1001c9f3
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x20000013
push esi
mov dword [ebp + 4], 6
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp dword [esp + 0x18], 0x190
jae 0x1001c9f3
cmp dword [ebp], 0
jne 0x1001c9f3
push 0
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
push 0
push 0x20000005
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1001c9f3
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1001c9f3
cmp dword [ebp], 0
jne 0x1001c9f3
mov dword [ebp + 0x1c], eax
inc eax
push eax
call fcn.1001dbff
add esp, 4
mov dword [ebp + 0x18], eax
xor ebx, ebx
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1001c9d7
cmp dword [ebp], 0
jne 0x1001c9d7
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1001c98d
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [ebp + 0x18]
add eax, ebx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1001c9bb
cmp dword [ebp], 0
jne 0x1001c9bb
add ebx, dword [esp + 0x1c]
cmp dword [esp + 0x14], 0
mov dword [ebp + 4], 8
ja 0x1001c938
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push edi
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
cmp ebx, dword [esp + 0x20]
jne 0x1001ca40
mov dword [ebp + 4], 0
mov eax, 1
jmp 0x1001ca49
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp + 4], 0x3e8
call esi
push edi
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
jmp 0x1001ca47
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp + 4], 0x3e8
call esi
push edi
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
jmp 0x1001ca47
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp + 4], 0x3e8
call esi
push edi
call esi
push ebx
call esi
jmp 0x1001ca47
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
mov dword [ebp + 4], 0x3e8
call esi
push ebx
call esi
jmp 0x1001ca47
push ebx
mov dword [ebp + 4], 0x3e8
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x1001ca47
push edi
mov dword [ebp + 4], 0x3e8
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x1001ca47
mov dword [ebp + 4], 0x3e8
xor eax, eax
mov ecx, dword [esp + 0x186c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003aa2d
add esp, 0x1864
ret 8