Function at 0x40114a
Capabilities:
Get common file path
Get startup folder
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.00406e56
test eax, eax
je 0x40119d
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 0x4011cf
push str._Cant_parse_command_line_options_n
call fcn.00407352
pop ecx
jmp 0x4014ed
lea eax, [esp + 0x50]
push eax
push esi
push esi
call fcn.00401091
neg eax
sbb eax, eax
and eax, 7
add eax, 0x1c
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edi, dword [sym.imp.MSVCR110.dll_strcat_s]
push 0x40afb8
mov esi, 0x100
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.RPCA.conf
push 0x100
push 0x40d720
call edi
add esp, 0xc
lea eax, [esp + 0x50]
push eax
push 0x100
push 0x40d820
call esi
add esp, 0xc
push str.database
push 0x100
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 0x4012a0
call fcn.00401047
push dword [0x40d948]
call dword [sym.imp.libav.dll_Ordinal_44285]
pop ecx
xor eax, eax
jmp 0x4014ef
push str.debug
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x4012bb
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 0x401316
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 0x4011c9
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 0x40135f
push str.DatabaseDirectory
push dword [0x40d948]
call edi
mov ecx, dword [eax + 8]
call fcn.00406cfd
push dword [0x40d948]
call dword [sym.imp.libav.dll_Ordinal_44285]
add esp, 0xc
jmp 0x401299
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 0x4013ff
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 0x401504
mov eax, dword [eax + 8]
mov dword [0x40d6bc], eax
call fcn.00406f45
test eax, eax
jne 0x401459
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 0x4014a6
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.00407202
pop ecx
pop ecx
test eax, eax
je 0x40150a
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 0x4014c8
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 0x4014b0
mov ebx, dword [esp + 0x10]
push dword [0x40d684]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
call fcn.004071d2
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.004075b5
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 0x40152a
push 0x402376
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 0x4014a2
push str.Debug
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x40155d
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 0x40159c
test ecx, ecx
je 0x4014a2
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 0x4014a2
cmp ecx, eax
jg 0x4014a2
cmp eax, 0xffff
jg 0x4014a2
call dword [sym.imp.libav.dll_Ordinal_11]
mov dword [0x40d574], eax
test eax, eax
je 0x4014a2
push str.disable_cache
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x401620
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 0x4017f9
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 0x4016fe
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 0x401686
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 0x40172e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push dword [eax + 8]
add ecx, esi
push 0x40b16c
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 0x4016d0
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 0x40167c
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 0x4017d1
test esi, esi
je 0x40173f
push esi
call dword [sym.imp.MSVCR110.dll_free]
jmp 0x4014a1
push dword [0x40d574]
call dword [sym.imp.libav.dll_Ordinal_9]
jmp 0x4014a1
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 0x401759
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 0x4014a2
mov eax, dword [esp + 0x10]
push dword [eax + 8]
mov eax, dword [esp + 0x1c]
add eax, esi
push 0x40b16c
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 0x4017a3
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 0x40174f
mov word [ecx + esi], 0x2e
test esi, esi
je 0x4017f7
push esi
push 6
push dword [0x40d574]
call dword [sym.imp.libav.dll_Ordinal_13]
add esp, 0xc
push esi
test eax, eax
jne 0x401723
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 0x40181a
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 0x401841
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 0x401879
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 0x40197b
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 0x40197b
push 5
push str.none
push dword [esp + 0x20]
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4018e8
push esi
push dword [0x40d574]
call dword [sym.imp.libav.dll_Ordinal_46]
pop ecx
pop ecx
jmp 0x401968
push 0xa
push str.anonymous
push dword [esp + 0x20]
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x401919
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 0x401968
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 0x401926
sub edx, dword [esp + 0x1c]
cmp edx, 0x24
jbe 0x401957
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 0x4014a2
mov edx, 0x40d920
sub edx, ecx
mov al, byte [ecx]
mov byte [ecx + edx], al
inc ecx
test al, al
jne 0x40195e
push 0x401d5a
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 0x401999
or dword [0x40d570], 0x1000
push str.TemporaryDirectory
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x4019c9
push dword [eax + 8]
push 0xd
push dword [0x40d574]
call dword [sym.imp.libav.dll_Ordinal_13]
add esp, 0xc
test eax, eax
jne 0x4014a2
push 0x4023c5
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 0x401a02
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 0x401a29
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 0x401a44
or dword [0x40d570], 2
push str.Bytecode
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x401ba3
or dword [0x40d570], 0x2000
push str.BytecodeSecurity
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x401ad3
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 0x401a99
mov eax, ebx
jmp 0x401ab7
push 9
push str.Paranoid
push dword [esp + 0x24]
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4014a2
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 0x4014a2
push str.BytecodeUnsigned
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x401af1
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 0x401b78
push 9
push str.ForceJIT
push dword [eax + 8]
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x401b23
mov ecx, ebx
jmp 0x401b62
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 0x401b42
push 2
pop ecx
jmp 0x401b62
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 0x401ba3
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 0x401bbe
or dword [0x40d570], 8
push str.DevACOnly
push dword [0x40d948]
call edi
pop ecx
pop ecx
cmp dword [eax + 0x18], esi
je 0x401be5
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 0x401c10
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 0x4014a2
push str.DisableCertCheck
push dword [0x40d948]
call edi
pop ecx
pop ecx
mov ecx, dword [0x40d574]
cmp dword [eax + 0x18], esi
je 0x401c5a
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 0x4014a2
cmp dword [esp + 0x20], eax
je 0x401cf5
push str.TCPAddr
push dword [0x40d948]
call edi
mov edi, eax
pop ecx
pop ecx
cmp dword [edi + 0x18], esi
je 0x401cc6
mov esi, dword [edi + 8]
test esi, esi
je 0x401cdc
push 4
push 0x40b338
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.0040587c
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x4014a2
mov edi, dword [edi + 0x28]
test edi, edi
jne 0x401c8a
jmp 0x401cdc
push ecx
push esi
lea edx, [esp + 0x1c]
call fcn.0040587c
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x4014a2
mov esi, dword [esp + 0x14]
test esi, esi
je 0x401cf9
sub esp, 0xc
mov edx, esi
call fcn.00403dae
add esp, 0xc
mov ebx, eax
jmp 0x401cf9
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
jmp 0x4014aa