Function at 0x10019b00
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10090220
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x1009cbc0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x22c], ecx
xor eax, eax
mov word [ebp - 0x228], ax
push 0x206
push eax
lea eax, [ebp - 0x226]
push eax
call fcn.10055aa0
add esp, 0xc
mov dword [ebp - 0x23c], 0xffffffff
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x240], 0x140007
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [eax + 0x1e]
mov dword [ebp - 0x234], 0
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
mov dword [ebp - 0x238], esi
push 0x2000a
call fcn.1005218a
add esp, 4
mov edi, eax
test esi, esi
je 0x10019c68
test edi, edi
je 0x10019c68
push 0x1008aacc
push 0xffff
push edi
call fcn.1005211a
add esp, 0xc
test eax, eax
jle 0x10019c53
xor eax, eax
mov word [edi + 0x1fffe], ax
push 0xffffffffffffffff
push edi
mov ecx, edi
call fcn.10001b80
inc eax
push eax
push esi
lea eax, [ebp - 0x234]
push eax
call fcn.10052d14
add esp, 0x14
test eax, eax
je 0x10019c2a
push ebx
push edi
push str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.10052604
add esp, 0xc
push edi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
jmp 0x10019c30
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
mov ebx, dword [ebp - 0x238]
push ebx
push str.SaveApplicationConfig
push 4
mov edx, 0x1c9
mov ecx, str...StandAloneSvcAppFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10019c88
push ebx
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
jmp 0x10019c7a
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
mov ebx, dword [ebp - 0x238]
test ebx, ebx
je 0x10019c95
push ebx
call fcn.10052152
add esp, 4
test edi, edi
je 0x10019ca2
push edi
call fcn.10052152
add esp, 4
push str.mbae_config.dat
push 0x100e1fb0
push 0x10086350
lea eax, [ebp - 0x228]
push eax
call fcn.10004ed0
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x23c], edi
cmp edi, 0xffffffff
jne 0x10019da5
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
add eax, 0x1e
mov dword [ebp - 0x234], eax
call edi
lea ebx, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov edi, eax
test edi, edi
jne 0x10019d2f
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 esi
jmp 0x10019d87
push 0x100865c0
push 0xffff
push edi
call fcn.10052136
add esp, 0xc
push ebx
test eax, eax
jle 0x10019d6a
mov byte [edi + 0xffff], 0
push edi
push str.SaveApplicationConfig
push 1
mov edx, 0x1ce
mov ecx, str...StandAloneSvcAppFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10019d7e
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call esi
push edi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, dword [ebp - 0x234]
jmp 0x10019ffd
push 0
lea eax, [ebp - 0x230]
push eax
push 4
lea eax, [ebp - 0x240]
push eax
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
call ebx
test eax, eax
je 0x10019e85
cmp dword [ebp - 0x230], 4
jne 0x10019e85
push 0
lea eax, [ebp - 0x230]
push eax
push 0x4238
mov eax, dword [ebp - 0x22c]
add eax, 0x20
push eax
push edi
call ebx
test eax, eax
je 0x10019e1a
cmp dword [ebp - 0x230], 0x4238
jne 0x10019e1a
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
xor eax, eax
jmp 0x10019ffd
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
add eax, 0x1e
mov dword [ebp - 0x22c], eax
call edi
lea ebx, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov edi, eax
test edi, edi
je 0x10019eae
push 0x100865c0
push 0xffff
push edi
call fcn.10052136
add esp, 0xc
push ebx
test eax, eax
jle 0x10019eff
mov byte [edi + 0xffff], 0
push edi
push str.SaveApplicationConfig
push 1
mov edx, 0x1d6
mov ecx, str...StandAloneSvcAppFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10019f13
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
add eax, 0x1e
mov dword [ebp - 0x22c], eax
call edi
lea ebx, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov edi, eax
test edi, edi
jne 0x10019ec4
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 esi
jmp 0x10019f1c
push 0x100865c0
push 0xffff
push edi
call fcn.10052136
add esp, 0xc
push ebx
test eax, eax
jle 0x10019eff
mov byte [edi + 0xffff], 0
push edi
push str.SaveApplicationConfig
push 1
mov edx, 0x1d2
mov ecx, str...StandAloneSvcAppFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10019f13
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call esi
push edi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, dword [ebp - 0x22c]
jmp 0x10019ffd
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1005132c
mov esp, ebp
pop ebp
ret