Function at 0x49e250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6b4
mov eax, dword [0x5c04b4]
xor eax, esp
mov dword [esp + 0x6b0], eax
push ebx
push esi
push edi
mov edi, dword [0x5c6138]
lea edx, [esp + 0x10]
push 0
push 0
push 0
push 0
push 0x10
push edx
xor eax, eax
mov byte [esp + 0x28], 0
push str.SrvExt
push 0
mov dword [esp + 0x31], eax
lea ecx, [edi + 0x20]
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov word [esp + 0x3d], ax
mov byte [esp + 0x3f], al
mov eax, dword [ecx]
push 0
push dword [edi + 0x2c]
call dword [eax + 0x10]
test eax, eax
je 0x49e2eb
push 0
push 0
push 0
push ecx
push 5
push str.Failed_to_read_log_maintenance_configuration
push 0
push 0
push 0
push 0x1000600
mov ecx, edi
call fcn.004ada60
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6b0]
xor ecx, esp
call fcn.00553510
mov esp, ebp
pop ebp
ret
mov al, byte [esp + 0x10]
test al, al
je 0x49e313
mov ecx, dword [esp + 0x11]
test ecx, ecx
je 0x49e4b3
mov edx, dword [esp + 0x15]
test edx, edx
je 0x49e4b3
cmp edx, ecx
ja 0x49e4b3
cmp byte [esp + 0x19], 0
je 0x49e34e
mov ecx, dword [esp + 0x1a]
test ecx, ecx
je 0x49e4b3
xor eax, eax
cmp ax, word [ecx]
je 0x49e4b3
call fcn.0050a030
test eax, eax
jne 0x49e34a
push eax
push eax
push eax
push ecx
push 5
push str.Log_maintenance:_Backup_directory_is_inaccessible_or_cannot_be_created
jmp 0x49e7c5
mov al, byte [esp + 0x10]
cmp byte [edi + 0x2213], 0
jne 0x49e35f
test al, al
je 0x49e4e6
mov dword [esp + 0x28], str.eScan_
xor esi, esi
mov dword [esp + 0x2c], str.ServerOnDemand_
mov edx, 0x104
lea ecx, [esp + 0x38]
call fcn.0050a320
test al, al
je 0x49e4a7
push str.Logs_
mov edx, 0x104
lea ecx, [esp + 0x3c]
call fcn.0052fae0
mov ebx, dword [esp + esi*4 + 0x2c]
lea ecx, [esp + 0x3c]
add esp, 4
mov edx, 0x104
push ebx
call fcn.0052fae0
add esp, 4
lea ecx, [esp + 0x38]
call fcn.0050a190
test al, al
je 0x49e4a7
mov cl, byte [esp + 0x19]
test cl, cl
je 0x49e422
mov edx, dword [esp + 0x1a]
lea ecx, [esp + 0x240]
call fcn.0044ed40
push 0x5760e0
mov edx, 0x104
lea ecx, [esp + 0x244]
call fcn.0052fae0
add esp, 4
lea ecx, [esp + 0x240]
mov edx, 0x104
push ebx
call fcn.0052fae0
add esp, 4
lea ecx, [esp + 0x240]
call fcn.0050a030
test eax, eax
je 0x49e4c6
mov cl, byte [esp + 0x19]
cmp byte [esp + 0x1e], 0
mov edx, dword [edi + 0x2214]
setne al
movzx eax, al
push eax
movsx eax, cl
lea ecx, [esp + 0x244]
neg eax
sbb eax, eax
and eax, ecx
push eax
movsx eax, byte [esp + 0x18]
neg eax
push ecx
sbb eax, eax
lea ecx, [esp + 0x44]
and eax, dword [esp + 0x1d]
push eax
call fcn.0044e720
add esp, 0x10
test eax, eax
je 0x49e4a7
push eax
lea eax, [esp + 0x3c]
push eax
push str.Log_maintenance:_Failed_to_reduce_on_demand_log_size__Dir:__s__Error:_0x_X_
lea eax, [esp + 0x454]
push 0x136
push eax
call fcn.0052fc70
add esp, 0x14
lea eax, [esp + 0x448]
push 0
push 0
push 0
push ecx
push 5
push eax
push 0
push 0
push 0
push 0x1000600
mov ecx, edi
call fcn.004ada60
inc esi
cmp esi, 2
jb 0x49e371
jmp 0x49e4e6
push 0
push 0
push 0
push ecx
push 5
push str.Log_maintenance_configuration_is_invalid
jmp 0x49e7c5
push 0
push 0
push 0
push ecx
push 5
push str.Log_maintenance:_On_demand_logs_backup_subdirectory_is_inaccessible_or_cannot_be_created
push 0
push 0
push 0
push 0x1000600
mov ecx, edi
call fcn.004ada60
mov eax, dword [esp + 0x11]
shl eax, 0x14
cmp byte [edi + 0x2213], 0
mov dword [esp + 0x34], eax
je 0x49e532
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0xc9
push 0x2a69c000
push 0
push dword [edi + 0x2214]
call fcn.005543c0
mov ecx, dword [esp + 0x28]
sub ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
sbb eax, edx
mov dword [esp + 0x30], eax
jmp 0x49e542
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0
xor esi, esi
mov dword [esp + 0x28], esi
cmp dword [edi + 0x1dbc], esi
jle 0x49e7d7
lea ebx, [edi + 0x9494]
lea ebx, [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x1db8]
push ebx
mov esi, dword [eax + esi*4]
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esi + 0xc]
test esi, esi
je 0x49e7a0
mov ecx, esi
call fcn.004f1b00
cmp dword [esi + 0x20], 0
je 0x49e7a0
cmp byte [edi + 0x2213], 0
jne 0x49e5ab
cmp byte [esp + 0x10], 0
je 0x49e736
xor eax, eax
xor ebx, ebx
push 0x206
push eax
mov word [esp + 0x40], ax
lea eax, [esp + 0x42]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp byte [esp + 0x19], bl
je 0x49e68f
lea eax, [esp + 0x38]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x49e7b7
cmp eax, 0x104
ja 0x49e7b7
lea eax, [esp + 0x240]
push eax
push ebx
push 0x589fcc
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x49e7b7
lea ecx, [esp + 0x240]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49e620
sub ecx, edx
lea eax, [esp + 0x240]
sar ecx, 1
cmp ecx, 0x104
jae 0x49e654
push eax
lea eax, [esp + 0x3c]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
jmp 0x49e677
push 0x103
push eax
lea eax, [esp + 0x40]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
xor eax, eax
mov word [esp + 0x23e], ax
mov edx, 5
lea ecx, [esp + 0x38]
call fcn.004f0e30
mov ebx, eax
test ebx, ebx
je 0x49e7b7
mov eax, dword [esp + 0x20]
cmp dword [eax + 4], 2
jne 0x49e6ba
test ebx, ebx
je 0x49e6ba
cmp byte [esp + 0x1f], 0
mov esi, dword [esp + 0x24]
jne 0x49e6be
push dword [esp + 0x30]
mov ecx, dword [eax + 0xc]
push esi
call fcn.004f3120
add esp, 8
jmp 0x49e6be
mov esi, dword [esp + 0x24]
cmp byte [esp + 0x10], 0
je 0x49e6cb
mov ecx, dword [esp + 0x34]
jmp 0x49e6cd
xor ecx, ecx
mov eax, dword [esp + 0x15]
xor edx, edx
push edx
shl eax, 0x14
push eax
push edx
push ecx
mov ecx, dword [esp + 0x30]
mov edx, ebx
push dword [esp + 0x40]
push esi
mov ecx, dword [ecx + 0xc]
call fcn.004f2aa0
add esp, 0x18
test ebx, ebx
je 0x49e736
mov ecx, ebx
call fcn.004f1b00
mov esi, dword [ebx + 0x20]
push ebx
call fcn.004f0dc0
add esp, 4
lea ecx, [esp + 0x38]
test esi, esi
je 0x49e731
cmp byte [esp + 0x1e], 0
mov edx, dword [esp + 0x1a]
setne al
movzx eax, al
push eax
mov eax, dword [esp + 0x24]
add eax, 0x10
push eax
call fcn.0044e5e0
add esp, 8
jmp 0x49e736
call fcn.00509d60
mov eax, dword [esp + 0x20]
mov esi, dword [eax + 0xc]
mov ecx, esi
mov ebx, dword [esi + 0x48]
call fcn.004f1b00
cmp byte [edi + 0x2218], 0
mov esi, dword [esi + 0x20]
je 0x49e76c
test esi, esi
je 0x49e76c
mov ecx, dword [edi + 0x2219]
test ecx, ecx
je 0x49e78e
imul eax, ebx, 0x64
xor edx, edx
div esi
cmp eax, ecx
ja 0x49e78e
cmp byte [esp + 0x10], 0
je 0x49e79a
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx + 0x10]
call fcn.00501bb0
test edx, edx
jl 0x49e79a
jg 0x49e78e
cmp eax, dword [esp + 0x34]
jbe 0x49e79a
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0xc]
call fcn.004f2270
lea ebx, [edi + 0x9494]
mov esi, dword [esp + 0x28]
inc esi
mov dword [esp + 0x28], esi
cmp esi, dword [edi + 0x1dbc]
jl 0x49e560
jmp 0x49e7d7
push 0
push 0
push 0
push ecx
push 5
push str.Log_Maintenance:_Failed_to_create_temp_file.
push 0
push 0
push 0
push 0x1000600
mov ecx, edi
call fcn.004ada60
mov eax, dword [edi + 0x20]
lea edx, [esp + 0x10]
push 0
push 0
push 0
push 0
push 0x10
push edx
push str.SrvExt
lea ecx, [edi + 0x20]
push 0
push dword [edi + 0x2c]
call dword [eax + 0x18]
mov ecx, dword [esp + 0x6bc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00553510
mov esp, ebp
pop ebp
ret