Function at 0x40b059
Capabilities:
Check if file exists
Check mutex on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x433774]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.magicPlus_downloadmini_mutex
push 1
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x110], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40b0a3
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x110], edi
jmp 0x40b3dd
push dword [ebp + 8]
push edi
call fcn.0040954e
pop ecx
push eax
call fcn.00409664
push edi
call fcn.00405ccd
pop ecx
lea ecx, [ebp - 0x3c]
call fcn.00405cfc
lea eax, [ebp - 0x58]
push str._res.cab
push eax
lea ebx, [ebp - 0x3c]
call fcn.0040c8c9
lea eax, [ebp - 0x74]
push 0x42eb8c
push eax
call fcn.0040c8c9
lea eax, [ebp - 0x90]
push str._reaper.cfg
push eax
call fcn.0040c8c9
add esp, 0x18
cmp dword [0x436984], edi
jne 0x40b10a
push 1
call fcn.0040e1e2
pop ecx
mov dword [0x436984], eax
sub esp, 0x1c
lea eax, [ebp - 0x58]
mov esi, esp
mov dword [ebp - 0x10c], esp
push eax
call fcn.0040b561
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x10c], esp
push 0x42ef60
call fcn.0040b587
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x10c], esp
push str.133
call fcn.0040b587
mov ecx, dword [ebp + 8]
call fcn.00406375
push 0x42e920
lea esi, [ebp - 0xe8]
mov dword [ebp - 0xec], vtable.cab::CCabExtract.0
call fcn.0040b587
lea eax, [ebp - 0x108]
push 0x42ead4
push eax
lea ebx, [ebp - 0x3c]
mov dword [ebp - 0xcc], edi
call fcn.0040c8c9
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x40b18e
mov eax, dword [eax]
cmp dword [ebp - 0x44], 8
mov ecx, dword [ebp - 0x58]
jae 0x40b19a
lea ecx, [ebp - 0x58]
push eax
push ecx
lea edi, [ebp - 0xec]
call fcn.00407c0e
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
lea esi, [ebp - 0x108]
call fcn.0040c1b5
lea ecx, [ebp - 0xec]
call fcn.00407bd6
cmp dword [ebp - 0x60], 8
mov eax, dword [ebp - 0x74]
jae 0x40b1cf
lea eax, [ebp - 0x74]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
cmp eax, 0xffffffff
je 0x40b469
cmp dword [ebp - 0x7c], 8
mov eax, dword [ebp - 0x90]
jae 0x40b1f3
lea eax, [ebp - 0x90]
push eax
call esi
cmp eax, 0xffffffff
je 0x40b469
push str.3.1.2.3
lea esi, [ebp - 0xc8]
call fcn.0040b587
xor edi, edi
push edi
call fcn.0040954e
pop ecx
push eax
lea eax, [ebp - 0x20]
call fcn.0040964a
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x40b22d
lea eax, [ebp - 0x20]
push eax
push str.magicPlus_downloadmini_channel:_s
call fcn.0040903f
cmp dword [ebp - 0xc], 0x10
mov esi, dword [ebp - 0x20]
pop ecx
pop ecx
jae 0x40b246
lea esi, [ebp - 0x20]
push edi
call fcn.00405ccd
pop ecx
lea eax, [ebp - 0xac]
push eax
mov ecx, esi
call fcn.00406059
mov eax, dword [0x43698c]
cmp eax, edi
jne 0x40b27e
push 8
call fcn.0040e1e2
pop ecx
cmp eax, edi
je 0x40b277
mov dword [eax], edi
mov dword [eax + 4], edi
jmp 0x40b279
xor eax, eax
mov dword [0x43698c], eax
sub esp, 0x1c
mov ebx, eax
lea eax, [ebp - 0xac]
mov esi, esp
mov dword [ebp - 0x10c], esp
push eax
call fcn.0040b561
sub esp, 0x1c
lea eax, [ebp - 0xc8]
mov esi, esp
mov dword [ebp - 0x10c], esp
push eax
call fcn.0040b561
sub esp, 0x1c
lea eax, [ebp - 0x74]
mov esi, esp
mov dword [ebp - 0x10c], esp
push eax
call fcn.0040b561
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov ecx, ebx
call fcn.0040812e
mov eax, dword [0x43698c]
cmp eax, edi
jne 0x40b2f3
push 8
call fcn.0040e1e2
pop ecx
cmp eax, edi
je 0x40b2ec
mov dword [eax], edi
mov dword [eax + 4], edi
jmp 0x40b2ee
xor eax, eax
mov dword [0x43698c], eax
push str.process_start
mov ecx, eax
call fcn.0040845f
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x1f4
push esi
call ebx
push edi
call fcn.0040954e
pop ecx
call fcn.004095bc
test eax, eax
mov eax, dword [0x43698c]
je 0x40b351
cmp eax, edi
jne 0x40b340
push 8
call fcn.0040e1e2
pop ecx
cmp eax, edi
je 0x40b339
mov dword [eax], edi
mov dword [eax + 4], edi
jmp 0x40b33b
xor eax, eax
mov dword [0x43698c], eax
push str.app_been_installed
mov ecx, eax
call fcn.0040845f
push esi
call ebx
jmp 0x40b38b
cmp eax, edi
jne 0x40b36f
push 8
call fcn.0040e1e2
pop ecx
cmp eax, edi
je 0x40b368
mov dword [eax], edi
mov dword [eax + 4], edi
jmp 0x40b36a
xor eax, eax
mov dword [0x43698c], eax
push str.app_not_install
mov ecx, eax
call fcn.0040845f
push esi
call ebx
push edi
call fcn.0040954e
pop ecx
push eax
call fcn.00409809
push 1
xor edi, edi
lea esi, [ebp - 0xac]
call fcn.0040c1b5
push edi
push 1
lea ecx, [ebp - 0x20]
call fcn.00402ec6
push 1
lea esi, [ebp - 0xc8]
call fcn.0040c1b5
push 1
lea esi, [ebp - 0x90]
call fcn.0040c1b5
push 1
lea esi, [ebp - 0x74]
call fcn.0040c1b5
push 1
lea esi, [ebp - 0x58]
call fcn.0040c1b5
push 1
lea esi, [ebp - 0x3c]
call fcn.0040c1b5
push 0x1f40
call ebx
mov eax, dword [0x43698c]
cmp eax, edi
jne 0x40b407
push 8
call fcn.0040e1e2
pop ecx
cmp eax, edi
je 0x40b400
mov dword [eax], edi
mov dword [eax + 4], edi
jmp 0x40b402
xor eax, eax
mov dword [0x43698c], eax
call fcn.004084f2
push 0x1f4
call ebx
mov eax, dword [0x436990]
cmp eax, edi
je 0x40b431
push eax
mov esi, eax
call fcn.0040afca
push esi
call fcn.0040e186
pop ecx
mov dword [0x436990], edi
mov eax, dword [0x43698c]
cmp eax, edi
je 0x40b447
push eax
call fcn.0040e186
pop ecx
mov dword [0x43698c], edi
cmp dword [ebp - 0x110], edi
je 0x40b492
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b492
push ebx
xor edi, edi
lea esi, [ebp - 0x90]
call fcn.0040c1b5
push ebx
lea esi, [ebp - 0x74]
call fcn.0040c1b5
push ebx
lea esi, [ebp - 0x58]
call fcn.0040c1b5
push ebx
lea esi, [ebp - 0x3c]
call fcn.0040c1b5
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040db3d
leave
ret 0x10