Function at 0x40bed0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d063b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x6609c4]
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.00402b70
mov ecx, eax
test ecx, ecx
jne 0x40bf1a
push 0x80004005
call fcn.00402440
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.0040aef0
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x18]
push str._scef.7z
push eax
call fcn.004082f0
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 0x40bf6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x631fc8
lea ecx, [ebp - 0x14]
call fcn.00406470
mov byte [ebp - 4], 2
call fcn.00402b70
mov ecx, eax
test ecx, ecx
jne 0x40bf93
push 0x80004005
call fcn.00402440
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 3
call fcn.00402b70
mov ecx, eax
test ecx, ecx
jne 0x40bfb7
push 0x80004005
call fcn.00402440
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.0040cd10
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.00408d60
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 0x40c00a
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 0x40c028
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 0x40c043
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 0x40c061
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 0x40c091
lock inc dword [esi + 4]
mov esi, dword [ecx + 4]
test esi, esi
je 0x40c0ba
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40c0ba
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40c0b7
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 [0x67ad2c]
mov esi, dword [ebx + 0x2c]
test eax, eax
jne 0x40c0f6
push 0x7c
call fcn.0058a26e
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.004826e0
mov byte [ebp - 4], 0xc
mov dword [0x67ad2c], eax
push 0
push ebx
push esi
mov esi, dword [ebp - 0x18]
mov ecx, eax
push esi
mov byte [ebp - 4], 0xa
call fcn.004828d0
test eax, eax
je 0x40c116
mov dword [ebp - 0x10], 1
jmp 0x40c154
mov ecx, dword [ebx + 0x50]
lea eax, [ecx + 1]
mov dword [ebx + 0x50], eax
cmp ecx, 3
jge 0x40c12d
mov ecx, ebx
call fcn.0040c1b0
jmp 0x40c14d
push 0x62f864
push 0x631100
push str.cef_download
call fcn.0046c9a0
add esp, 0xc
mov ecx, ebx
push 0
call fcn.0040d0b0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 0xe
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40c17e
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x40c17e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, edi
lock xadd dword [ebx + 8], eax
jne 0x40c17e
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 0x40c19a
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