Function at 0x10035450
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10090d90
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x20
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 esi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [eax + 0x1e]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0
push 0x1000a
call fcn.1005218a
mov dword [ebp - 0x20], eax
push 0x2000a
call fcn.1005218a
add esp, 8
mov edi, eax
cmp dword [ebp - 0x20], 0
je 0x10035581
test edi, edi
je 0x10035581
lea ecx, [esi + 0x4280]
push ecx
push dword [esi + 0x426c]
push str._p____s
push 0xffff
push edi
call fcn.1005211a
add esp, 0x14
test eax, eax
jle 0x1003556c
xor eax, eax
mov word [edi + 0x1fffe], ax
push 0xfffffffffffffffe
push edi
call fcn.10051b84
push 0xffffffffffffffff
push edi
inc eax
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x2c]
push eax
call fcn.10052d14
add esp, 0x1c
test eax, eax
je 0x10035545
push ebx
push edi
push str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.10052604
add esp, 0xc
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call ebx
jmp 0x1003554b
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x30]
push dword [ebp - 0x20]
push str.SetDefaultProtectedApplications
push 4
mov edx, 0x92
mov ecx, str...StandAloneSvcProtection.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1003559b
push ebx
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
jmp 0x10035593
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 ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call ebx
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100355ab
push eax
call fcn.10052152
add esp, 4
test edi, edi
je 0x100355b8
push edi
call fcn.10052152
add esp, 4
mov eax, dword [esi + 0x426c]
test eax, eax
je 0x100355f3
push eax
call fcn.10052152
add esp, 4
mov dword [esi + 0x426c], 0
mov dword [esi + 0x426c], 0
mov dword [esi + 0x4268], 0
mov dword [esi + 0x4264], 0
push 0x4896a
call fcn.1005218a
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x100356b9
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x10035636
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 ebx
jmp 0x1003568f
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 5
test eax, eax
jle 0x10035672
mov byte [esi + 0xffff], 0
push esi
push str.SetDefaultProtectedApplications
push 1
mov edx, 0x9f
mov ecx, str...StandAloneSvcProtection.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10035686
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call ebx
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, 5
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x48960
push 0
push edi
call fcn.10055aa0
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x28], edx
mov edi, edi
cmp edx, 0x68
jge 0x100357e2
imul eax, edx, 0xa30
lea ecx, [eax + edi]
mov dword [ebp - 0x30], ecx
lea esi, [eax + str.Microsoft_Equation_Editor]
mov ecx, 0x28c
mov eax, dword [ebp - 0x30]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x24]
cmp dword [eax + 0x624], 4
je 0x100357d6
cmp dword [eax + 0x61c], 0
je 0x100357d6
lea ecx, [esi + 0x4280]
mov edx, eax
call fcn.10037f10
mov edi, eax
test edi, edi
je 0x100357d3
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x10035754
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 ebx
jmp 0x100357ac
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1003578f
mov byte [esi + 0xffff], 0
push esi
push str.SetDefaultProtectedApplications
push 1
mov edx, 0xab
mov ecx, str...StandAloneSvcProtection.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x100357a3
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call ebx
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
mov edx, dword [ebp - 0x28]
inc edx
mov dword [ebp - 0x28], edx
mov edi, dword [ebp - 0x1c]
jmp 0x100356d0
mov dword [esi + 0x426c], edi
mov dword [esi + 0x4268], 0x72
mov dword [esi + 0x4264], 0x68
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
call fcn.10035827
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