Function at 0x40e460
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f182b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
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.004039e0
mov ecx, eax
test ecx, ecx
jne 0x40e4ad
push 0x80004005
call fcn.00404200
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.0040d3c0
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x14]
push str._scef.7z
push eax
call fcn.00409f70
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x28]
add esp, 0xc
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e500
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xorps xmm0, xmm0
lea ecx, [ebp - 0x28]
push 0x659bf0
movq qword [ebp - 0x1c], xmm0
call fcn.00404020
mov byte [ebp - 4], 2
call fcn.004039e0
mov ecx, eax
test ecx, ecx
jne 0x40e52e
push 0x80004005
call fcn.00404200
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 3
call fcn.004039e0
mov ecx, eax
test ecx, ecx
jne 0x40e552
push 0x80004005
call fcn.00404200
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 4
push eax
call fcn.0040f320
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
push ecx
lea ecx, [ebp - 0x24]
mov edx, eax
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040b490
add esp, 0xc
mov byte [ebp - 4], 7
mov eax, edi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e5a5
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 - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e5c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e5e1
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 - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e5ff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x34], esp
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 0xb
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], eax
test esi, esi
je 0x40e62f
lock inc dword [esi + 4]
mov esi, dword [ecx + 4]
test esi, esi
je 0x40e658
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40e658
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40e655
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ecx], eax
mov byte [ebp - 4], 0xc
mov eax, dword [0x6ac8f0]
mov esi, dword [ebx + 0x2c]
test eax, eax
jne 0x40e694
push 0x7c
call fcn.005a8f62
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.004a5340
mov byte [ebp - 4], 0xc
mov dword [0x6ac8f0], eax
push 0
push ebx
push esi
mov esi, dword [ebp - 0x14]
mov ecx, eax
push esi
mov byte [ebp - 4], 0xa
call fcn.004a5530
test eax, eax
je 0x40e6b4
mov dword [ebp - 0x20], 1
jmp 0x40e6f2
mov edx, dword [ebx + 0x50]
lea eax, [edx + 1]
mov dword [ebx + 0x50], eax
cmp edx, 3
jge 0x40e6cb
mov ecx, ebx
call fcn.0040e760
jmp 0x40e6eb
push 0x658bf4
push 0x654ed4
push str.cef_download
call fcn.0049eb60
add esp, 0xc
mov ecx, ebx
push 0
call fcn.0040f6c0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0xe
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40e71c
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x40e71c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, edi
lock xadd dword [ebx + 8], eax
jne 0x40e71c
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 0x40e738
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret