Function at 0x10038730
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1004e214]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov ebx, eax
push edi
mov edi, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], eax
call fcn.10038651
test esi, esi
jne 0x10038797
push 0x1000bdb4
mov esi, 0x10007670
mov ebx, 0x80070057
push esi
push 0x10005488
call fcn.1003511d
add esp, 0xc
mov edx, 0x1000bdb4
mov ecx, esi
call fcn.10035481
jmp 0x10038a0a
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push 0x1000bdd0
push esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, 2
jne 0x100387d8
push 0x1000bdd0
push 0x10006748
push 0x10007670
push 0x1000be58
call fcn.100350d6
add esp, 0x10
mov esi, ebx
jmp 0x10038a0d
test esi, esi
je 0x1003881b
push 0x1000bdd0
mov edi, 0x10006748
push edi
push 0x10002400
push 0x10006090
push esi
call fcn.10035577
add esp, 0x14
push esi
push 0x1000bdd0
push edi
push 0x10007670
push 0x1000bed8
call fcn.1003511d
mov edi, dword [ebp - 0x28]
add esp, 0x14
jmp 0x100389f7
xor ecx, ecx
lea eax, [ebp - 0x20]
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
push ecx
push ecx
push ecx
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
mov esi, eax
test esi, esi
je 0x10038864
push ecx
mov edi, 0x10006748
mov edx, 0x1000bf58
push edi
push ecx
mov ecx, esi
call fcn.10035546
push esi
push 0x1000bdd0
push edi
push 0x10007670
push 0x1000bf80
jmp 0x1003880b
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100389e6
cmp dword [ebp - 0x20], ebx
je 0x100389e6
mov ecx, 0x400
cmp eax, ecx
jbe 0x10038883
mov eax, ecx
imul esi, eax, 0x2c
mov ecx, esi
call fcn.10030bb0
mov dword [edi], eax
test eax, eax
jne 0x100388ae
push 0x10007670
push 0x10005518
mov ebx, 0x8007000e
call fcn.10035135
pop ecx
pop ecx
jmp 0x10038a0a
test esi, esi
je 0x100388ba
mov byte [eax], bl
inc eax
sub esi, 1
jne 0x100388b2
mov eax, dword [ebp - 0x20]
and dword [edi + 4], ebx
lea ecx, [eax*2 + 2]
call fcn.10030bb0
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x100388f0
push 0x10007670
push 0x10005518
mov ebx, 0x8007000e
call fcn.10035135
pop ecx
pop ecx
jmp 0x10038a0d
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x24], ecx
jbe 0x10038a0d
cmp dword [edi + 4], 0x400
jae 0x10038a0d
mov eax, dword [ebp - 0x20]
push 0
push 0
push 0
inc eax
push 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push esi
push ecx
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
jne 0x100389bc
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
je 0x1003895b
push eax
push esi
push 0x10007670
push 0x1000c120
call fcn.100350ee
add esp, 0x10
jmp 0x10038988
sub esp, 0x10
mov edx, dword [ebp - 0x18]
mov edi, esp
mov ecx, dword [ebp - 0x1c]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x28]
imul eax, dword [edi + 4], 0x2c
add eax, dword [edi]
push eax
call fcn.10038a4c
mov esi, eax
test esi, esi
jne 0x1003899a
inc dword [edi + 4]
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
inc ecx
mov dword [ebp - 0x2c], ecx
cmp ecx, dword [ebp - 0x24]
jb 0x100388fe
jmp 0x10038a0d
push esi
push dword [ebp - 0x18]
push 0x1000bdd0
push 0x10006748
push 0x10007670
push 0x1000c1b8
call fcn.1003511d
add esp, 0x18
jmp 0x100389f7
push ecx
mov edi, 0x10006748
mov edx, 0x1000c060
push edi
push ecx
mov ecx, esi
call fcn.10035546
push esi
push 0x1000bdd0
push edi
push 0x10007670
push 0x1000c080
jmp 0x1003880b
push 0x10007670
push 0x1000c018
call fcn.100350d6
pop ecx
pop ecx
test esi, esi
je 0x10038a0a
jg 0x10038a01
mov ebx, esi
jmp 0x10038a0a
movzx ebx, si
or ebx, 0x80070000
mov esi, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], 0
je 0x10038a20
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
and dword [ebp - 0x1c], 0
mov ecx, esi
call fcn.10030bc3
xor ecx, ecx
call fcn.10030bc3
test ebx, ebx
jns 0x10038a39
mov ecx, edi
call fcn.10038651
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100468a0
leave
ret 8