Function at 0x10034730
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10090cf0
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 0xa54
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 esi, edx
mov ebx, ecx
mov dword [ebp - 0xa5c], ebx
mov dword [ebp - 0xa50], 0
mov dword [ebp - 0xa54], 0
mov dword [ebp - 0xa58], 0
xor eax, eax
mov word [ebp - 0x63c], ax
push 0x206
push eax
lea eax, [ebp - 0x63a]
push eax
call fcn.10055aa0
add esp, 0xc
mov byte [ebx], 0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
lea edx, [ebp - 0x22c]
mov ecx, esi
call fcn.10034b80
mov edi, eax
mov dword [ebp - 0xa50], edi
test edi, edi
je 0x10034880
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x1003480a
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 0x10034866
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10034845
mov byte [esi + 0xffff], 0
push esi
push str.FindRegTree
push 1
mov edx, 0x374
mov ecx, str...StandAloneSvcDynConfig.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1003485d
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 0x10034b64
mov bl, byte [ebp + 8]
test bl, bl
je 0x10034922
lea ecx, [ebp - 0x22c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10034894
sub ecx, edx
sar ecx, 1
dec ecx
mov dword [ebp - 0xa60], ecx
cmp word [ebp + ecx*2 - 0x22c], 0x5c
jne 0x100348a3
lea esi, [ebp - 0x22c]
lea edx, [esi + 2]
mov edi, edi
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100348c0
sub esi, edx
sar esi, 1
sub esi, ecx
dec esi
xor edx, edx
mov dword [ebp - 0xa64], edx
cmp edx, esi
jge 0x100348f4
lea eax, [ecx + edx]
mov ax, word [ebp + eax*2 - 0x22a]
mov word [ebp + edx*2 - 0x434], ax
inc edx
jmp 0x100348d4
add esi, esi
cmp esi, 0x208
jae 0x100349e3
xor eax, eax
mov word [ebp + esi - 0x434], ax
add ecx, ecx
cmp ecx, 0x208
jae 0x100349e3
mov word [ebp + ecx - 0x22c], ax
push 0x104
lea eax, [ebp - 0x844]
push eax
push 0x104
lea eax, [ebp - 0xa4c]
push eax
push str._____
lea eax, [ebp - 0x22c]
push eax
call fcn.10054b1e
add esp, 0x18
cmp eax, 2
jne 0x10034a90
lea eax, [ebp - 0xa54]
push eax
push 1
push 0
lea eax, [ebp - 0x844]
push eax
lea ecx, [ebp - 0xa4c]
call fcn.10034d10
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov dword [ebp - 0xa50], edi
test edi, edi
je 0x100349e8
add edi, 0x1e
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x100347f0
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10034845
mov byte [esi + 0xffff], 0
push esi
push str.FindRegTree
push 1
mov edx, 0x38a
mov ecx, str...StandAloneSvcDynConfig.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1003485d
call fcn.10052e6a
test bl, bl
je 0x10034a87
mov dword [ebp - 0xa58], 0x208
lea eax, [ebp - 0xa58]
push eax
lea eax, [ebp - 0x63c]
push eax
push 0
push 0
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0xa54]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov dword [ebp - 0xa50], edi
test edi, edi
je 0x10034a87
add edi, 0x1e
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x100347f0
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10034845
mov byte [esi + 0xffff], 0
push esi
push str.FindRegTree
push 1
mov edx, 0x392
mov ecx, str...StandAloneSvcDynConfig.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1003485d
mov eax, dword [ebp - 0xa5c]
mov byte [eax], 1
mov dword [ebp - 4], 0
call fcn.10034ab0
mov dword [ebp - 4], 0xfffffffe
mov eax, edi
jmp 0x10034b64
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