Function at 0x100314a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x1009cbc0]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
mov ebx, dword [ebp + 8]
mov edx, ebx
push esi
push edi
push ecx
lea esi, [ebx + 0x6294]
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov byte [esp + 0x17], 0
mov dword [esi], 0x10a0000
call fcn.100326d0
mov edi, eax
add esp, 4
test edi, edi
je 0x100315d7
push 0x1000a
call fcn.1005218a
mov esi, eax
add esp, 4
test esi, esi
jne 0x10031542
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
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.1005132c
mov esp, ebp
pop ebp
ret 4
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1003159d
push esi
push str.LoadDynamicConfigSA
push 1
mov edx, 0x5d
mov byte [esi + 0xffff], 0
mov ecx, str...StandAloneSvcDynConfig.cpp
call fcn.10001cf0
add esp, 0x10
push esi
call fcn.10052152
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.1005132c
mov esp, ebp
pop ebp
ret 4
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
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.1005132c
mov esp, ebp
pop ebp
ret 4
push esi
push str._mbae.database.config_
push str.dynconfig.dat
lea edx, [esp + 0x34]
lea ecx, [esp + 0x1f]
call fcn.10038880
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0xc
cmp byte [esp + 0x13], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x10031802
call edi
push 0x1000a
mov dword [esp + 0x18], 0
lea ebx, [eax + 0x1e]
call fcn.1005218a
add esp, 4
mov dword [esp + 0xc], eax
push 0x2000a
call fcn.1005218a
add esp, 4
mov edi, eax
cmp dword [esp + 0xc], 0
je 0x100316d6
test edi, edi
je 0x100316d6
push str.dynconfig.dat
push str.Dynamic_config_downloaded:__s__
push 0xffff
push edi
call fcn.1005211a
add esp, 0x10
test eax, eax
jle 0x100316c1
xor eax, eax
mov ecx, edi
push 0xffffffffffffffff
push edi
mov word [edi + 0x1fffe], ax
call fcn.10001b80
inc eax
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
call fcn.10052d14
add esp, 0x14
test eax, eax
je 0x100316a1
push ebx
push edi
push str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.10052604
add esp, 0xc
push edi
call esi
push ebx
push dword [esp + 0x10]
mov edx, 0x67
mov ecx, str...StandAloneSvcDynConfig.cpp
push str.LoadDynamicConfigSA
push 4
call fcn.10001cf0
add esp, 0x10
jmp 0x100316ea
push ebx
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
jmp 0x100316e8
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
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100316fb
push eax
call fcn.10052152
add esp, 4
test edi, edi
je 0x10031708
push edi
call fcn.10052152
add esp, 4
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x2c]
call fcn.10031a70
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100317f8
push 0x1000a
call fcn.1005218a
mov edi, eax
add esp, 4
test edi, edi
jne 0x10031767
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
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.1005132c
mov esp, ebp
pop ebp
ret 4
push 0x100865c0
push 0xffff
push edi
call fcn.10052136
add esp, 0xc
push ebx
test eax, eax
jle 0x100317c2
push edi
push str.LoadDynamicConfigSA
push 1
mov edx, 0x6c
mov byte [edi + 0xffff], 0
mov ecx, str...StandAloneSvcDynConfig.cpp
call fcn.10001cf0
add esp, 0x10
push edi
call fcn.10052152
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.1005132c
mov esp, ebp
pop ebp
ret 4
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
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.1005132c
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x20], 0
jbe 0x100319da
mov edx, ebx
lea ecx, [esp + 0x20]
call fcn.100333b0
mov dword [esp + 0x14], eax
test eax, eax
je 0x100318fd
call edi
add eax, 0x1e
mov dword [esp + 0x18], 0
push 0x1000a
mov dword [esp + 0x10], eax
call fcn.1005218a
add esp, 4
mov ebx, eax
push 0x2000a
call fcn.1005218a
add esp, 4
mov edi, eax
test ebx, ebx
je 0x100319ac
test edi, edi
je 0x100319ac
push str.dynconfig.dat
push dword [esp + 0x18]
push str.Error__d_applying_dynamic_config:__s
push 0xffff
push edi
call fcn.1005211a
add esp, 0x14
test eax, eax
jle 0x100318e2
xor eax, eax
mov ecx, edi
push 0xffffffffffffffff
push edi
mov word [edi + 0x1fffe], ax
call fcn.10001b80
inc eax
push eax
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.10052d14
add esp, 0x14
test eax, eax
je 0x100318bf
push dword [esp + 0xc]
push edi
push str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.10052604
add esp, 0xc
push edi
call esi
push dword [esp + 0xc]
mov edx, 0x75
mov ecx, str...StandAloneSvcDynConfig.cpp
push ebx
push str.LoadDynamicConfigSA
push 4
call fcn.10001cf0
add esp, 0x10
jmp 0x100319c0
push dword [esp + 0xc]
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
jmp 0x100319be
call edi
add eax, 0x1e
mov dword [esp + 0x18], 0
push 0x1000a
mov dword [esp + 0x10], eax
call fcn.1005218a
add esp, 4
mov ebx, eax
push 0x2000a
call fcn.1005218a
add esp, 4
mov edi, eax
test ebx, ebx
je 0x100319ac
test edi, edi
je 0x100319ac
push str.dynconfig.dat
push str.Local_dynamic_config_applied:__s__
push 0xffff
push edi
call fcn.1005211a
add esp, 0x10
test eax, eax
jle 0x100318e2
xor eax, eax
mov ecx, edi
push 0xffffffffffffffff
push edi
mov word [edi + 0x1fffe], ax
call fcn.10001b80
inc eax
push eax
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.10052d14
add esp, 0x14
test eax, eax
je 0x1003198c
push dword [esp + 0xc]
push edi
push str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.10052604
add esp, 0xc
push edi
call esi
push dword [esp + 0xc]
mov edx, 0x79
mov ecx, str...StandAloneSvcDynConfig.cpp
push ebx
push str.LoadDynamicConfigSA
push 4
call fcn.10001cf0
add esp, 0x10
jmp 0x100319c0
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
test ebx, ebx
je 0x100319cd
push ebx
call fcn.10052152
add esp, 4
test edi, edi
je 0x100319da
push edi
call fcn.10052152
add esp, 4
lea ecx, [esp + 0x20]
call fcn.10033e50
mov ebx, eax
test ebx, ebx
je 0x10031a42
push 0x1000a
call fcn.1005218a
mov edi, eax
add esp, 4
test edi, edi
je 0x1003173a
push 0x100865c0
push 0xffff
push edi
call fcn.10052136
add esp, 0xc
push ebx
test eax, eax
jle 0x100317c2
push edi
push str.LoadDynamicConfigSA
push 1
mov edx, 0x80
mov byte [edi + 0xffff], 0
mov ecx, str...StandAloneSvcDynConfig.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x100317d6
mov ecx, dword [esp + 0x1c]
call fcn.100379c0
mov ecx, dword [esp + 0x234]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005132c
mov esp, ebp
pop ebp
ret 4