Function at 0x40b6b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d253b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x663a90]
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 esi, ecx
mov dword [ebp - 0x34], esi
push str.xd_download_winnet...
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.00402f90
mov ecx, eax
test ecx, ecx
jne 0x40b700
push 0x80004005
call fcn.004037b0
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.0040aa60
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x14]
push str._s__cef.7z
push eax
call fcn.00407e20
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 0x40b753
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xorps xmm0, xmm0
lea ecx, [ebp - 0x28]
push 0x639bfc
movq qword [ebp - 0x1c], xmm0
call fcn.004035d0
mov byte [ebp - 4], 2
call fcn.00402f90
mov ecx, eax
test ecx, ecx
jne 0x40b781
push 0x80004005
call fcn.004037b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 3
call fcn.00402f90
mov ecx, eax
test ecx, ecx
jne 0x40b7a5
push 0x80004005
call fcn.004037b0
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.0040c590
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.00408b40
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 0x40b7f8
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 0x40b816
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 0x40b834
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 0x40b852
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push esi
push dword [esi + 0x2c]
mov esi, dword [ebp - 0x14]
push esi
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x38], esp
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 0xb
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], eax
test ebx, ebx
je 0x40b88c
lock inc dword [ebx + 4]
mov ebx, dword [ecx + 4]
test ebx, ebx
je 0x40b8b5
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x40b8b5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, edi
lock xadd dword [ebx + 8], eax
jne 0x40b8b2
mov eax, dword [ebx]
mov ecx, ebx
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 [0x6813c8]
test eax, eax
jne 0x40b8ee
push 0x7c
call fcn.0058a1e0
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.00488ed0
mov byte [ebp - 4], 0xc
mov dword [0x6813c8], eax
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.004890c0
test eax, eax
je 0x40b91d
push 0x6363e4
push 0x632728
push str.cef_download
call fcn.00485090
add esp, 0xc
mov dword [ebp - 0x20], 1
jmp 0x40b95e
mov ebx, dword [ebp - 0x34]
mov edx, dword [ebx + 0x50]
lea eax, [edx + 1]
mov dword [ebx + 0x50], eax
cmp edx, 3
jge 0x40b937
mov ecx, ebx
call fcn.0040b9d0
jmp 0x40b957
push 0x6363e4
push 0x632714
push str.cef_download
call fcn.00485090
add esp, 0xc
mov ecx, ebx
push 0
call fcn.0040c970
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0xe
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b988
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x40b988
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, edi
lock xadd dword [ebx + 8], eax
jne 0x40b988
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 0x40b9a4
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.00589cd3
mov esp, ebp
pop ebp
ret