Function at 0x406420
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55cc88
mov eax, dword fs:[0]
push eax
sub esp, 0x18
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
mov dword [ebp - 0x18], esi
push str.SOFTWAREWK_SistemasWKConverteLancamento
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], 0
call fcn.00401bc0
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push dword [eax]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [ebp - 0x20]
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 0x4064a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x40667b
call fcn.004088f9
mov ecx, eax
test ecx, ecx
jne 0x4064c2
push 0x80004005
call fcn.00402590
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x2a8]
call fcn.0040de4b
mov eax, dword [ebp - 0x10]
mov ebx, 1
mov edx, ebx
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
mov esi, dword [eax - 0xc]
jge 0x406507
push 0
lea ecx, [ebp - 0x10]
call fcn.00403950
mov eax, dword [ebp - 0x10]
lea ecx, [esi + 1]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
push eax
push 1
push 0
push str.Arquivo
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.00544a60
add esp, 8
test eax, eax
js 0x40669b
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x40669b
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov byte [eax + ecx], 0
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
push eax
add ecx, 0xd8
call fcn.0040de4b
mov eax, dword [ebp - 0x10]
mov edx, ebx
mov ecx, dword [eax - 0xc]
sub edx, dword [eax - 4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax - 8]
or ecx, edx
jge 0x406581
push 0
lea ecx, [ebp - 0x10]
call fcn.00403950
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
inc ecx
push ecx
push eax
push 1
push 0
push str.Separador
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.00544a60
add esp, 8
test eax, eax
js 0x40669b
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x40669b
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x10]
push 0
push 0
push 0x147
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0x18]
push dword [eax + 0x178]
call dword [sym.imp.USER32.dll_SendMessageA]
push 4
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push 4
push 0
push str.Leiaute
push dword [ebp - 0x14]
call esi
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ecx + 0x1d8]
call fcn.0040de4b
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
sub ebx, dword [eax - 4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax - 8]
or ecx, ebx
jge 0x406623
push 0
lea ecx, [ebp - 0x10]
call fcn.00403950
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
inc ecx
push ecx
push eax
push 1
push 0
push str.Salvar
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.00544a60
add esp, 8
test eax, eax
js 0x40669b
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x40669b
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov byte [eax + ecx], 0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x40667b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x406689
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
push 0x80070057
call fcn.00402590
int3