Function at 0x10031a70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10090b90
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1009cbc0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
call fcn.10031e90
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x10031b7e
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x10031afb
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]
jmp 0x10031b57
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10031b36
mov byte [esi + 0xffff], 0
push esi
push str.UpdateDynConfig
push 1
mov edx, 0x97
mov ecx, str...StandAloneSvcDynConfig.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10031b4e
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
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [eax + 0x1e]
mov dword [ebp - 0x28], 0
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
mov dword [ebp - 0x20], esi
push 0x2000a
call fcn.1005218a
add esp, 4
mov edi, eax
test esi, esi
je 0x10031c56
test edi, edi
je 0x10031c56
push str.dynconfig.dat
push str.New_dynamic_config_loaded:__s__
push 0xffff
push edi
call fcn.1005211a
add esp, 0x10
test eax, eax
jle 0x10031c41
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 - 0x28]
push eax
call fcn.10052d14
add esp, 0x14
test eax, eax
je 0x10031c1b
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 0x10031c21
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
mov ebx, dword [ebp - 0x20]
push ebx
push str.UpdateDynConfig
push 4
mov edx, 0x98
mov ecx, str...StandAloneSvcDynConfig.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10031c73
push ebx
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
jmp 0x10031c68
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 - 0x20]
test ebx, ebx
je 0x10031c80
push ebx
call fcn.10052152
add esp, 4
test edi, edi
je 0x10031c8d
push edi
call fcn.10052152
add esp, 4
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
call fcn.10032f00
add esp, 4
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10031da5
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x1e
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], 0
push 0x1000a
call fcn.1005218a
add esp, 4
mov ebx, eax
push 0x2000a
call fcn.1005218a
add esp, 4
mov edi, eax
test ebx, ebx
je 0x10031d77
test edi, edi
je 0x10031d77
push str.dynconfig.dat
push dword [ebp - 0x24]
push str.Error__d_saving_new_dynamic_config:__s
push 0xffff
push edi
call fcn.1005211a
add esp, 0x14
test eax, eax
jle 0x10031d60
xor eax, eax
mov word [edi + 0x1fffe], ax
push 0xffffffffffffffff
push edi
mov ecx, edi
call fcn.10001b80
inc eax
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.10052d14
add esp, 0x14
test eax, eax
je 0x10031d41
push dword [ebp - 0x20]
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 [ebp - 0x20]
push ebx
push str.UpdateDynConfig
push 4
mov edx, 0x9d
mov ecx, str...StandAloneSvcDynConfig.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10031d8b
push dword [ebp - 0x20]
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
jmp 0x10031d89
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 0x10031d98
push ebx
call fcn.10052152
add esp, 4
test edi, edi
je 0x10031da5
push edi
call fcn.10052152
add esp, 4
mov dword [ebp - 4], 0
call fcn.10031dcc
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret