Function at 0x403d08
Capabilities:
Check if file exists
Check mutex and terminate process on windows
Check mutex on windows
Contain obfuscated stackstrings
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ec
push esi
push edi
mov byte [ebp - 0x1bc], 0
push 0xff
push 0
lea eax, [ebp - 0x1bb]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
mov byte [ebp - 0x2bc], 0
push 0xff
push 0
lea eax, [ebp - 0x2bb]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
mov byte [ebp - 0x3bc], 0
push 0xff
push 0
lea eax, [ebp - 0x3bb]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
mov dword [ebp - 0x20], 0x34
and dword [ebp - 0x30], 0
call fcn.0040e840
test eax, eax
je 0x403d86
push 0x28
call dword [sym.imp.MSVCR110.dll_exit]
push 0
call sub.libav.dll_Ordinal_17
pop ecx
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x403db5
push dword [ebp - 0x80]
call sub.libav.dll_Ordinal_27
pop ecx
push eax
push str._Cant_initialize_libclamav:__s_n
call fcn.0040f090
pop ecx
pop ecx
push 0x28
pop eax
jmp 0x404911
push 0
push 0
push 2
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call sub.libav.dll_Ordinal_44284
add esp, 0x1c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403de9
push str._Cant_parse_command_line_options_n
call fcn.0040f090
pop ecx
push 0x28
pop eax
jmp 0x404911
push str.help
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
cmp dword [eax + 0x18], 0
je 0x403e13
call fcn.00404e6c
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44285
pop ecx
xor eax, eax
jmp 0x404911
lea eax, [ebp - 0x1bc]
push eax
push 0
push 0
push 0x23
push 0
call fcn.0040e105
add esp, 0x14
push 0x41329c
push 0x100
lea eax, [ebp - 0x1bc]
push eax
call dword [sym.imp.MSVCR110.dll_strcat_s]
add esp, 0xc
call fcn.00404915
push eax
push 0x100
lea eax, [ebp - 0x1bc]
push eax
call dword [sym.imp.MSVCR110.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x1bc]
push eax
push 0x100
lea eax, [ebp - 0x2bc]
push eax
call dword [sym.imp.MSVCR110.dll_strcpy_s]
add esp, 0xc
push 0x41329c
push 0x100
lea eax, [ebp - 0x2bc]
push eax
call dword [sym.imp.MSVCR110.dll_strcat_s]
add esp, 0xc
call fcn.00404915
push eax
push 0x100
lea eax, [ebp - 0x2bc]
push eax
call dword [sym.imp.MSVCR110.dll_strcat_s]
add esp, 0xc
xor eax, eax
inc eax
shl eax, 3
mov byte [ebp + eax - 0x64], 0x63
xor eax, eax
inc eax
imul eax, eax, 6
mov byte [ebp + eax - 0x64], 0x72
xor eax, eax
inc eax
imul eax, eax, 3
mov byte [ebp + eax - 0x64], 0x61
xor eax, eax
inc eax
imul eax, eax, 7
mov byte [ebp + eax - 0x64], 0x2e
xor eax, eax
inc eax
imul eax, eax, 0xb
mov byte [ebp + eax - 0x64], 0x66
xor eax, eax
inc eax
shl eax, 1
mov byte [ebp + eax - 0x64], 0x64
xor eax, eax
inc eax
imul eax, eax, 0xc
mov byte [ebp + eax - 0x64], 0
xor eax, eax
inc eax
imul eax, eax, 9
mov byte [ebp + eax - 0x64], 0x6f
xor eax, eax
inc eax
imul eax, eax, 5
mov byte [ebp + eax - 0x64], 0x65
xor eax, eax
inc eax
imul eax, eax, 0
mov byte [ebp + eax - 0x64], 0x55
xor eax, eax
inc eax
imul eax, eax, 0xa
mov byte [ebp + eax - 0x64], 0x6e
xor eax, eax
inc eax
shl eax, 2
mov byte [ebp + eax - 0x64], 0x74
xor eax, eax
inc eax
shl eax, 0
mov byte [ebp + eax - 0x64], 0x70
lea eax, [ebp - 0x64]
push eax
push 0x100
lea eax, [ebp - 0x2bc]
push eax
call dword [sym.imp.MSVCR110.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x1bc]
push eax
push 0x100
lea eax, [ebp - 0x3bc]
push eax
call dword [sym.imp.MSVCR110.dll_strcpy_s]
add esp, 0xc
push 0x4132a0
push 0x100
lea eax, [ebp - 0x3bc]
push eax
call dword [sym.imp.MSVCR110.dll_strcat_s]
add esp, 0xc
call fcn.00404915
push eax
push 0x100
lea eax, [ebp - 0x3bc]
push eax
call dword [sym.imp.MSVCR110.dll_strcat_s]
add esp, 0xc
xor eax, eax
inc eax
imul eax, eax, 0
mov byte [ebp + eax - 0x54], 0x55
xor eax, eax
inc eax
imul eax, eax, 6
mov byte [ebp + eax - 0x54], 0x72
xor eax, eax
inc eax
shl eax, 1
mov byte [ebp + eax - 0x54], 0x64
xor eax, eax
inc eax
imul eax, eax, 3
mov byte [ebp + eax - 0x54], 0x61
xor eax, eax
inc eax
shl eax, 0
mov byte [ebp + eax - 0x54], 0x70
xor eax, eax
inc eax
imul eax, eax, 5
mov byte [ebp + eax - 0x54], 0x65
xor eax, eax
inc eax
imul eax, eax, 0xb
mov byte [ebp + eax - 0x54], 0
xor eax, eax
inc eax
shl eax, 3
mov byte [ebp + eax - 0x54], 0x6c
xor eax, eax
inc eax
shl eax, 2
mov byte [ebp + eax - 0x54], 0x74
xor eax, eax
inc eax
imul eax, eax, 0xa
mov byte [ebp + eax - 0x54], 0x67
xor eax, eax
inc eax
imul eax, eax, 9
mov byte [ebp + eax - 0x54], 0x6f
xor eax, eax
inc eax
imul eax, eax, 7
mov byte [ebp + eax - 0x54], 0x2e
lea eax, [ebp - 0x54]
push eax
push 0x100
lea eax, [ebp - 0x3bc]
push eax
call dword [sym.imp.MSVCR110.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x1bc]
push eax
push 0x100
push 0x419980
call dword [sym.imp.MSVCR110.dll_strcpy_s]
add esp, 0xc
push str.database
push 0x100
push 0x419980
call dword [sym.imp.MSVCR110.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x2bc]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR110.dll__strdup]
pop ecx
mov dword [ebp - 0x68], eax
push dword [ebp - 4]
push 0
push 2
push 1
push 0
push 0
push dword [ebp - 0x28]
call sub.libav.dll_Ordinal_44284
add esp, 0x1c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4040de
push dword [ebp - 0x68]
push str.ERROR:_Cant_open_parse_the_config_file__s_n
call dword [sym.imp.MSVCR110.dll___iob_func]
push 0x20
pop ecx
shl ecx, 1
add eax, ecx
push eax
call dword [sym.imp.MSVCR110.dll_fprintf]
add esp, 0xc
push dword [ebp - 0x68]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push 0x28
pop eax
jmp 0x404911
push dword [ebp - 0x68]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push str.version
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
cmp dword [eax + 0x18], 0
je 0x404125
push str.DatabaseDirectory
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
push dword [eax + 8]
call fcn.0040e68f
pop ecx
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44285
pop ecx
xor eax, eax
jmp 0x404911
push str.stats_host_id
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
cmp dword [eax + 0x18], 0
je 0x4042c8
push str.stats_host_id
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
mov eax, dword [eax + 8]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], str.default
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov al, byte [eax]
mov byte [ebp - 0x17], al
mov ecx, dword [ebp - 0x40]
cmp al, byte [ecx]
jne 0x40419a
cmp byte [ebp - 0x17], 0
je 0x404194
mov eax, dword [ebp - 0x34]
mov al, byte [eax + 1]
mov byte [ebp - 0x19], al
mov ecx, dword [ebp - 0x40]
cmp al, byte [ecx + 1]
jne 0x40419a
add dword [ebp - 0x34], 2
add dword [ebp - 0x40], 2
cmp byte [ebp - 0x19], 0
jne 0x404160
and dword [ebp - 0x7c], 0
jmp 0x4041a2
sbb eax, eax
or eax, 1
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x4042b4
mov dword [ebp - 0x48], str.anonymous
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov al, byte [eax]
mov byte [ebp - 0x15], al
mov ecx, dword [ebp - 0x48]
cmp al, byte [ecx]
jne 0x4041ff
cmp byte [ebp - 0x15], 0
je 0x4041f9
mov eax, dword [ebp - 0x38]
mov al, byte [eax + 1]
mov byte [ebp - 0x18], al
mov ecx, dword [ebp - 0x48]
cmp al, byte [ecx + 1]
jne 0x4041ff
add dword [ebp - 0x38], 2
add dword [ebp - 0x48], 2
cmp byte [ebp - 0x18], 0
jne 0x4041c5
and dword [ebp - 0x78], 0
jmp 0x404207
sbb eax, eax
or eax, 1
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jne 0x40422e
push 9
pop ecx
mov esi, str.5b585e8f_3be5_11e3_bf0b_18037319526c
mov edi, 0x419940
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x4042b2
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
mov byte [ebp - 0x16], al
inc dword [ebp - 0x24]
cmp byte [ebp - 0x16], 0
jne 0x40423e
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x84]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x24
jbe 0x404278
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44285
pop ecx
push 0x28
pop eax
jmp 0x404911
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x3c], 0x419940
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x6c]
mov al, byte [eax]
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 0x3c]
mov cl, byte [ebp - 0xd]
mov byte [eax], cl
mov eax, dword [ebp - 0x6c]
inc eax
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp byte [ebp - 0xd], 0
jne 0x40428e
jmp 0x4042c8
mov eax, dword [str.default]
mov dword [0x419940], eax
mov eax, dword [0x41330c]
mov dword [0x419944], eax
push dword [ebp - 4]
call fcn.00404a5c
pop ecx
push str.HTTPProxyPassword
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
cmp dword [eax + 0x18], 0
je 0x40430d
lea eax, [ebp - 0x3ec]
push eax
push dword [ebp - 0x28]
call sub.libav.dll_Ordinal_44339
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x40430d
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44285
pop ecx
push 0x38
pop eax
jmp 0x404911
push str.Debug
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
cmp dword [eax + 0x18], 0
jne 0x404337
push str.debug
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
cmp dword [eax + 0x18], 0
je 0x40433c
call sub.libav.dll_Ordinal_6
push str.verbose
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
cmp dword [eax + 0x18], 0
je 0x40435a
xor eax, eax
inc eax
mov word [0x4195dc], ax
push str.quiet
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
cmp dword [eax + 0x18], 0
je 0x404378
xor eax, eax
inc eax
mov word [0x4195e0], ax
push str.no_warnings
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
cmp dword [eax + 0x18], 0
je 0x40439f
xor eax, eax
inc eax
mov word [0x4195e4], ax
xor eax, eax
inc eax
mov word [0x4195c0], ax
push str.stdout
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
cmp dword [eax + 0x18], 0
je 0x4043bd
xor eax, eax
inc eax
mov word [0x4195e8], ax
movsx eax, word [0x4195dc]
test eax, eax
je 0x4043d1
mov dword [ebp - 0x74], 1
jmp 0x4043e6
push str.LogVerbose
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x74], eax
mov ax, word [ebp - 0x74]
mov word [0x4195bc], ax
push str.LogTime
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
mov ax, word [eax + 0x18]
mov word [0x4195c4], ax
push str.LogFileMaxSize
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
mov eax, dword [eax + 0x10]
mov dword [0x4195d0], eax
cmp dword [0x4195d0], 0
je 0x404442
push str.LogRotate
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
mov ax, word [eax + 0x18]
mov word [0x4195cc], ax
push str.UpdateLogFile
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x18], 0
je 0x40449c
lea eax, [ebp - 0x3bc]
mov dword [0x4195d4], eax
push str._______________________________________n
call fcn.0040f051
pop ecx
test eax, eax
je 0x40449a
push dword [0x4195d4]
push str._Problem_with_internal_logger__UpdateLogFile___s_._n
call fcn.0040f090
pop ecx
pop ecx
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44285
pop ecx
push 0x3e
pop eax
jmp 0x404911
jmp 0x4044a3
and dword [0x4195d4], 0
push 0x40506e
call sub.libav.dll_Ordinal_33
pop ecx
push 0x419980
call dword [sym.imp.MSVCR110.dll__chdir]
pop ecx
test eax, eax
je 0x4044cf
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44285
pop ecx
push 0x32
pop eax
jmp 0x404911
push str.list_mirrors
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
cmp dword [eax + 0x18], 0
je 0x404546
push 1
lea eax, [ebp - 0xbc]
push eax
push str.mirrors.dat
call fcn.0040ab5d
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40451c
push str.Cant_read_mirrors.dat_n
call dword [sym.imp.MSVCR110.dll_printf]
pop ecx
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44285
pop ecx
push 0x37
pop eax
jmp 0x404911
lea eax, [ebp - 0xbc]
push eax
call fcn.0040af51
pop ecx
lea eax, [ebp - 0xbc]
push eax
call fcn.0040b254
pop ecx
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44285
pop ecx
xor eax, eax
jmp 0x404911
push str.PrivateMirror
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x18], 0
je 0x4046e0
push str.DatabaseMirror
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x18], 1
mov eax, dword [ebp - 8]
mov dword [eax + 0x1c], 1
push str..clamav.net
mov eax, dword [ebp - 0xc]
push dword [eax + 8]
call sub.libav.dll_Ordinal_44258
pop ecx
pop ecx
test eax, eax
je 0x4045b2
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44285
pop ecx
push 0x2d
pop eax
jmp 0x404911
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0
je 0x4045c8
mov eax, dword [ebp - 8]
push dword [eax + 8]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
mov eax, dword [ebp - 0xc]
push dword [eax + 8]
call dword [sym.imp.MSVCR110.dll__strdup]
pop ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0
jne 0x4045f5
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44285
pop ecx
push 0x4b
pop eax
jmp 0x404911
mov eax, dword [ebp - 8]
cmp dword [eax + 0x28], 0
jne 0x40462a
push 0x38
push 1
call dword [sym.imp.MSVCR110.dll_calloc]
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x28], 0
jne 0x40462a
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44285
pop ecx
push 0x4b
pop eax
jmp 0x404911
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40458b
mov eax, dword [ebp - 0x14]
and dword [eax + 0x28], 0
cmp dword [ebp - 8], 0
je 0x40469a
mov eax, dword [ebp - 8]
push dword [eax]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
mov eax, dword [ebp - 8]
push dword [eax + 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
mov eax, dword [ebp - 8]
push dword [eax + 8]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
mov dword [ebp - 8], eax
push dword [ebp - 0x14]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
jmp 0x404653
push str.no_dns
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 1
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x1c], 1
push str.ScriptedUpdates
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
and dword [eax + 0x18], 0
mov eax, dword [ebp - 0x14]
and dword [eax + 0x1c], 0
xor eax, eax
inc eax
imul eax, eax, 0
mov byte [eax + 0x419b80], 0
push 0x404dcc
push 2
call dword [sym.imp.MSVCR110.dll_signal]
pop ecx
pop ecx
push str.daemon
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
cmp dword [eax + 0x18], 0
je 0x40481e
push str.Checks
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jg 0x404741
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44285
pop ecx
push 0x29
pop eax
jmp 0x404911
xor eax, eax
inc eax
je 0x40475d
cmp dword [ebp - 0x70], 0x32
jle 0x40475d
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44285
pop ecx
push 0x29
pop eax
jmp 0x404911
mov eax, 0x15180
cdq
idiv dword [ebp - 0x70]
mov dword [ebp - 0x88], eax
push str.PidFile
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x18], 0
je 0x40479e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [0x4191a8], eax
push dword [0x4191a8]
call fcn.00404e12
pop ecx
and dword [0x419d80], 0
movsx eax, word [0x4191a4]
test eax, eax
jne 0x40481c
push dword [ebp - 0x28]
push dword [ebp - 4]
call fcn.00404fac
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
jle 0x404807
push str.OnErrorExecute
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x18], 0
je 0x4047ea
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x404803
push dword [ebp - 4]
push dword [ebp - 0x30]
push str.OnErrorExecute
call fcn.00403c68
add esp, 0xc
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x88]
imul eax, eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4047a5
jmp 0x40489d
push str.GlobalTsapriSpeedupUpdMutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x40484a
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x30
pop eax
jmp 0x404911
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40485d
push 0x30
pop eax
jmp 0x404911
call fcn.00405386
test eax, eax
je 0x404898
push str.GlobalTsapriSpeedupUpdMutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x28]
push dword [ebp - 4]
call fcn.00404fac
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
call fcn.00405073
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40489d
push 0x31
pop eax
jmp 0x404911
cmp dword [ebp - 0x20], 1
jle 0x4048d4
push str.OnErrorExecute
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44283
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x18], 0
je 0x4048d4
push dword [ebp - 4]
mov eax, dword [ebp - 0xc]
push dword [eax + 8]
push str.OnErrorExecute
call fcn.00403c68
add esp, 0xc
cmp dword [0x4191a8], 0
je 0x4048ea
push dword [0x4191a8]
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44285
pop ecx
call sub.libav.dll_Ordinal_49
cmp dword [ebp - 0x20], 0
jne 0x40490e
cmp dword [0x4191ac], 0
je 0x40490e
push 2
pop eax
jmp 0x404911
mov eax, dword [ebp - 0x20]
pop edi
pop esi
leave
ret