Function at 0x40be10
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc60b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x65b9c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push str.xd_download_winnet...
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.00402a80
mov ecx, eax
test ecx, ecx
jne 0x40be5a
push 0x80004005
call fcn.00402350
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
call fcn.0040ae30
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x18]
push str._scef.7z
push eax
call fcn.00408250
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
add esp, 0xc
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bead
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x62ded8
lea ecx, [ebp - 0x14]
call fcn.004063d0
mov byte [ebp - 4], 2
call fcn.00402a80
mov ecx, eax
test ecx, ecx
jne 0x40bed3
push 0x80004005
call fcn.00402350
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 3
call fcn.00402a80
mov ecx, eax
test ecx, ecx
jne 0x40bef7
push 0x80004005
call fcn.00402350
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
push eax
call fcn.0040cc50
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
push ecx
lea ecx, [ebp - 0x10]
mov edx, eax
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00408cc0
add esp, 0xc
mov byte [ebp - 4], 7
mov eax, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bf4a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bf68
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
lea edx, [esi - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bf83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bfa1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 0xb
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], eax
test esi, esi
je 0x40bfd1
lock inc dword [esi + 4]
mov esi, dword [ecx + 4]
test esi, esi
je 0x40bffa
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40bffa
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40bff7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [ecx], eax
mov byte [ebp - 4], 0xc
mov eax, dword [0x675ae4]
mov esi, dword [ebx + 0x2c]
test eax, eax
jne 0x40c036
push 0x7c
call fcn.00586771
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.00480890
mov byte [ebp - 4], 0xc
mov dword [0x675ae4], eax
push 0
push ebx
push esi
mov esi, dword [ebp - 0x18]
mov ecx, eax
push esi
mov byte [ebp - 4], 0xa
call fcn.00480a80
test eax, eax
je 0x40c056
mov dword [ebp - 0x10], 1
jmp 0x40c094
mov ecx, dword [ebx + 0x50]
lea eax, [ecx + 1]
mov dword [ebx + 0x50], eax
cmp ecx, 3
jge 0x40c06d
mov ecx, ebx
call fcn.0040c0f0
jmp 0x40c08d
push 0x62b754
push 0x62d010
push str.cef_download
call fcn.0046c520
add esp, 0xc
mov ecx, ebx
push 0
call fcn.0040cff0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 0xe
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40c0be
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x40c0be
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, edi
lock xadd dword [ebx + 8], eax
jne 0x40c0be
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x40c0da
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret