Function at 0x10006d30
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 0x10027508
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x10033010]
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.10005250
mov edx, eax
test edx, edx
je 0x100073db
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.10005250
test eax, eax
je 0x100073db
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.10005250
test eax, eax
je 0x100073db
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.1000e250
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 0x1000749d
mov eax, dword [ebp - 0x7c]
mov esi, dword [ebp - 0x78]
mov dword [ebp - 0x3c], eax
call fcn.10005250
push eax
push esi
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x40]
call fcn.10004560
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 0x10006ea7
cmp dword [edx + 0xc], 0
lea ebx, [edx + 0xc]
jl 0x10006e98
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x10006e98
mov ecx, esi
call fcn.10004100
mov dword [ebp - 0x38], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x10006e90
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 0x10006ea7
push dword [eax - 0xc]
lea ecx, [ebp - 0x28]
push eax
call fcn.10004170
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 0x10006ec0
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.10005250
test eax, eax
je 0x100073db
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 0x10006f28
test edx, 0xffff0000
jne 0x10006f12
movzx eax, dx
mov ecx, eax
mov dword [ebp - 0x3c], eax
call fcn.10004f30
test eax, eax
je 0x10006f37
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x1c]
push eax
call fcn.100043f0
jmp 0x10006f34
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006f17
sub ecx, esi
sar ecx, 1
jmp 0x10006f2a
xor ecx, ecx
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.10004170
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 0x10006fa1
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x3c], eax
jl 0x10006f92
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x10006f92
mov ecx, edx
call fcn.10004100
mov edx, dword [ebp - 0x3c]
or ecx, 0xffffffff
mov dword [ebp - 0x30], eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10006f87
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 0x10006fa4
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
push esi
call fcn.10004170
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 0x10006fbd
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 0x1000749d
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 0x10007489
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 0x10007489
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 0x1002d7d8
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1000746c
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 0x10007421
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10007421
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 0x100070d7
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.1000be50
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 0x100070f5
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x24], 0x21
mov dword [ebp - 0x38], eax
cmp eax, 2
jb 0x10007080
jmp 0x10007421
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x48]
push edi
call fcn.10003b60
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.10003ad0
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 0x1000712d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call fcn.1000b89c
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x1000741e
cmp dword [ebp - 0x24], 0x21
jne 0x10007412
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], 0
jl 0x1000721d
push 0x1002d778
push edi
call fcn.1000de74
add esp, 8
test eax, eax
je 0x1000721d
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x1000721d
cmp dword [edi - 0xc], 0
jl 0x1000721d
push 0x1002d63c
push edi
call fcn.1000de74
add esp, 8
test eax, eax
je 0x1000721d
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x1000721d
cmp dword [edi - 0xc], 0
jl 0x10007272
push str..exe_
push edi
call fcn.1000de74
add esp, 8
test eax, eax
je 0x10007272
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x10007272
push ecx
push str..exe_
lea ecx, [ebp - 0x10]
call fcn.100036d0
add eax, 4
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.10009d80
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.10003ad0
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 0x1000721a
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.10003b60
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.10003670
mov eax, dword [ebp - 0x20]
mov ecx, str..exe
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10007303
test dx, dx
je 0x1000726b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10007303
add eax, 4
add ecx, 4
test dx, dx
jne 0x10007241
xor eax, eax
jmp 0x10007308
push ecx
push str..msi_
lea ecx, [ebp - 0x10]
call fcn.100036d0
cmp eax, 0xffffffff
je 0x100072c1
push ecx
push str..msi_
lea ecx, [ebp - 0x10]
call fcn.100036d0
add eax, 4
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10009d80
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
call fcn.10003ad0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.10003b40
jmp 0x1000721a
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.10003ad0
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.10003b40
lea ecx, [ebp - 0x28]
call fcn.10003b40
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.10003b40
jmp 0x100073c5
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x100073e5
mov edx, str..msi
lea ecx, [ebp - 0x20]
call fcn.10003400
test al, al
jne 0x100073e5
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.10003ad0
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 0x10007370
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 0x1000738c
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 0x100073aa
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 0x100073c5
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x18], 0
call fcn.10005250
mov edx, eax
test edx, edx
jne 0x10006d80
push 0x80004005
call fcn.10005470
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
push eax
call fcn.10003ad0
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 0x10007421
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10007421
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
push eax
call fcn.10003ad0
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
cmp dword [eax - 4], 1
jle 0x10007437
push dword [eax - 0xc]
call fcn.10003da0
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 0x100074a6
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 0x100074a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x100074a6
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 0x100074c2
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 0x100074e0
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 0x100074fb
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 0x1000751a
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