Function at 0x10001ac0
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000fdb5
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xec], edx
mov dword [ebp - 0xe8], ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp esi, 0x100152a4
push 0
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [ebp - 0x1c], eax
mov eax, str.Mozilla_5.0__Linux__Android_6.0.1__Nexus_5X_Build_MMB29P__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_111.0.5563.64_Mobile_Safari_537.36__compatible__Googlebot_2.1__http:__www.google.com_bot.html_
push 0
push 0
cmovne eax, esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0xd8], edi
test edi, edi
je 0x10001bca
mov esi, dword [ebp - 0xe8]
lea eax, [ebp - 0xd4]
push eax
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
push 0
push esi
movlpd qword [ebp - 0xc8], xmm0
movlpd qword [ebp - 0xbc], xmm0
movlpd qword [ebp - 0xb4], xmm0
movlpd qword [ebp - 0xac], xmm0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xd4], 0x3c
mov dword [ebp - 0xcc], 0xffffffff
mov dword [ebp - 0xc0], 0xffffffff
mov dword [ebp - 0xa4], 0xffffffff
mov dword [ebp - 0x9c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x10001bd1
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x10002340
mov edx, dword [ebp - 0xc4]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x54], 0
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x50], 0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001bf1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x64]
call fcn.10003790
mov dword [ebp - 4], 0
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x50], 7
mov ecx, dword [ebp - 0x54]
cmova eax, dword [ebp - 0x64]
test ecx, ecx
je 0x10001c4c
xor esi, esi
mov edx, eax
test ecx, ecx
je 0x10001c42
cmp word [eax], 0x2f
je 0x10001c40
cmp ecx, 1
je 0x10001c42
add edx, 2
dec ecx
cmp word [edx], 0x2f
jne 0x10001c31
mov esi, edx
test esi, esi
je 0x10001c4c
sub esi, eax
sar esi, 1
jmp 0x10001c4f
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x10001ce4
cmp dword [ebp - 0x54], esi
lea eax, [ebp - 0x64]
xorps xmm0, xmm0
mov dword [ebp - 0x88], 0
cmovb esi, dword [ebp - 0x54]
lea ecx, [ebp - 0x98]
cmp dword [ebp - 0x50], 7
push esi
cmova eax, dword [ebp - 0x64]
push eax
movups xmmword [ebp - 0x98], xmm0
mov dword [ebp - 0x84], 0
call fcn.10003790
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x64]
call fcn.10003320
mov ecx, dword [ebp - 0x84]
cmp ecx, 7
jbe 0x10001ce4
mov edx, dword [ebp - 0x98]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10001cda
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002365
push ecx
push edx
call fcn.10004017
add esp, 8
mov edx, dword [ebp - 0xa8]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x6c], 0
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x68], 0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001d04
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x7c]
call fcn.10003790
mov byte [ebp - 4], 1
cmp dword [ebp - 0x6c], 0
jne 0x10001d59
mov ecx, dword [ebp - 0x68]
cmp ecx, 1
jb 0x10001d48
cmp ecx, 7
mov dword [ebp - 0x6c], 1
lea eax, [ebp - 0x7c]
cmova eax, dword [ebp - 0x7c]
mov dword [eax], 0x2f
jmp 0x10001d59
push ecx
push dword [ebp - 0xd8]
lea ecx, [ebp - 0x7c]
push 1
call fcn.10003880
push 0
push 0
push 0x4e20
push 0x2710
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x10001d83
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, 1
jmp 0x100022ba
cmp dword [ebp - 0x50], 7
lea eax, [ebp - 0x64]
push 0
push dword [ebp - 0xbc]
cmova eax, dword [ebp - 0x64]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, eax
mov dword [ebp - 0xe0], ecx
test ecx, ecx
jne 0x10001db8
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor edi, edi
jmp 0x100022ba
xor eax, eax
mov dword [ebp - 0x18], 0x10015440
cmp dword [ebp - 0xc8], 2
mov edx, 0x800000
mov dword [ebp - 0x14], 0
cmove eax, edx
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xe4]
push 0x10015448
push dword [ebp - 0xa8]
push 0x1001545c
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0xdc], esi
test esi, esi
jne 0x10001e1d
push dword [ebp - 0xe0]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push edi
call esi
xor edi, edi
jmp 0x100022ba
push 0
xorps xmm0, xmm0
mov dword [ebp - 0xe8], 0
push 0x10015464
lea ecx, [ebp - 0x34]
mov dword [ebp - 0xe4], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.10003790
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10001fcb
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x10001fcb
mov edx, dword [ebp - 0x20]
mov eax, edx
mov ecx, dword [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x38], ecx
cmp eax, 0x11
jb 0x10001eb4
cmp edx, 7
lea esi, [ebp - 0x34]
lea eax, [ecx + 0x11]
cmova esi, dword [ebp - 0x34]
push 0x22
mov dword [ebp - 0x24], eax
push str.x_forwarded_for:
lea eax, [esi + ecx*2]
push eax
call fcn.10006ae0
mov eax, dword [ebp - 0x38]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax*2 + 0x22], cx
jmp 0x10001ecb
push 0x11
push str.x_forwarded_for:
push dword [ebp - 0xd8]
lea ecx, [ebp - 0x34]
push 0x11
call fcn.10003990
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.10003240
mov edx, dword [ebp - 0x20]
mov eax, edx
mov ecx, dword [ebp - 0x24]
sub eax, ecx
cmp eax, 2
jb 0x10001f05
lea eax, [ecx + 2]
cmp edx, 7
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
cmova eax, dword [ebp - 0x34]
xor edx, edx
mov dword [eax + ecx*2], 0xa000d
mov word [eax + ecx*2 + 4], dx
jmp 0x10001f1c
push 2
push 0x100154b0
push dword [ebp - 0xd8]
lea ecx, [ebp - 0x34]
push 2
call fcn.10003990
mov edx, dword [ebp - 0x20]
mov eax, edx
mov ecx, dword [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x38], ecx
cmp eax, 0xb
jb 0x10001f5d
cmp edx, 7
lea esi, [ebp - 0x34]
lea eax, [ecx + 0xb]
cmova esi, dword [ebp - 0x34]
push 0x16
mov dword [ebp - 0x24], eax
push str.x_real_ip:
lea eax, [esi + ecx*2]
push eax
call fcn.10006ae0
mov eax, dword [ebp - 0x38]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax*2 + 0x16], cx
jmp 0x10001f74
push 0xb
push str.x_real_ip:
push dword [ebp - 0xd8]
lea ecx, [ebp - 0x34]
push 0xb
call fcn.10003990
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.10003240
mov edx, dword [ebp - 0x20]
mov eax, edx
mov ecx, dword [ebp - 0x24]
sub eax, ecx
cmp eax, 2
jb 0x10001fae
lea eax, [ecx + 2]
cmp edx, 7
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
cmova eax, dword [ebp - 0x34]
xor edx, edx
mov dword [eax + ecx*2], 0xa000d
mov word [eax + ecx*2 + 4], dx
jmp 0x10001fc5
push 2
push 0x100154d0
push dword [ebp - 0xd8]
lea ecx, [ebp - 0x34]
push 2
call fcn.10003990
mov esi, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x10001fe9
cmp dword [ebp - 0x20], 7
lea eax, [ebp - 0x34]
mov dword [ebp - 0xe4], ecx
cmova eax, dword [ebp - 0x34]
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x38], 4
push eax
push 0x1f
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
or dword [ebp - 0x1c], 0x3100
lea eax, [ebp - 0x1c]
push 4
push eax
push 0x1f
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 0
push 0
push 0
push 0
push dword [ebp - 0xe4]
push dword [ebp - 0xe8]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x100020a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x98]
call fcn.10003520
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0xe0]
call esi
push edi
call esi
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x10002101
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002098
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002365
push ecx
push edx
call fcn.10004017
add esp, 8
xor edi, edi
jmp 0x1000226c
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x100020ed
push 0
lea eax, [ebp - 0x80]
mov dword [ebp - 0x48], 0x19000
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x80], 4
push eax
push 0
push 0x20000005
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x10002108
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
je 0x10002108
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0xe0]
call esi
push edi
call esi
xor edi, edi
jmp 0x1000226c
mov eax, dword [ebp - 0x48]
mov ecx, 0xffffffff
mov edi, eax
mov dword [ebp - 0x3c], 0
add edi, 1
xorps xmm0, xmm0
movq qword [ebp - 0x44], xmm0
cmovb edi, ecx
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
test edi, edi
je 0x100021a0
cmp edi, 0x7fffffff
ja 0x1000235b
cmp edi, 0x1000
jb 0x10002173
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x10002360
push eax
call fcn.10003fe2
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10002365
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x1000217c
push edi
call fcn.10003fe2
add esp, 4
push edi
lea esi, [edi + eax]
mov dword [ebp - 0x44], eax
push 0
push eax
mov dword [ebp - 0x3c], esi
call fcn.10005650
mov eax, dword [ebp - 0x48]
add esp, 0xc
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x40], esi
mov esi, dword [ebp - 0xdc]
lea edx, [ebp - 0x4c]
mov byte [ebp - 4], 3
push edx
push eax
push ecx
xor edi, edi
push esi
mov dword [ebp - 0x4c], edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1000220a
nop word [eax + eax]
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x1000220a
push eax
mov eax, dword [ebp - 0xec]
mov ecx, eax
push dword [ebp - 0x44]
push dword [eax + 4]
call fcn.10003b10
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
sub eax, ecx
add edi, dword [ebp - 0x4c]
push eax
push 0
push ecx
call fcn.10005650
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x4c]
add esp, 0xc
sub eax, edi
push ecx
push eax
push dword [ebp - 0x44]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x100021c0
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0xe0]
call esi
push dword [ebp - 0xd8]
call esi
mov edx, dword [ebp - 0x44]
test edx, edx
je 0x1000226c
mov ecx, dword [ebp - 0x3c]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x1000224d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002365
push ecx
push edx
call fcn.10004017
add esp, 8
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x20]
cmp ecx, 7
jbe 0x100022a6
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000229c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002365
push ecx
push edx
call fcn.10004017
add esp, 8
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov ecx, dword [ebp - 0x68]
cmp ecx, 7
jbe 0x100022f4
mov edx, dword [ebp - 0x7c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100022ea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002365
push ecx
push edx
call fcn.10004017
add esp, 8
mov ecx, dword [ebp - 0x50]
xor eax, eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
cmp ecx, 7
jbe 0x1000233e
mov edx, dword [ebp - 0x64]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002334
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002365
push ecx
push edx
call fcn.10004017
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10003fd4
mov esp, ebp
pop ebp
ret
call fcn.10003e80
call fcn.10001670
call fcn.100073bc
int3