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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10090c08
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x1009cbc0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x248], ebx
xor eax, eax
mov word [ebp - 0x22c], ax
push 0x206
push eax
lea eax, [ebp - 0x22a]
push eax
call fcn.10055aa0
add esp, 0xc
mov dword [ebp - 0x240], 0xffffffff
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
xor eax, eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], 1
push str.dynconfig.dat
push 0x100e1fb0
push 0x10086350
lea eax, [ebp - 0x22c]
push eax
call fcn.10004ed0
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x240], esi
cmp esi, 0xffffffff
jne 0x10033098
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x10033021
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 0x1003307d
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1003305c
mov byte [esi + 0xffff], 0
push esi
push str.SaveDynConfigFile
push 1
mov edx, 0x1c6
mov ecx, str...StandAloneSvcDynConfig.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10033074
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
lea eax, [ebx + 0x1e]
jmp 0x10033392
mov eax, dword [edi + 0x6294]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 8
mov eax, dword [ebx]
mov dword [ebp - 0x230], eax
push 0
lea eax, [ebp - 0x23c]
push eax
push 0xc
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10033275
cmp dword [ebp - 0x23c], 0xc
jne 0x10033275
xor ebx, ebx
mov dword [ebp - 0x24c], ebx
mov eax, dword [ebp - 0x248]
cmp ebx, dword [eax]
jge 0x1003325b
imul edi, ebx, 0x41c
add edi, dword [eax + 4]
push 0
lea eax, [ebp - 0x23c]
push eax
push 0x41c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100331f3
cmp dword [ebp - 0x23c], 0x41c
jne 0x100331f3
xor esi, esi
mov dword [ebp - 0x244], esi
cmp esi, dword [edi + 0x414]
jge 0x100331e7
imul eax, esi, 0x210
add eax, dword [edi + 0x418]
push 0
lea ecx, [ebp - 0x23c]
push ecx
push 0x210
push eax
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1003317f
cmp dword [ebp - 0x23c], 0x210
jne 0x1003317f
inc esi
jmp 0x10033133
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x10033007
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1003305c
mov byte [esi + 0xffff], 0
push esi
push str.SaveDynConfigFile
push 1
mov edx, 0x1df
mov ecx, str...StandAloneSvcDynConfig.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10033074
inc ebx
mov esi, dword [ebp - 0x240]
jmp 0x100330e6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x10033007
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1003305c
mov byte [esi + 0xffff], 0
push esi
push str.SaveDynConfigFile
push 1
mov edx, 0x1d7
mov ecx, str...StandAloneSvcDynConfig.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10033074
mov dword [ebp - 4], 0
call fcn.100332e3
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x10033392
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x10033007
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1003305c
mov byte [esi + 0xffff], 0
push esi
push str.SaveDynConfigFile
push 1
mov edx, 0x1ce
mov ecx, str...StandAloneSvcDynConfig.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10033074
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1005132c
mov esp, ebp
pop ebp
ret