Function at 0x40c510
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d00fb
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x6619c4]
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.00402bb0
mov ecx, eax
test ecx, ecx
jne 0x40c55a
push 0x80004005
call fcn.00402480
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.0040b530
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x18]
push str._scef.7z
push eax
call fcn.00408880
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 0x40c5ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x632030
lea ecx, [ebp - 0x14]
call fcn.00406970
mov byte [ebp - 4], 2
call fcn.00402bb0
mov ecx, eax
test ecx, ecx
jne 0x40c5d2
push 0x80004005
call fcn.00402480
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 3
call fcn.00402bb0
mov ecx, eax
test ecx, ecx
jne 0x40c5f6
push 0x80004005
call fcn.00402480
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.0040d350
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.004092f0
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 0x40c649
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 0x40c667
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 0x40c682
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 0x40c6a0
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 0x40c6d0
lock inc dword [esi + 4]
mov esi, dword [ecx + 4]
test esi, esi
je 0x40c6f9
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40c6f9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40c6f6
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 [0x67be88]
mov esi, dword [ebx + 0x2c]
test eax, eax
jne 0x40c735
push 0x7c
call fcn.00589bce
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.00484a00
mov byte [ebp - 4], 0xc
mov dword [0x67be88], eax
push 0
push ebx
push esi
mov esi, dword [ebp - 0x18]
mov ecx, eax
push esi
mov byte [ebp - 4], 0xa
call fcn.00484bf0
test eax, eax
je 0x40c755
mov dword [ebp - 0x10], 1
jmp 0x40c793
mov ecx, dword [ebx + 0x50]
lea eax, [ecx + 1]
mov dword [ebx + 0x50], eax
cmp ecx, 3
jge 0x40c76c
mov ecx, ebx
call fcn.0040c7f0
jmp 0x40c78c
push 0x62f864
push 0x631140
push str.cef_download
call fcn.0046d540
add esp, 0xc
mov ecx, ebx
push 0
call fcn.0040d6e0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 0xe
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40c7bd
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x40c7bd
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, edi
lock xadd dword [ebx + 8], eax
jne 0x40c7bd
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 0x40c7d9
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