Function at 0x10007450
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 0x100257e8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x1003000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call fcn.10001520
mov edx, eax
test edx, edx
je 0x10007afb
nop dword [eax + eax]
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 1
call fcn.10001520
test eax, eax
je 0x10007afb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 2
call fcn.10001520
test eax, eax
je 0x10007afb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push 0x3c
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 3
push 0
push eax
mov dword [ebp - 0x24], 0x2f
call fcn.1000d490
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x8c]
add esp, 0xc
mov dword [ebp - 0x8c], 0x3c
mov dword [ebp - 0x84], 0xffffffff
mov dword [ebp - 0x78], 0xffffffff
mov dword [ebp - 0x5c], 0xffffffff
push ecx
push 0
mov dword [ebp - 0x54], 0xffffffff
push dword [eax - 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x10007bbd
mov eax, dword [ebp - 0x7c]
mov esi, dword [ebp - 0x78]
mov dword [ebp - 0x3c], eax
call fcn.10001520
push eax
push esi
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x40]
call fcn.10004960
mov byte [ebp - 4], 4
lea edx, [ebx - 0x10]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], edx
lea esi, [eax - 0x10]
cmp esi, edx
je 0x100075c7
cmp dword [edx + 0xc], 0
lea ebx, [edx + 0xc]
jl 0x100075b8
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x100075b8
mov ecx, esi
call fcn.10004880
mov dword [ebp - 0x38], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x100075b0
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x38]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x28], ebx
jmp 0x100075c7
push dword [eax - 0xc]
lea ecx, [ebp - 0x28]
push eax
call fcn.10004580
mov ebx, dword [ebp - 0x28]
mov byte [ebp - 4], 3
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100075e0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x3c], eax
call fcn.10001520
test eax, eax
je 0x10007afb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov edx, dword [ebp - 0x3c]
mov byte [ebp - 4], 5
test edx, edx
je 0x10007648
test edx, 0xffff0000
jne 0x10007632
movzx eax, dx
mov ecx, eax
mov dword [ebp - 0x3c], eax
call fcn.10001350
test eax, eax
je 0x10007657
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x1c]
push eax
call fcn.10004bb0
jmp 0x10007654
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10007637
sub ecx, esi
sar ecx, 1
jmp 0x1000764a
xor ecx, ecx
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.10004580
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 6
lea edx, [esi - 0x10]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
cmp edx, ecx
je 0x100076c1
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x3c], eax
jl 0x100076b2
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x100076b2
mov ecx, edx
call fcn.10004880
mov edx, dword [ebp - 0x3c]
or ecx, 0xffffffff
mov dword [ebp - 0x30], eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100076a7
mov esi, dword [ebp - 0x38]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
jmp 0x100076c4
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
push esi
call fcn.10004580
mov edx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 3
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100076dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__Windows_NT_10.0_
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x10007bbd
push 4
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push ecx
push 0x58
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x10007ba9
push 0
push dword [ebp - 0x74]
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x10007ba9
xor ecx, ecx
mov edx, 0x800000
cmp dword [ebp - 0x80], 2
cmove ecx, edx
push ecx
push 0
push 0
push 0
push esi
push 0x1002c530
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10007b8c
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x10007b41
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10007b41
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
nop dword [eax]
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100077f7
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000b05c
add esp, 4
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x18]
push 0
push ecx
push eax
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp dword [ebp - 0x18], 0
jne 0x10007815
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x24], 0x21
mov dword [ebp - 0x38], eax
cmp eax, 2
jb 0x100077a0
jmp 0x10007b41
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x48]
push edi
call fcn.10004230
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.100041a0
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000784d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call fcn.1000aa44
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x10007b3e
cmp dword [ebp - 0x24], 0x21
jne 0x10007b32
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], 0
jl 0x1000793d
push 0x1002c4d0
push edi
call fcn.1000c354
add esp, 8
test eax, eax
je 0x1000793d
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x1000793d
cmp dword [edi - 0xc], 0
jl 0x1000793d
push 0x1002c394
push edi
call fcn.1000c354
add esp, 8
test eax, eax
je 0x1000793d
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x1000793d
cmp dword [edi - 0xc], 0
jl 0x10007992
push str..exe_
push edi
call fcn.1000c354
add esp, 8
test eax, eax
je 0x10007992
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x10007992
push ecx
push str..exe_
lea ecx, [ebp - 0x10]
call fcn.10003da0
add eax, 4
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.1000a1f0
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.100041a0
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000793a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x20]
call fcn.10004230
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.10003d40
mov eax, dword [ebp - 0x20]
mov ecx, str..exe
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10007a23
test dx, dx
je 0x1000798b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10007a23
add eax, 4
add ecx, 4
test dx, dx
jne 0x10007961
xor eax, eax
jmp 0x10007a28
push ecx
push str..msi_
lea ecx, [ebp - 0x10]
call fcn.10003da0
cmp eax, 0xffffffff
je 0x100079e1
push ecx
push str..msi_
lea ecx, [ebp - 0x10]
call fcn.10003da0
add eax, 4
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.1000a1f0
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
call fcn.100041a0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.10004210
jmp 0x1000793a
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.100041a0
push dword [ebp - 0x1c]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call ebx
push dword [ebp - 0x34]
call ebx
push dword [ebp - 0x30]
call ebx
lea ecx, [ebp - 0x14]
call fcn.10004210
lea ecx, [ebp - 0x28]
call fcn.10004210
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.10004210
jmp 0x10007ae5
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x10007b05
mov edx, str..msi
lea ecx, [ebp - 0x20]
call fcn.10003ab0
test al, al
jne 0x10007b05
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.100041a0
push dword [ebp - 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x34]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x30]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10007a90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10007aac
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
or esi, 0xffffffff
mov byte [ebp - 4], 1
add ebx, 0xfffffff0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x10007aca
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10007ae5
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x18], 0
call fcn.10001520
mov edx, eax
test edx, edx
jne 0x100074a0
push 0x80004005
call fcn.10001170
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
push eax
call fcn.100041a0
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10007b41
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10007b41
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
push eax
call fcn.100041a0
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
cmp dword [eax - 4], 1
jle 0x10007b57
push dword [eax - 0xc]
call fcn.10004470
mov ecx, dword [ebp - 0x2c]
push 0x100000
push 0
push 0
push dword [ecx]
call dword [sym.imp.SHLWAPI.dll_UrlUnescapeW]
mov dword [ebp - 0x14], 0
push dword [ebp - 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x34]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x30]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x10007bc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x30]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x10007bc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x10007bc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10007be2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
or esi, 0xffffffff
mov byte [ebp - 4], 1
add ebx, 0xfffffff0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x10007c00
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10007c1b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10007c3a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret