Function at 0x40bbb0
Capabilities:
Check mutex on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5796b9
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [esp + 0x18]
push eax
mov ecx, str.fastvc_download_run
mov edx, esi
call fcn.00406730
mov ecx, dword [esp + 0x18]
test ecx, ecx
mov edi, dword [esi + 0xc]
lea eax, [esi + 8]
je 0x40bc02
cmp ecx, eax
je 0x40bc08
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x1c], edi
je 0x40be9a
mov ecx, 0x5c3e04
mov eax, esi
call fcn.004067d0
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00401bd0
mov dword [esp + 0x48], 0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.MSVCR80.dll__wtoi]
mov edi, 0x400000
lea ebx, [esp + 0x14]
mov dword [esp + 0x1c], eax
call fcn.00407850
mov bl, 1
lea esi, [esp + 0x14]
mov byte [esp + 0x4c], bl
call fcn.004078e0
push str.ahpque_bqf
lea edi, [esp + 0x28]
call fcn.00401150
add esp, 8
mov byte [esp + 0x48], 2
cmp dword [eax + 0x18], 8
jb 0x40bc7f
mov edx, dword [eax + 4]
jmp 0x40bc82
lea edx, [eax + 4]
test edx, edx
jne 0x40bc8a
xor eax, eax
jmp 0x40bc9f
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bc90
sub eax, esi
sar eax, 1
push eax
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00407d80
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ecx
call edi
or ebx, 0xffffffff
cmp eax, ebx
je 0x40bd55
test al, 0x10
jne 0x40bd55
mov eax, dword [ebp + 8]
lea esi, [esp + 0x10]
call fcn.0040b5c0
mov esi, dword [esp + 0x18]
push esi
call fcn.0040b8a0
test eax, eax
jne 0x40bcf9
push esi
call fcn.0040ba80
mov byte [esp + 0x48], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bd1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x48], ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40bd3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.fastvc_toolbox_IsAlreadyDownload
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x40bdda
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40bdda
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esp + 0x48], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bda2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x48], ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40bd3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0040b4c0
test al, al
jne 0x40be42
mov byte [esp + 0x48], al
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40be06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x48], ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40bd3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x10]
push ecx
call edi
cmp eax, ebx
je 0x40be71
test al, 0x10
jne 0x40be71
mov eax, dword [ebp + 8]
lea esi, [esp + 0x10]
call fcn.0040b5c0
mov esi, dword [esp + 0x18]
push esi
call fcn.0040b8a0
test eax, eax
jne 0x40be71
push esi
call fcn.0040ba80
lea eax, [esp + 0x10]
call fcn.00401b90
lea eax, [esp + 0x14]
call fcn.00401b90
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4