Function at 0x405b90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476338
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x49d4a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push eax
mov dword [ebp - 0x84], esi
call fcn.00405a30
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x405be7
mov esi, dword [esi]
push eax
push esi
call fcn.004061d0
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
push dword [ebp - 0x3c]
cmovae eax, dword [ebp - 0x4c]
push eax
call fcn.004061d0
cmp dword [edi + 0x14], 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0x74], xmm0
movups xmmword [ebp - 0x64], xmm0
movq qword [ebp - 0x54], xmm0
jb 0x405c1a
mov edi, dword [edi]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
cmp byte [edi], 0
jne 0x405c35
xor ecx, ecx
jmp 0x405c49
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405c40
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x34]
call fcn.00404ee0
push 0xffffffffffffffff
mov byte [ebp - 4], 1
lea eax, [ebp - 0x34]
push 0
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x74], SysStringLen
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
call fcn.00404a60
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x405ce0
mov ecx, dword [ebp - 0x34]
inc eax
cmp eax, 0x1000
jb 0x405cd7
test cl, 0x1f
je 0x405cb3
call fcn.00463c41
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x405cbf
call fcn.00463c41
sub ecx, eax
cmp ecx, 4
jae 0x405ccb
call fcn.00463c41
cmp ecx, 0x23
jbe 0x405cd5
call fcn.00463c41
mov ecx, eax
push ecx
call fcn.0042fd23
add esp, 4
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
xor edi, edi
xor edx, edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edx
movq qword [ebp - 0x1c], xmm0
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ecx
xor eax, eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x3c], eax
jbe 0x405e0a
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0x28]
cmovae eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x80]
mov dword [ebp - 0x78], eax
cmp eax, edi
jae 0x405da0
cmp ecx, eax
ja 0x405da0
sub eax, ecx
mov dword [ebp - 0x78], eax
cmp edi, edx
jne 0x405d97
mov eax, edx
sub eax, edi
cmp eax, 1
jae 0x405d94
mov eax, ecx
sub eax, edi
dec eax
cmp eax, 1
jb 0x405ea0
sub edx, ecx
sub edi, ecx
mov eax, edx
mov dword [ebp - 0x7c], edx
shr eax, 1
inc edi
mov ecx, eax
add eax, edx
not ecx
xor edx, edx
cmp ecx, dword [ebp - 0x7c]
lea ecx, [ebp - 0x28]
cmovae edx, eax
cmp edx, edi
cmovae edi, edx
push edi
call fcn.004060f0
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x78]
test edi, edi
je 0x405df4
mov al, byte [eax + ecx]
jmp 0x405df2
cmp edi, edx
jne 0x405dec
mov eax, edx
sub eax, edi
cmp eax, 1
jae 0x405de9
mov eax, ecx
sub eax, edi
dec eax
cmp eax, 1
jb 0x405ea0
sub edx, ecx
sub edi, ecx
mov eax, edx
mov dword [ebp - 0x7c], edx
shr eax, 1
inc edi
mov ecx, eax
add eax, edx
not ecx
xor edx, edx
cmp ecx, dword [ebp - 0x7c]
lea ecx, [ebp - 0x28]
cmovae edx, eax
cmp edx, edi
cmovae edi, edx
push edi
call fcn.004060f0
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x78]
test edi, edi
je 0x405df4
mov al, byte [eax]
mov byte [edi], al
mov eax, dword [ebp - 0x80]
inc edi
inc eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x3c], eax
ja 0x405d27
xor ecx, ecx
mov edx, dword [ebp - 0x84]
xor eax, eax
mov dword [ebp - 0x80], eax
mov edx, dword [edx + 0x10]
test edx, edx
je 0x405f21
cmp edx, eax
jbe 0x405eaa
mov edx, dword [ebp - 0x84]
cmp dword [edx + 0x14], 0x10
jb 0x405e36
mov edx, dword [edx]
add eax, edx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x7c], eax
cmp eax, esi
jae 0x405eb4
cmp edx, eax
ja 0x405eb4
sub eax, edx
mov dword [ebp - 0x7c], eax
cmp esi, ecx
jne 0x405e97
mov eax, ecx
sub eax, esi
cmp eax, 1
jae 0x405e94
mov eax, edx
sub eax, esi
dec eax
cmp eax, 1
jb 0x405ea0
sub ecx, edx
sub esi, edx
mov eax, ecx
mov dword [ebp - 0x78], ecx
shr eax, 1
inc esi
mov ecx, eax
xor edx, edx
add eax, dword [ebp - 0x78]
not ecx
cmp ecx, dword [ebp - 0x78]
lea ecx, [ebp - 0x1c]
cmovae edx, eax
cmp edx, esi
cmovae esi, edx
push esi
call fcn.004060f0
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x7c]
test esi, esi
je 0x405f05
mov al, byte [eax + edx]
jmp 0x405f03
push str.vector_T__too_long
call fcn.0040da1a
push str.invalid_string_position
call fcn.0040da3a
cmp esi, ecx
jne 0x405efd
mov eax, ecx
sub eax, esi
cmp eax, 1
jae 0x405efa
mov eax, edx
sub eax, esi
dec eax
cmp eax, 1
jb 0x405ea0
sub ecx, edx
sub esi, edx
mov eax, ecx
mov dword [ebp - 0x78], ecx
shr eax, 1
inc esi
mov ecx, eax
xor edx, edx
add eax, dword [ebp - 0x78]
not ecx
cmp ecx, dword [ebp - 0x78]
lea ecx, [ebp - 0x1c]
cmovae edx, eax
cmp edx, esi
cmovae esi, edx
push esi
call fcn.004060f0
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x7c]
test esi, esi
je 0x405f05
mov al, byte [eax]
mov byte [esi], al
mov edx, dword [ebp - 0x84]
inc esi
mov eax, dword [ebp - 0x80]
inc eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x80], eax
mov edx, dword [edx + 0x10]
cmp edx, eax
ja 0x405e28
push 4
push str.code
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x9c], 0
call fcn.00404ee0
lea ecx, [ebp - 0x74]
call fcn.004065a0
test al, al
je 0x405f83
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x9c]
sub edi, ecx
cmp dword [ebp - 0x88], 0x10
push edi
cmovae eax, dword [ebp - 0x9c]
push ecx
push 3
push 0
push eax
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x9c]
call fcn.00404950
push 4
push str.path
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x9c], 0
call fcn.00404ee0
lea ecx, [ebp - 0x74]
call fcn.004065a0
test al, al
je 0x405ff0
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x9c]
sub esi, ecx
cmp dword [ebp - 0x88], 0x10
push esi
cmovae eax, dword [ebp - 0x9c]
push ecx
push 3
push 0
push eax
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x9c]
call fcn.00404950
lea ecx, [ebp - 0x1c]
call fcn.00406060
lea ecx, [ebp - 0x28]
call fcn.00406060
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x406020
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x70]
call fcn.00404950
lea ecx, [ebp - 0x4c]
call fcn.00404950
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045a746
mov esp, ebp
pop ebp
ret