Function at 0x10007c50
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 0x10025848
mov eax, dword fs:[0]
push eax
sub esp, 0x70
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 - 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.10001520
mov ecx, eax
test ecx, ecx
jne 0x10007cbb
push 0x80004005
call fcn.10001170
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.10001520
mov ecx, eax
test ecx, ecx
jne 0x10007ce2
push 0x80004005
call fcn.10001170
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 3
call fcn.10001520
mov ecx, eax
test ecx, ecx
jne 0x10007d06
push 0x80004005
call fcn.10001170
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.1000d490
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 0x10007ff3
mov eax, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x68]
mov dword [ebp - 0x30], eax
call fcn.10001520
push eax
push ebx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
call fcn.10004960
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 0x10007de7
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x10007dd5
mov ecx, dword [edx]
cmp ecx, dword [ebx]
jne 0x10007dd5
mov ecx, edx
call fcn.10004880
or ebx, 0xffffffff
mov dword [ebp - 0x34], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x10007dca
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 0x10007dea
push dword [eax - 0xc]
lea ecx, [ebp - 0x1c]
push eax
call fcn.10004580
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 0x10007e02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x50]
lea ecx, [ebp - 0x24]
call fcn.10004230
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 0x10007e6d
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
jl 0x10007e5e
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x10007e5e
mov ecx, dword [ebp - 0x34]
call fcn.10004880
mov dword [ebp - 0x34], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x10007e56
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 0x10007e6d
push dword [edx - 0xc]
lea ecx, [ebp - 0x20]
push edx
call fcn.10004580
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 0x10007e8b
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 0x10007eb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
jmp 0x10007ff9
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 0x10007ed5
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
jmp 0x10007ff9
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 0x1002c530
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x10007ff3
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 0x10007f2c
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 0x10007f43
push dword [eax - 0xc]
lea ecx, [ebp + 0xc]
call fcn.10004470
mov eax, dword [ebp + 0xc]
push 0x1002c550
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100115aa
add esp, 0xc
test eax, eax
jne 0x10007ff3
cmp dword [ebp - 0x24], eax
je 0x10007ffc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x10007ff3
mov eax, dword [ebp - 0x10]
inc eax
push eax
call fcn.1000b05c
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10007fe7
mov ecx, dword [ebp - 0x10]
inc ecx
push ecx
push 0
push ebx
call fcn.1000d490
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 0x10007fcc
push dword [ebp - 0x28]
push 1
push dword [ebp - 0x24]
push ebx
call fcn.100173df
add esp, 0x10
push ebx
call fcn.1000aa44
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 0x10007f60
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x10], 0
jmp 0x10007ffc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x28]
call fcn.10011667
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
add esp, 4
test ebx, ebx
je 0x10008018
push ebx
call eax
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10008022
push ecx
call eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x10008030
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 0x1000804e
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 0x10008069
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 0x10008084
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 0x100080a2
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 0x100080c1
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