Function at 0x40b7d0
Capabilities:
Check for time delay via gettickcount
Check mutex on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
sub esp, 0x70
mov eax, 0x420544
call fcn.00412bcc
sub esp, 0x798
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x58]
call fcn.00409253
mov dword [ebp - 4], ebx
cmp byte [ebp - 0x28], bl
jne 0x40b807
push 0xfffffffffffffffd
pop ebx
jmp 0x40bcc8
lea ecx, [ebp - 0x58]
call fcn.0040cd44
mov byte [0x43077c], al
mov edi, ebx
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x68], ebx
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x40]
call fcn.0040a1a0
mov byte [ebp - 4], 2
call fcn.0040c661
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 0x40]
call fcn.004110ac
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
mov dword [0x430780], eax
mov dword [ebp + 0x38], ebx
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x3c], 0xf
mov dword [ebp + 0x38], ebx
mov byte [ebp + 0x28], bl
mov byte [ebp - 4], 3
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 0x10
cmovae eax, dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.004107d0
pop ecx
pop ecx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x390]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40b938
call fcn.0040ca1a
cmp eax, 3
jae 0x40b8bf
push str.Global190
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x40b8bf
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp byte [ebp - 0x390], 0
jne 0x40b8cc
mov eax, ebx
jmp 0x40b8d9
lea eax, [ebp - 0x390]
push eax
call fcn.00412340
pop ecx
push eax
lea eax, [ebp - 0x390]
push eax
lea ecx, [ebp + 0x28]
call fcn.00404022
jmp 0x40b931
lea eax, [ebp + 0x28]
mov edx, dword [ebp + 0x3c]
cmp edx, 0x10
mov esi, dword [ebp + 0x28]
cmovae eax, esi
cmp byte [eax + ecx - 1], 0x5c
jne 0x40b93e
lea eax, [ecx - 1]
push eax
push ebx
lea eax, [ebp - 0x1cc]
push eax
lea ecx, [ebp + 0x28]
call fcn.004062fc
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp + 0x28]
call fcn.0040959e
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1cc]
call fcn.004015ab
mov ecx, dword [ebp + 0x38]
test ecx, ecx
jne 0x40b8eb
mov edx, dword [ebp + 0x3c]
mov esi, dword [ebp + 0x28]
lea eax, [ebp + 0x28]
cmp edx, 0x10
cmovae eax, esi
push 1
push eax
call fcn.0040fefc
pop ecx
pop ecx
test al, al
jne 0x40b967
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp + 0x28]
call fcn.00403f8e
push dword [ebp + 0x7c]
lea ecx, [ebp - 0xdc]
call fcn.004013ed
mov byte [ebp - 4], 6
push str.args
lea ecx, [ebp - 0x1b4]
call fcn.004013ed
mov byte [ebp - 4], 7
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp + 0x40]
call fcn.00411395
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1b4]
call fcn.004015ab
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xdc]
call fcn.004015ab
push str.temp
lea ecx, [ebp - 0xac]
call fcn.004013ed
mov byte [ebp - 4], 8
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp + 0x40]
call fcn.00411395
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xac]
call fcn.004015ab
push str.path
lea ecx, [ebp - 0x19c]
call fcn.004013ed
mov byte [ebp - 4], 9
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp + 0x40]
call fcn.00411395
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x19c]
call fcn.004015ab
push 0x1a
lea eax, [ebp - 0x25c]
push eax
call fcn.0041067d
pop ecx
pop ecx
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x40ba4c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x16c]
call fcn.004013ed
mov byte [ebp - 4], 0xb
push str.appdata
lea ecx, [ebp - 0x10c]
call fcn.004013ed
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp + 0x40]
call fcn.00411395
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x10c]
call fcn.004015ab
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x16c]
call fcn.004015ab
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x25c]
call fcn.004015ab
push 0x1c
lea eax, [ebp - 0x28c]
push eax
call fcn.0041067d
pop ecx
pop ecx
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 0x10
jb 0x40bacf
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xc4]
call fcn.004013ed
mov byte [ebp - 4], 0xe
push str.appdata_local
lea ecx, [ebp - 0x13c]
call fcn.004013ed
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp + 0x40]
call fcn.00411395
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x13c]
call fcn.004015ab
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xc4]
call fcn.004015ab
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28c]
call fcn.004015ab
push 0x26
lea eax, [ebp - 0x214]
push eax
call fcn.0041067d
pop ecx
pop ecx
mov byte [ebp - 4], 0x10
cmp dword [eax + 0x14], 0x10
jb 0x40bb52
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x124]
call fcn.004013ed
mov byte [ebp - 4], 0x11
push str.program_files
lea ecx, [ebp - 0xf4]
call fcn.004013ed
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp + 0x40]
call fcn.00411395
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xf4]
call fcn.004015ab
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x124]
call fcn.004015ab
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x214]
call fcn.004015ab
lea eax, [ebp - 0x70]
push eax
call fcn.0040ef99
pop ecx
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 0x10
cmovae eax, dword [ebp - 0x70]
push eax
lea ecx, [ebp - 0x184]
call fcn.004013ed
mov byte [ebp - 4], 0x14
push str.uniqueid
lea ecx, [ebp - 0x154]
call fcn.004013ed
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp + 0x40]
call fcn.00411395
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x154]
call fcn.004015ab
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x184]
call fcn.004015ab
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.004015ab
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x94]
call fcn.004015ab
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x28]
call fcn.004015ab
lea ecx, [ebp - 0x58]
call fcn.0040ca02
test al, al
je 0x40bcdb
mov eax, dword [ebp - 0x4c]
mov esi, dword [eax + 4]
test esi, esi
je 0x40bcdb
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40bc74
mov esi, eax
test esi, esi
jne 0x40bc67
test esi, esi
je 0x40bcdb
test dword [esi], 0x10000
je 0x40bcdb
push str.USER32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40bcdb
push str.MessageBoxA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bcdb
push 4
push str.Question
push dword [esi + 0x1c]
push ebx
call eax
cmp eax, 6
je 0x40bcdb
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x40]
call fcn.0040a346
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x60]
call fcn.0040afbb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00409535
mov eax, ebx
jmp 0x40c15d
mov byte [ebp - 4], 0x16
mov ecx, ebx
mov dword [ebp + 0x70], ecx
mov dword [ebp + 0x1c], ecx
mov eax, dword [ebp - 0x4c]
mov esi, dword [eax + 4]
mov eax, ebx
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x58], esi
test esi, esi
je 0x40be90
inc eax
mov dword [ebp + 0x20], eax
push eax
lea ecx, [ebp + 0x60]
call fcn.0040cc21
push dword [ebp + 0x24]
lea ecx, [ebp + 0x60]
call fcn.0040b061
mov edi, eax
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 0x20]
mov dword [edi + 4], eax
call fcn.0040ca1a
cmp eax, 3
jae 0x40bd37
mov dword [ebp + 0x5c], ebx
lea eax, [ebp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [edi], esi
test dword [esi], 0x800
je 0x40bd90
call fcn.0040e2fa
test eax, eax
jne 0x40bd53
call fcn.0040e395
test eax, eax
je 0x40bd90
or dword [esi], 0x80000000
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x18], 0xf
mov byte [ebp + 0x57], bl
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
mov byte [ebp - 4], 0x17
lea eax, [ebp + 4]
push eax
lea ecx, [ebp + 0x40]
call fcn.004110ac
mov byte [ebp - 4], 0x16
lea ecx, [ebp + 4]
call fcn.004015ab
jmp 0x40be7f
test dword [esi], 0x1000
je 0x40bdf2
call fcn.0040ca1a
cmp eax, 3
jae 0x40bdc0
push str.Local1782
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp], eax
test eax, eax
je 0x40bdc0
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp byte [0x42e894], 0
jne 0x40bdcd
mov ecx, ebx
jmp 0x40bdda
push 0x42e894
call fcn.00412340
pop ecx
mov ecx, eax
lea eax, [edi + 0x1c]
mov dword [ebp + 0x58], eax
push ecx
push 0x42e894
mov ecx, eax
call fcn.00404022
jmp 0x40be74
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp + 0x40]
push eax
push esi
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x58]
call fcn.004097f8
mov byte [ebp - 4], 0x18
lea ecx, [edi + 0x1c]
mov dword [ebp + 0x58], ecx
push eax
call fcn.0040959e
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x274]
call fcn.004015ab
cmp dword [edi + 0x2c], ebx
jne 0x40be64
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ec_08x__extract_failed
push edi
call fcn.0040ca38
add esp, 0xc
test byte [esi], 0x20
je 0x40be74
lea ecx, [ebp - 0x7c]
call fcn.00412a77
push 0x42b1bc
lea eax, [ebp - 0x7c]
push eax
call fcn.00412b6e
mov eax, dword [esi]
and eax, 0x10
mov ecx, dword [ebp + 0x70]
or ecx, eax
mov dword [ebp + 0x70], ecx
mov dword [ebp + 0x1c], ecx
push dword [ebp + 0x58]
lea ecx, [ebp + 0x40]
call fcn.004110ac
mov esi, dword [esi + 0xc]
mov eax, dword [ebp + 0x20]
mov dword [ebp + 0x24], eax
mov edi, dword [ebp + 0x60]
jmp 0x40bcf2
mov dword [ebp + 0x6c], ebx
mov esi, edi
mov dword [ebp + 0x6c], esi
mov eax, dword [ebp + 0x64]
cmp esi, eax
je 0x40bfc0
mov eax, dword [esi]
test byte [eax], 2
je 0x40bfb8
cmp dword [esi + 0x2c], ebx
je 0x40bfb8
test dword [eax], 0x80000000
jne 0x40bfb8
test dword [eax], 0x800
je 0x40bee5
call fcn.0040e2fa
test eax, eax
jne 0x40bfb8
call fcn.0040e395
test eax, eax
jne 0x40bfb8
push 1
lea eax, [ebp + 0x40]
push eax
mov eax, dword [esi]
push dword [eax + 0x1c]
lea eax, [ebp - 0x244]
push eax
call fcn.0040f3ab
add esp, 0x10
mov byte [ebp - 4], 0x19
push eax
lea ecx, [esi + 0x34]
call fcn.0040959e
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x244]
call fcn.004015ab
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call fcn.0040c16f
pop ecx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0040cda9
mov dword [ebp + 0x5c], eax
mov byte [ebp - 4], 0x1a
push dword [esi + 4]
lea eax, [ebp - 0x1fc]
push eax
call fcn.0040cd5c
add esp, 0x10
mov ebx, eax
mov byte [ebp - 4], 0x1b
push str.pid:
lea ecx, [ebp - 0x1e4]
call fcn.004013ed
mov byte [ebp - 4], 0x1c
push dword [ebp + 0x5c]
push 0xffffffffffffffff
push 0
push ebx
mov ecx, eax
call fcn.004050b9
push eax
lea ecx, [ebp + 0x40]
call fcn.00411395
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x1e4]
call fcn.004015ab
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x1fc]
call fcn.004015ab
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x22c]
call fcn.004015ab
xor ebx, ebx
add esi, 0x50
jmp 0x40be95
cmp dword [ebp + 0x70], 0
je 0x40c028
mov esi, edi
mov dword [ebp + 0x6c], esi
cmp esi, eax
je 0x40bff8
cmp dword [esi + 8], 0
je 0x40bff3
mov eax, dword [esi]
test byte [eax], 8
je 0x40bff0
push 0xffffffffffffffff
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x64]
add esi, 0x50
jmp 0x40bfc8
mov dword [ebp + 0x6c], edi
cmp edi, eax
je 0x40c028
mov eax, dword [edi]
test byte [eax], 0x10
je 0x40c01d
cmp dword [edi + 0x2c], ebx
je 0x40c01d
lea eax, [edi + 0x1c]
cmp dword [eax + 0x14], 0x10
jb 0x40c016
mov eax, dword [eax]
push eax
call fcn.0040b10b
pop ecx
add edi, 0x50
mov dword [ebp + 0x6c], edi
mov eax, dword [ebp + 0x64]
jmp 0x40bffb
mov dword [ebp - 4], 2
mov esi, ebx
jmp 0x40c12e
call fcn.0040ec87
call fcn.0041130f
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x40]
call fcn.0040a346
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x60]
call fcn.0040afbb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00409535
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret