Function at 0x100040a0
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1009cbc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x100040e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x1e
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005132c
mov esp, ebp
pop ebp
ret
push 0x10086a98
lea eax, [ebp - 0x210]
push eax
push str._s_s_
push 0x104
push 0x100e1fb0
call fcn.1005211a
add esp, 0x14
mov ecx, 0x100e1fb0
call fcn.10003bf0
mov edi, eax
test edi, edi
je 0x100041e2
push 0x1000a
call fcn.1005218a
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000415b
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005132c
mov esp, ebp
pop ebp
ret
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x100041af
push esi
push str.MbaeSetDataPath
push 1
mov edx, 0x422
mov byte [esi + 0xffff], 0
mov ecx, str.....mbae_commonMbaeLog.cpp
call fcn.10001cf0
add esp, 0x10
push esi
call fcn.10052152
add esp, 4
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005132c
mov esp, ebp
pop ebp
ret
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005132c
mov esp, ebp
pop ebp
ret
push str.mbae_default.log
push 0x100e1fb0
lea eax, [ebp - 0x210]
push 0x10086350
push eax
call fcn.10004ed0
add esp, 0x10
lea eax, [ebp - 0x210]
push 0
push 0x80
push 4
push 0
push 1
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10004300
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x10004307
push 0x1000a
call fcn.1005218a
mov esi, eax
add esp, 4
test esi, esi
jne 0x10004272
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi + 0x11]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005132c
mov esp, ebp
pop ebp
ret
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 0x11
test eax, eax
jle 0x100042ca
push esi
push str.MbaeSetDataPath
push 1
mov edx, 0x42b
mov byte [esi + 0xffff], 0
mov ecx, str.....mbae_commonMbaeLog.cpp
call fcn.10001cf0
add esp, 0x10
push esi
call fcn.10052152
add esp, 4
mov eax, 0x11
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005132c
mov esp, ebp
pop ebp
ret
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
mov eax, 0x11
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005132c
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.1005132c
mov esp, ebp
pop ebp
ret