Function at 0x403320
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esp + 0x128]
push edi
lea eax, [esi + 0x2dd]
mov dword [esp + 0x20], esi
test cl, cl
mov byte [esi + 0x2dc], 0
mov byte [eax], 0
mov byte [esi + 0x3e1], 0
mov byte [esi + 0x4e5], 0
mov byte [esi + 0x5e9], 0
mov byte [esi + 0x6ed], 0
je 0x403480
mov dword [esp + 0x10], 0
mov ebp, str.softwarelizhenglarlar14
mov ebx, eax
mov eax, dword [0x407a48]
mov ecx, dword [0x407a4c]
mov edx, dword [0x407a50]
mov dword [esp + 0x24], eax
mov ax, word [0x407a54]
mov dword [esp + 0x28], ecx
mov cl, byte [0x407a56]
mov word [esp + 0x30], ax
mov byte [esp + 0x32], cl
mov ecx, 0x3d
xor eax, eax
lea edi, [esp + 0x33]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
push edx
push 0x20019
push 0
push ebp
push 0x80000002
mov dword [esp + 0x2c], 1
stosb byte es:[edi], al
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403452
push 0x5c
push ebp
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x24]
inc eax
push ecx
lea ecx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403422
mov ecx, dword [esp + 0x10]
mov al, 1
shl al, cl
add byte [esi + 0x2dc], al
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x14]
mov edx, ecx
mov esi, edi
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
add ebp, 0x104
inc edi
add ebx, 0x104
cmp ebp, str.softwarelizhenglellel14
mov dword [esp + 0x10], edi
jl 0x40337a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 4
mov dword [esp + 0x10], 0
mov ebp, str.softwarelizhenglellel14
mov ebx, eax
mov ecx, dword [0x407a48]
mov edx, dword [0x407a4c]
mov eax, dword [0x407a50]
mov dword [esp + 0x24], ecx
mov cx, word [0x407a54]
mov dword [esp + 0x28], edx
mov dl, byte [0x407a56]
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], cx
mov ecx, 0x3d
xor eax, eax
lea edi, [esp + 0x33]
mov byte [esp + 0x32], dl
mov dword [esp + 0x1c], 1
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0x104
push eax
push 0x20019
push 0
push ebp
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403568
push 0x5c
push ebp
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x24]
inc eax
push ecx
lea ecx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403538
mov ecx, dword [esp + 0x10]
mov al, 1
shl al, cl
add byte [esi + 0x2dc], al
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x14]
mov edx, ecx
mov esi, edi
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
add ebp, 0x104
inc edi
add ebx, 0x104
cmp ebp, 0x407a48
mov dword [esp + 0x10], edi
jl 0x40348f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 4