Function at 0x40c100
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d4d5b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x66a9c4]
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.00402c20
mov ecx, eax
test ecx, ecx
jne 0x40c14a
push 0x80004005
call fcn.004024f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.0040b120
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x18]
push str._scef.7z
push eax
call fcn.004083c0
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 0x40c19c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x63a478
lea ecx, [ebp - 0x14]
call fcn.00406540
mov byte [ebp - 4], 2
call fcn.00402c20
mov ecx, eax
test ecx, ecx
jne 0x40c1c2
push 0x80004005
call fcn.004024f0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 3
call fcn.00402c20
mov ecx, eax
test ecx, ecx
jne 0x40c1e6
push 0x80004005
call fcn.004024f0
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.0040cf40
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.00408e30
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 0x40c239
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 0x40c257
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 0x40c272
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 0x40c290
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 0x40c2c0
lock inc dword [esi + 4]
mov esi, dword [ecx + 4]
test esi, esi
je 0x40c2e9
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40c2e9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40c2e6
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 [0x6850d4]
mov esi, dword [ebx + 0x2c]
test eax, eax
jne 0x40c325
push 0x7c
call fcn.0058e551
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.004847b0
mov byte [ebp - 4], 0xc
mov dword [0x6850d4], eax
push 0
push ebx
push esi
mov esi, dword [ebp - 0x18]
mov ecx, eax
push esi
mov byte [ebp - 4], 0xa
call fcn.004849a0
test eax, eax
je 0x40c345
mov dword [ebp - 0x10], 1
jmp 0x40c383
mov ecx, dword [ebx + 0x50]
lea eax, [ecx + 1]
mov dword [ebx + 0x50], eax
cmp ecx, 3
jge 0x40c35c
mov ecx, ebx
call fcn.0040c3e0
jmp 0x40c37c
push 0x634864
push 0x636100
push str.cef_download
call fcn.0046db80
add esp, 0xc
mov ecx, ebx
push 0
call fcn.0040d2d0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 0xe
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40c3ad
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x40c3ad
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, edi
lock xadd dword [ebx + 8], eax
jne 0x40c3ad
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 0x40c3c9
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