Function at 0x4066b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ccc8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5b7e5c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.SOFTWAREWK_SistemasWKConverteLancamento
lea ecx, [ebp - 0x14]
call fcn.00401bc0
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
push dword [eax]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [ebp - 0x14]
test eax, eax
sete bl
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406721
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x40688e
push ecx
mov ecx, esp
push str.Arquivo
call fcn.00401bc0
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.004068e0
push dword [eax]
lea ecx, [esi + 0x2a8]
mov dword [ebp - 4], 0
call fcn.00412c26
mov edx, dword [ebp - 0x14]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406779
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esp
push str.Separador
call fcn.00401bc0
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.004068e0
push dword [eax]
lea ecx, [esi + 0xd8]
mov dword [ebp - 4], 1
call fcn.00412c26
mov edx, dword [ebp - 0x14]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4067c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.Leiaute
lea ecx, [ebp - 0x14]
call fcn.00401bc0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
test eax, eax
mov eax, edi
jne 0x406818
mov ebx, dword [ebp - 0x1c]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40682c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40682c
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40682a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
push 0
push ebx
push 0x14e
push dword [esi + 0x178]
call dword [sym.imp.USER32.dll_SendMessageA]
push ecx
mov ecx, esp
push str.Salvar
call fcn.00401bc0
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.004068e0
push dword [eax]
lea ecx, [esi + 0x1d8]
mov dword [ebp - 4], 2
call fcn.00412c26
mov edx, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x40688e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0xffffffffffffffff
push 0xc1
push dword [esi + 0xf8]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x4068b7
push 0x56bd64
lea ecx, [esi + 0xd8]
call fcn.00412c26
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4068c5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret