Function at 0x10031e90
Capabilities:
Print debug messages
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10090bb8
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x1638
call fcn.10055c30
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 edi, edx
mov dword [ebp - 0x1648], edi
mov dword [ebp - 0x1650], ecx
xor eax, eax
mov word [ebp - 0xe38], ax
push 0x7fe
push eax
lea eax, [ebp - 0xe36]
push eax
call fcn.10055aa0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x1638], ax
push 0x7fe
push eax
lea eax, [ebp - 0x1636]
push eax
call fcn.10055aa0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x228], ax
push 0x206
push eax
lea eax, [ebp - 0x226]
push eax
call fcn.10055aa0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x638], ax
push 0x206
push eax
lea eax, [ebp - 0x636]
push eax
call fcn.10055aa0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x430], ax
push 0x206
push eax
lea eax, [ebp - 0x42e]
push eax
call fcn.10055aa0
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 0x1640], ebx
xor esi, esi
mov dword [ebp - 0x163c], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 4], 1
push esi
push edi
call fcn.1005292e
add esp, 8
test eax, eax
je 0x10031fb7
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
or eax, 0xffffffff
jmp 0x100326a7
push edi
push 0x400
lea eax, [ebp - 0xe38]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
jne 0x10032085
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 0x1003200e
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 0x1003206a
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10032049
mov byte [esi + 0xffff], 0
push esi
push str.LoadNewDynConfigFile
push 1
mov edx, 0xc9
mov ecx, str...StandAloneSvcDynConfig.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10032061
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 0x100326a7
mov eax, dword [ebp - 0x1650]
mov dword [eax], 0
lea edx, [ebp - 0xe38]
mov dword [ebp - 0x1644], edx
cmp word [edx], 0
je 0x100325b0
test ebx, ebx
je 0x100320be
push ebx
call fcn.10052152
add esp, 4
mov dword [ebp - 0x1640], 0
push 0x426
call fcn.1005218a
add esp, 4
mov ebx, eax
mov dword [ebp - 0x1640], ebx
test ebx, ebx
jne 0x100320f4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, 5
jmp 0x100326a7
push 0x41c
push 0
push ebx
call fcn.10055aa0
add esp, 0xc
push dword [ebp - 0x1644]
push 0x104
push ebx
call fcn.10053320
add esp, 0xc
mov dword [ebx + 0x418], 0
push edi
push 0xffffffffffffffff
push str.objectType
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebx + 0x208], eax
push edi
push 0x104
lea eax, [ebx + 0x20c]
push eax
push 0x10086724
push str.objectValue
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebx + 0x208], 0xffffffff
je 0x10032582
test eax, eax
je 0x10032582
push edi
push 0x400
lea eax, [ebp - 0x1638]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x10032582
lea edi, [ebp - 0x1638]
mov dword [ebp - 0x164c], edi
cmp word [edi], 0
je 0x100324ea
push 0x104
lea eax, [ebp - 0x638]
push eax
push 0x104
lea eax, [ebp - 0x228]
push eax
push str.____s
push edi
call fcn.10054b1e
add esp, 0x18
cmp eax, 2
jne 0x100324c3
push str.objectType
lea eax, [ebp - 0x228]
push eax
call fcn.100513c3
add esp, 8
test eax, eax
je 0x100324c3
push str.objectValue
lea eax, [ebp - 0x228]
push eax
call fcn.100513c3
add esp, 8
test eax, eax
je 0x100324c3
push str._mask
lea eax, [ebp - 0x228]
push eax
call fcn.10053c3d
add esp, 8
test eax, eax
jne 0x100324c3
test esi, esi
je 0x10032236
push esi
call fcn.10052152
add esp, 4
mov dword [ebp - 0x163c], 0
push 0x21a
call fcn.1005218a
add esp, 4
mov esi, eax
mov dword [ebp - 0x163c], esi
test esi, esi
je 0x100320d7
push 0x210
push 0
push esi
call fcn.10055aa0
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
push 0x104
push esi
call fcn.10053320
add esp, 0xc
push dword [ebp - 0x1648]
push 0x104
lea eax, [ebp - 0x430]
push eax
push 0x10086724
lea eax, [ebp - 0x228]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x100324c3
lea ecx, [esi + 0x20c]
lea edx, [ebp - 0x430]
call fcn.10034da0
mov edi, eax
test edi, edi
je 0x10032363
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x100322ed
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 0x10032349
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10032328
mov byte [esi + 0xffff], 0
push esi
push str.LoadNewDynConfigFile
push 1
mov edx, 0x107
mov ecx, str...StandAloneSvcDynConfig.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10032340
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
jmp 0x100326a7
push str._mask
push 0x104
lea eax, [ebp - 0x228]
push eax
call fcn.10051f45
add esp, 0xc
push dword [ebp - 0x1648]
push 0x104
lea eax, [ebp - 0x430]
push eax
push 0x10086724
lea eax, [ebp - 0x228]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x100324bd
lea ecx, [esi + 0x208]
lea edx, [ebp - 0x430]
call fcn.10034da0
mov edi, eax
test edi, edi
je 0x10032419
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x100322d3
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10032328
mov byte [esi + 0xffff], 0
push esi
push str.LoadNewDynConfigFile
push 1
mov edx, 0x112
mov ecx, str...StandAloneSvcDynConfig.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10032340
mov ecx, dword [ebx + 0x418]
test ecx, ecx
jne 0x10032457
push 0x21a
call fcn.1005218a
add esp, 4
mov dword [ebx + 0x418], eax
test eax, eax
je 0x100320d7
push 0x210
push 0
push eax
call fcn.10055aa0
mov dword [ebx + 0x414], 0
jmp 0x10032497
mov eax, dword [ebx + 0x414]
inc eax
imul eax, eax, 0x210
push eax
push ecx
call fcn.100543bc
add esp, 8
mov ecx, eax
test ecx, ecx
je 0x100320d7
mov dword [ebx + 0x418], ecx
push 0x210
push 0
imul eax, dword [ebx + 0x414], 0x210
add eax, ecx
push eax
call fcn.10055aa0
add esp, 0xc
imul edi, dword [ebx + 0x414], 0x210
add edi, dword [ebx + 0x418]
mov ecx, 0x84
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0x414]
mov esi, dword [ebp - 0x163c]
mov edi, dword [ebp - 0x164c]
mov eax, edi
lea edx, [eax + 2]
jmp 0x100324d0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100324d0
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2]
add edi, 2
jmp 0x1003218c
mov esi, dword [ebp - 0x1650]
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x10032524
push 0x426
call fcn.1005218a
add esp, 4
mov dword [esi + 4], eax
test eax, eax
je 0x100320d7
push 0x41c
push 0
push eax
call fcn.10055aa0
mov dword [esi], 0
jmp 0x10032559
mov eax, dword [esi]
inc eax
imul eax, eax, 0x41c
push eax
push ecx
call fcn.100543bc
add esp, 8
mov ecx, eax
test ecx, ecx
je 0x100320d7
mov dword [esi + 4], ecx
push 0x41c
push 0
imul eax, dword [esi], 0x41c
add eax, ecx
push eax
call fcn.10055aa0
add esp, 0xc
imul edi, dword [esi], 0x41c
add edi, dword [esi + 4]
mov ecx, 0x107
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x1650]
inc dword [eax]
mov esi, dword [ebp - 0x163c]
mov edi, dword [ebp - 0x1648]
mov ecx, dword [ebp - 0x1644]
lea edx, [ecx + 2]
jmp 0x10032590
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10032590
sub ecx, edx
sar ecx, 1
mov edx, dword [ebp - 0x1644]
lea edx, [edx + ecx*2]
add edx, 2
jmp 0x10032097
mov dword [ebp - 4], 0
call fcn.100325d6
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x100326a7
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