Function at 0x423137
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
xor ecx, ecx
xor edx, edx
inc edx
mov dword [ebp - 0x324], ecx
mov dword [ebp - 0x330], edx
mov dword [ebp - 0x320], ecx
push edi
mov edi, ecx
test esi, esi
jne 0x42317a
mov eax, 0x80004003
jmp 0x4234fd
test ebx, ebx
je 0x423206
mov ecx, ebx
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x423189
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
mov dword [ebp - 0x328], eax
call fcn.00440dea
mov dword [ebp - 0x320], eax
pop ecx
test eax, eax
jne 0x4231c0
mov eax, 0x8007000e
jmp 0x4234fd
xor ecx, ecx
mov edi, 0x80004005
push ecx
push ecx
push dword [ebp - 0x328]
push eax
push 0xffffffffffffffff
push ebx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, 0x200
test eax, eax
je 0x4231f5
push dword [ebp - 0x320]
mov edx, ebx
mov ecx, esi
xor edi, edi
call fcn.0041c519
push dword [ebp - 0x320]
call fcn.00440db7
pop ecx
jmp 0x4232b3
lea eax, [ebp - 0x324]
mov ebx, 0x200
push eax
push edx
push ecx
push 0x4017d0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x328], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x423280
lea eax, [ebp - 0x328]
push eax
push esi
lea eax, [ebp - 0x330]
push eax
xor eax, eax
push eax
push 0x4058c4
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42326c
inc eax
cmp dword [ebp - 0x330], eax
jne 0x42326c
mov dword [ebp - 0x320], eax
xor eax, eax
mov byte [esi + 0x1ff], al
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x320], edi
jne 0x4232cc
push ebx
push esi
push 0x277e
push dword [0x442af0]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x4232cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x4232a8
push 0x57
pop edi
test edi, edi
jle 0x4232b3
movzx edi, di
or edi, 0x80070000
test edi, edi
jns 0x4232cc
push edi
push 0x405910
push 2
call fcn.0041e83a
add esp, 0xc
jmp 0x4234fb
push 0x4058d0
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
jne 0x423331
push 0x4058d4
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
jne 0x423331
push 0x4058dc
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
jne 0x423331
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x423307
sub ecx, edx
je 0x423323
cmp ecx, ebx
jae 0x423323
cmp byte [ecx + esi - 1], 0x2f
je 0x423323
mov word [ecx + esi], 0x2f
push 0x407434
mov edx, ebx
mov ecx, esi
call fcn.0041da6a
push 0x4058d0
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
jne 0x423351
push 0x4058d0
mov edx, ebx
mov ecx, esi
call fcn.0041da6a
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x423356
sub ecx, edx
mov eax, ebx
ret
sub eax, ecx
push eax
mov dword [ebp - 0x32c], eax
call fcn.00440dea
mov dword [ebp - 0x320], eax
pop ecx
test eax, eax
je 0x4234fb
xor eax, eax
mov edx, ebx
push 0x4058e4
mov ecx, esi
mov dword [ebp - 0x328], eax
call fcn.0041da6a
mov eax, dword [ebp - 0x32c]
add eax, 0xfffffff6
mov dword [ebp - 0x32c], eax
cmp eax, 0xffffffff
jae 0x42348a
call fcn.0043fffc
mov ecx, eax
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push 0x407318
lea eax, [ebp - 0x31c]
push 0x208
push eax
call fcn.0040c125
add esp, 0x14
test eax, eax
js 0x42348a
mov eax, dword [ebp - 0x32c]
mov dword [ebp - 0x32c], eax
lea eax, [ebp - 0x324]
push eax
push 1
xor eax, eax
push eax
lea eax, [ebp - 0x31c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42348a
lea eax, [ebp - 0x32c]
push eax
push dword [ebp - 0x320]
lea eax, [ebp - 0x330]
push eax
xor eax, eax
push eax
push 0x4058f0
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x423475
cmp dword [ebp - 0x330], 1
jne 0x423475
push 0x4058fc
mov edx, ebx
mov ecx, esi
call fcn.0041da6a
push dword [ebp - 0x320]
mov edx, ebx
mov ecx, esi
call fcn.0041da6a
push 0x405908
mov edx, ebx
mov ecx, esi
call fcn.0041da6a
mov dword [ebp - 0x328], 1
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x328], 0
jne 0x4234ef
mov edx, 0x104
lea ecx, [ebp - 0x31c]
call fcn.00422817
test eax, eax
je 0x4234ef
xor ecx, ecx
lea eax, [ebp - 0x114]
push ecx
push ecx
mov edx, 0x104
push edx
push eax
push edx
lea eax, [ebp - 0x31c]
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x4234ef
push 0x4058fc
mov edx, ebx
mov ecx, esi
call fcn.0041da6a
lea eax, [ebp - 0x114]
mov edx, ebx
push eax
mov ecx, esi
call fcn.0041da6a
push 0x405908
mov edx, ebx
mov ecx, esi
call fcn.0041da6a
push dword [ebp - 0x320]
call fcn.00440db7
pop ecx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441130
leave
ret 4