Function at 0x40bfd0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d1c0b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x6639c4]
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 0x40c01a
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.0040aff0
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x18]
push str._scef.7z
push eax
call fcn.00408350
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 0x40c06c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x634000
lea ecx, [ebp - 0x14]
call fcn.004064d0
mov byte [ebp - 4], 2
call fcn.00402bb0
mov ecx, eax
test ecx, ecx
jne 0x40c092
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 0x40c0b6
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.0040ce10
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.00408dc0
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 0x40c109
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 0x40c127
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 0x40c142
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 0x40c160
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 0x40c190
lock inc dword [esi + 4]
mov esi, dword [ecx + 4]
test esi, esi
je 0x40c1b9
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40c1b9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40c1b6
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 [0x67ded4]
mov esi, dword [ebx + 0x2c]
test eax, eax
jne 0x40c1f5
push 0x7c
call fcn.0058b701
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.00483a50
mov byte [ebp - 4], 0xc
mov dword [0x67ded4], eax
push 0
push ebx
push esi
mov esi, dword [ebp - 0x18]
mov ecx, eax
push esi
mov byte [ebp - 4], 0xa
call fcn.00483c40
test eax, eax
je 0x40c215
mov dword [ebp - 0x10], 1
jmp 0x40c253
mov ecx, dword [ebx + 0x50]
lea eax, [ecx + 1]
mov dword [ebx + 0x50], eax
cmp ecx, 3
jge 0x40c22c
mov ecx, ebx
call fcn.0040c2b0
jmp 0x40c24c
push 0x631874
push 0x633110
push str.cef_download
call fcn.0046d340
add esp, 0xc
mov ecx, ebx
push 0
call fcn.0040d1a0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 0xe
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40c27d
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x40c27d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, edi
lock xadd dword [ebx + 8], eax
jne 0x40c27d
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 0x40c299
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