Function at 0x10007530
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027568
mov eax, dword fs:[0]
push eax
sub esp, 0x70
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 - 0x38], ecx
mov dword [ebp - 4], 1
xor ebx, ebx
mov dword [ecx], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.10005250
mov ecx, eax
test ecx, ecx
jne 0x1000759b
push 0x80004005
call fcn.10005470
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x3c], eax
add eax, 0x10
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 2
call fcn.10005250
mov ecx, eax
test ecx, ecx
jne 0x100075c2
push 0x80004005
call fcn.10005470
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 3
call fcn.10005250
mov ecx, eax
test ecx, ecx
jne 0x100075e6
push 0x80004005
call fcn.10005470
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x20], edi
push 0x3c
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 4
push 0
push eax
call fcn.1000e250
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x7c]
add esp, 0xc
mov dword [ebp - 0x7c], 0x3c
mov dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 0x4c], 0xffffffff
push ecx
push 0
mov dword [ebp - 0x44], 0xffffffff
push dword [eax - 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x100078d3
mov eax, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x68]
mov dword [ebp - 0x30], eax
call fcn.10005250
push eax
push ebx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
call fcn.10004560
mov byte [ebp - 4], 5
lea ebx, [esi - 0x10]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], ebx
lea edx, [eax - 0x10]
mov dword [ebp - 0x18], edx
cmp edx, ebx
je 0x100076c7
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x100076b5
mov ecx, dword [edx]
cmp ecx, dword [ebx]
jne 0x100076b5
mov ecx, edx
call fcn.10004100
or ebx, 0xffffffff
mov dword [ebp - 0x34], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x100076aa
mov esi, dword [ebp - 0x24]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x18]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
jmp 0x100076ca
push dword [eax - 0xc]
lea ecx, [ebp - 0x1c]
push eax
call fcn.10004170
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
or ebx, 0xffffffff
mov byte [ebp - 4], 4
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100076e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x50]
lea ecx, [ebp - 0x24]
call fcn.10003b60
mov byte [ebp - 4], 6
lea ecx, [edi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x30], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x34], eax
cmp eax, ecx
je 0x1000774d
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
jl 0x1000773e
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x1000773e
mov ecx, dword [ebp - 0x34]
call fcn.10004100
mov dword [ebp - 0x34], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x10007736
mov edi, dword [ebp - 0x30]
push edi
mov ecx, dword [edi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x34]
lea edi, [eax + 0x10]
mov dword [ebp - 0x20], edi
jmp 0x1000774d
push dword [edx - 0xc]
lea ecx, [ebp - 0x20]
push edx
call fcn.10004170
mov edi, dword [ebp - 0x20]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000776b
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
jne 0x10007792
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
jmp 0x100078d9
push 0
push dword [ebp - 0x64]
push esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jne 0x100077b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
jmp 0x100078d9
xor eax, eax
mov edx, 0x800000
cmp dword [ebp - 0x70], 2
cmove eax, edx
push eax
push 0
push 0
push 0
push edi
push 0x1002d7d8
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x100078d3
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov ecx, eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x1000780c
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax - 4], 1
jle 0x10007823
push dword [eax - 0xc]
lea ecx, [ebp + 0xc]
call fcn.10003da0
mov eax, dword [ebp + 0xc]
push 0x1002d7f8
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1001877e
add esp, 0xc
test eax, eax
jne 0x100078d3
cmp dword [ebp - 0x24], eax
je 0x100078dc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x100078d3
mov eax, dword [ebp - 0x10]
inc eax
push eax
call fcn.1000be50
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100078c7
mov ecx, dword [ebp - 0x10]
inc ecx
push ecx
push 0
push ebx
call fcn.1000e250
add esp, 0xc
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x10]
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x100078ac
push dword [ebp - 0x28]
push 1
push dword [ebp - 0x24]
push ebx
call fcn.100189fd
add esp, 0x10
push ebx
call fcn.1000b89c
mov ecx, dword [ebp - 0x38]
add esp, 4
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
add dword [ecx], eax
test eax, eax
jmp 0x10007840
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x10], 0
jmp 0x100078dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x28]
call fcn.10018acb
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
add esp, 4
test ebx, ebx
je 0x100078f8
push ebx
call eax
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10007902
push ecx
call eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x10007910
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
or ebx, 0xffffffff
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1000792e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10007949
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3c]
mov eax, ebx
mov byte [ebp - 4], 1
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10007964
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10007982
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100079a1
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