Function at 0x4010cb
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0xff
lea eax, [esp + 0x55]
push ebx
push eax
mov edi, edx
mov esi, ecx
mov byte [esp + 0x5c], bl
call sub.MSVCR110.dll_memset
add esp, 0xc
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ebx
call fcn.00406dc9
test eax, eax
je 0x40111e
push 1
call dword [sym.imp.MSVCR110.dll_exit]
push ebx
push ebx
xor ebx, ebx
inc ebx
push ebx
push ebx
push edi
push esi
xor esi, esi
push esi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.libav.dll_Ordinal_44284]
add esp, 0x1c
mov dword [0x40d948], eax
test eax, eax
jne 0x401150
push str._Cant_parse_command_line_options_n
call fcn.004072c5
pop ecx
jmp 0x401460
lea eax, [esp + 0x50]
push eax
push esi
push esi
push 0x23
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edi, dword [sym.imp.MSVCR110.dll_strcat_s]
push 0x40afb8
mov esi, pe_nt_image_headers32
lea eax, [esp + 0x54]
push esi
push eax
call edi
add esp, 0xc
call section..text
push eax
lea eax, [esp + 0x54]
push esi
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x50]
push eax
push esi
mov esi, dword [sym.imp.MSVCR110.dll_strcpy_s]
push 0x40d720
call esi
add esp, 0xc
push str.RPCAPro.conf
push pe_nt_image_headers32
push 0x40d720
call edi
add esp, 0xc
lea eax, [esp + 0x50]
push eax
push pe_nt_image_headers32
push 0x40d820
call esi
add esp, 0xc
push str.database
push pe_nt_image_headers32
push 0x40d820
call edi
mov edi, dword [sym.imp.libav.dll_Ordinal_44283]
add esp, 0xc
push str.help
push dword [0x40d948]
call edi
xor esi, esi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x401213
call fcn.00401047
push dword [0x40d948]
call dword [sym.imp.libav.dll_Ordinal_44285]
pop ecx
xor eax, eax
jmp 0x401462
push str.debug
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x40122e
mov word [0x40d578], bx
push 0x40d720
call dword [sym.imp.MSVCR110.dll__strdup]
pop ecx
push dword [0x40d948]
mov dword [esp + 0x1c], eax
push esi
push ebx
push ebx
push esi
push esi
push 0x40d720
call dword [sym.imp.libav.dll_Ordinal_44284]
add esp, 0x1c
mov dword [0x40d948], eax
test eax, eax
jne 0x401289
mov esi, dword [esp + 0x18]
push esi
push str.ERROR:_Cant_open_parse_the_config_file__s_n
call dword [sym.imp.MSVCR110.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR110.dll_fprintf]
add esp, 0xc
push esi
call dword [sym.imp.MSVCR110.dll_free]
jmp 0x40114a
push dword [esp + 0x18]
call dword [sym.imp.MSVCR110.dll_free]
mov dword [esp], str.version
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x4012d2
push str.DatabaseDirectory
push dword [0x40d948]
call edi
mov ecx, dword [eax + 8]
call fcn.00406c70
push dword [0x40d948]
call dword [sym.imp.libav.dll_Ordinal_44285]
add esp, 0xc
jmp 0x40120c
push str.LogFileUnlock
push dword [0x40d948]
call edi
xor ecx, ecx
cmp dword [eax + 0x18], esi
push str.LogTime
push dword [0x40d948]
sete cl
mov word [0x40d1f0], cx
call edi
mov ax, word [eax + 0x18]
push str.LogClean
push dword [0x40d948]
mov word [0x40d6c4], ax
call edi
mov ax, word [eax + 0x18]
push str.LogFileMaxSize
push dword [0x40d948]
mov word [0x40d688], ax
call edi
mov eax, dword [eax + 0x10]
push str.LogVerbose
push dword [0x40d948]
mov dword [0x40d6cc], eax
call edi
mov ax, word [eax + 0x18]
add esp, 0x28
mov word [0x40d6c8], ax
mov word [0x40d6c0], ax
cmp dword [0x40d6cc], esi
je 0x401372
push str.LogRotate
push dword [0x40d948]
call edi
mov ax, word [eax + 0x18]
pop ecx
pop ecx
mov word [0x40d6d0], ax
push str.SendBufTimeout
push dword [0x40d948]
call edi
mov ax, word [eax + 0x10]
push str.LogFile
push dword [0x40d948]
mov word [0x40d1f4], ax
call edi
add esp, 0x10
cmp dword [eax + 0x18], esi
je 0x401477
mov eax, dword [eax + 8]
mov dword [0x40d6bc], eax
call fcn.00406eb8
test eax, eax
jne 0x4013cc
push str.ERROR:_LogFile_requires_full_path._n
call dword [sym.imp.MSVCR110.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR110.dll_fprintf]
pop ecx
pop ecx
jmp 0x401419
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.MSVCR110.dll__time64]
pop ecx
push 0x20
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.libav.dll_Ordinal_44209]
add esp, 0xc
push eax
push str._Started_at__s
call fcn.00407175
pop ecx
pop ecx
test eax, eax
je 0x40147d
push str.ERROR:_Cant_initialize_the_internal_logger_n
call dword [sym.imp.MSVCR110.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR110.dll_fprintf]
pop ecx
pop ecx
mov dword [esp + 0x10], ebx
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40143b
xor ebx, ebx
mov eax, dword [0x40d684]
push dword [eax + ebx*4]
call dword [sym.imp.libav.dll_Ordinal_44331]
inc ebx
pop ecx
cmp ebx, esi
jb 0x401423
mov ebx, dword [esp + 0x10]
push dword [0x40d684]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
call fcn.00407145
push dword [0x40d948]
call dword [sym.imp.libav.dll_Ordinal_44285]
pop ecx
call dword [sym.imp.libav.dll_Ordinal_49]
mov eax, ebx
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407528
mov esp, ebp
pop ebp
ret
mov dword [0x40d6bc], esi
push str.DevLiblog
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x40149d
push 0x4022e9
call dword [sym.imp.libav.dll_Ordinal_33]
pop ecx
push esi
call dword [sym.imp.libav.dll_Ordinal_17]
pop ecx
test eax, eax
jne 0x401415
push str.Debug
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x4014d0
call dword [sym.imp.libav.dll_Ordinal_6]
push 2
pop eax
mov word [0x40d6c0], ax
push str.TCPSocket
push dword [0x40d948]
call edi
cmp dword [eax + 0x18], esi
mov ecx, esi
push str.LocalSocket
push dword [0x40d948]
cmovne ecx, ebx
mov dword [esp + 0x30], ecx
call edi
add esp, 0x10
cmp dword [eax + 0x18], esi
mov ecx, esi
cmovne ecx, ebx
cmp dword [esp + 0x20], esi
jne 0x40150f
test ecx, ecx
je 0x401415
push str.StreamMinPort
push dword [0x40d948]
call edi
mov eax, dword [eax + 0x10]
push str.StreamMaxPort
push dword [0x40d948]
mov dword [esp + 0x28], eax
call edi
mov ecx, dword [esp + 0x28]
mov eax, dword [eax + 0x10]
add esp, 0x10
cmp ecx, 0x400
jl 0x401415
cmp ecx, eax
jg 0x401415
cmp eax, 0xffff
jg 0x401415
call dword [sym.imp.libav.dll_Ordinal_11]
mov dword [0x40d574], eax
test eax, eax
je 0x401415
push str.disable_cache
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x401593
push esi
push ebx
push 0x18
push dword [0x40d574]
call dword [sym.imp.libav.dll_Ordinal_12]
add esp, 0x10
push 0x1770
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.DetectPUA
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x40176c
or dword [0x40d570], 0x10
push str.ExcludePUA
push dword [0x40d948]
call edi
pop ecx
pop ecx
mov ecx, eax
xor eax, eax
mov dword [esp + 0x10], ecx
mov esi, eax
cmp dword [ecx + 0x18], eax
je 0x401671
or dword [0x40d570], 0x200
mov edx, eax
mov dword [esp + 0x18], edx
mov ecx, dword [ecx + 8]
lea eax, [ecx + 1]
mov dword [esp + 0x1c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4015f9
sub ecx, dword [esp + 0x1c]
lea eax, [ecx + 3]
add eax, edx
push eax
push esi
call dword [sym.imp.MSVCR110.dll_realloc]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4016a1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push dword [eax + 8]
add ecx, esi
push 0x40b170
push ecx
call dword [sym.imp.MSVCR110.dll_sprintf]
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [eax + 8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401643
sub ecx, edx
mov edx, dword [esp + 0x18]
inc edx
add edx, ecx
mov ecx, dword [esp + 0x10]
xor eax, eax
mov byte [edx + esi], al
mov ecx, dword [ecx + 0x28]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x4015ef
mov word [edx + esi], 0x2e
push str.IncludePUA
push dword [0x40d948]
call edi
mov edx, eax
xor eax, eax
pop ecx
pop ecx
mov dword [esp + 0x10], edx
cmp dword [edx + 0x18], eax
je 0x401744
test esi, esi
je 0x4016b2
push esi
call dword [sym.imp.MSVCR110.dll_free]
jmp 0x401414
push dword [0x40d574]
call dword [sym.imp.libav.dll_Ordinal_9]
jmp 0x401414
or dword [0x40d570], 0x100
mov ecx, eax
mov dword [esp + 0x18], eax
mov edx, dword [edx + 8]
lea eax, [edx + 1]
mov dword [esp + 0x1c], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x4016cc
sub edx, dword [esp + 0x1c]
lea eax, [ecx + 3]
add eax, edx
push eax
push esi
call dword [sym.imp.MSVCR110.dll_realloc]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x401415
mov eax, dword [esp + 0x10]
push dword [eax + 8]
mov eax, dword [esp + 0x1c]
add eax, esi
push 0x40b170
push eax
call dword [sym.imp.MSVCR110.dll_sprintf]
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, dword [eax + 8]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x401716
sub edx, ecx
mov ecx, dword [esp + 0x18]
inc ecx
add ecx, edx
mov edx, dword [esp + 0x10]
xor eax, eax
mov byte [ecx + esi], al
mov edx, dword [edx + 0x28]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edx
test edx, edx
jne 0x4016c2
mov word [ecx + esi], 0x2e
test esi, esi
je 0x40176a
push esi
push 6
push dword [0x40d574]
call dword [sym.imp.libav.dll_Ordinal_13]
add esp, 0xc
push esi
test eax, eax
jne 0x401696
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
xor esi, esi
push str.StatsEnabled
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x40178d
push dword [0x40d574]
call dword [sym.imp.libav.dll_Ordinal_70]
pop ecx
push str.StatsPEDisabled
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x4017b4
push esi
push ebx
push 0x19
push dword [0x40d574]
call dword [sym.imp.libav.dll_Ordinal_12]
add esp, 0x10
push str.StatsTimeout
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x4017ec
push str.StatsTimeout
push dword [0x40d948]
call edi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1a
push dword [0x40d574]
call dword [sym.imp.libav.dll_Ordinal_12]
add esp, 0x18
push str.StatsHostID
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x4018ee
push str.StatsHostID
push dword [0x40d948]
call edi
mov eax, dword [eax + 8]
push 8
push str.default
push eax
mov dword [esp + 0x2c], eax
call sub.MSVCR110.dll_memcmp
add esp, 0x14
test eax, eax
je 0x4018ee
push 5
push str.none
push dword [esp + 0x20]
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x40185b
push esi
push dword [0x40d574]
call dword [sym.imp.libav.dll_Ordinal_46]
pop ecx
pop ecx
jmp 0x4018db
push 0xa
push str.anonymous
push dword [esp + 0x20]
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x40188c
push 9
pop ecx
mov esi, str.5b585e8f_3be5_11e3_bf0b_18037319526c
mov edi, 0x40d920
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.libav.dll_Ordinal_44283]
xor esi, esi
jmp 0x4018db
mov ecx, dword [esp + 0x18]
mov edx, ecx
lea eax, [edx + 1]
mov dword [esp + 0x1c], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x401899
sub edx, dword [esp + 0x1c]
cmp edx, 0x24
jbe 0x4018ca
push esi
push dword [0x40d574]
call dword [sym.imp.libav.dll_Ordinal_42]
push dword [0x40d574]
call dword [sym.imp.libav.dll_Ordinal_9]
add esp, 0xc
jmp 0x401415
mov edx, 0x40d920
sub edx, ecx
mov al, byte [ecx]
mov byte [ecx + edx], al
inc ecx
test al, al
jne 0x4018d1
push 0x401ccd
push dword [0x40d574]
call dword [sym.imp.libav.dll_Ordinal_46]
pop ecx
pop ecx
push str.OfficialDatabaseOnly
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x40190c
or dword [0x40d570], 0x1000
push str.TemporaryDirectory
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x40193c
push dword [eax + 8]
push 0xd
push dword [0x40d574]
call dword [sym.imp.libav.dll_Ordinal_13]
add esp, 0xc
test eax, eax
jne 0x401415
push 0x402338
push dword [0x40d574]
call dword [sym.imp.libav.dll_Ordinal_34]
push str.LeaveTemporaryFiles
push dword [0x40d948]
call edi
add esp, 0x10
cmp dword [eax + 0x18], esi
je 0x401975
push esi
push ebx
push 0xe
push dword [0x40d574]
call dword [sym.imp.libav.dll_Ordinal_12]
add esp, 0x10
push str.ForceToDisk
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x40199c
push esi
push ebx
push 0x17
push dword [0x40d574]
call dword [sym.imp.libav.dll_Ordinal_12]
add esp, 0x10
push str.PhishingSignatures
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x4019b7
or dword [0x40d570], 2
push str.Bytecode
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x401b16
or dword [0x40d570], 0x2000
push str.BytecodeSecurity
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x401a46
mov eax, dword [eax + 8]
push 0xc
push str.TrustSigned
push eax
mov dword [esp + 0x28], eax
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x401a0c
mov eax, ebx
jmp 0x401a2a
push 9
push str.Paranoid
push dword [esp + 0x24]
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x401415
push 2
pop eax
cdq
push edx
push eax
push 0xf
push dword [0x40d574]
call dword [sym.imp.libav.dll_Ordinal_12]
add esp, 0x10
test eax, eax
jne 0x401415
push str.BytecodeUnsigned
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x401a64
or dword [0x40d570], 0x8000
push str.BytecodeMode
push dword [0x40d948]
call edi
pop ecx
pop ecx
mov dword [esp + 0x1c], eax
cmp dword [eax + 0x18], esi
je 0x401aeb
push 9
push str.ForceJIT
push dword [eax + 8]
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x401a96
mov ecx, ebx
jmp 0x401ad5
mov eax, dword [esp + 0x1c]
push 0x11
push str.ForceInterpreter
push dword [eax + 8]
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x401ab5
push 2
pop ecx
jmp 0x401ad5
mov eax, dword [esp + 0x1c]
push 5
push str.Test
push dword [eax + 8]
call sub.MSVCR110.dll_memcmp
add esp, 0xc
xor ecx, ecx
push 3
pop edx
test eax, eax
cmove ecx, edx
mov eax, ecx
cdq
push edx
push eax
push 0x11
push dword [0x40d574]
call dword [sym.imp.libav.dll_Ordinal_12]
add esp, 0x10
push str.BytecodeTimeout
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x401b16
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x10
push dword [0x40d574]
call dword [sym.imp.libav.dll_Ordinal_12]
add esp, 0x10
push str.PhishingScanURLs
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x401b31
or dword [0x40d570], 8
push str.DevACOnly
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x401b58
push esi
push ebx
push 0xa
push dword [0x40d574]
call dword [sym.imp.libav.dll_Ordinal_12]
add esp, 0x10
push str.DevACDepth
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x401b83
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xc
push dword [0x40d574]
call dword [sym.imp.libav.dll_Ordinal_12]
add esp, 0x10
push dword [0x40d570]
lea eax, [esp + 0x28]
push eax
push dword [0x40d574]
push 0x40d820
call dword [sym.imp.libav.dll_Ordinal_18]
add esp, 0x10
test eax, eax
jne 0x401415
push str.DisableCertCheck
push dword [0x40d948]
call edi
pop ecx
pop ecx
mov ecx, dword [0x40d574]
cmp dword [eax + 0x18], esi
je 0x401bcd
mov eax, dword [ecx + 0x70]
or dword [eax], 0x20000
push ecx
call dword [sym.imp.libav.dll_Ordinal_8]
pop ecx
test eax, eax
jne 0x401415
cmp dword [esp + 0x20], eax
je 0x401c68
push str.TCPAddr
push dword [0x40d948]
call edi
mov edi, eax
pop ecx
pop ecx
cmp dword [edi + 0x18], esi
je 0x401c39
mov esi, dword [edi + 8]
test esi, esi
je 0x401c4f
push 4
push 0x40b33c
push esi
call sub.MSVCR110.dll_memcmp
xor ecx, ecx
test eax, eax
cmove esi, ecx
add esp, 8
lea edx, [esp + 0x18]
push esi
call fcn.004057ef
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x401415
mov edi, dword [edi + 0x28]
test edi, edi
jne 0x401bfd
jmp 0x401c4f
push ecx
push esi
lea edx, [esp + 0x1c]
call fcn.004057ef
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x401415
mov esi, dword [esp + 0x14]
test esi, esi
je 0x401c6c
sub esp, 0xc
mov edx, esi
call fcn.00403d21
add esp, 0xc
mov ebx, eax
jmp 0x401c6c
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
jmp 0x40141d