Function at 0x405540
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473d98
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x49c404]
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.00405490
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x405597
mov esi, dword [esi]
push eax
push esi
call fcn.004063c0
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
push dword [ebp - 0x3c]
cmovae eax, dword [ebp - 0x4c]
push eax
call fcn.004063c0
cmp dword [edi + 0x14], 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0x74], xmm0
movups xmmword [ebp - 0x64], xmm0
movq qword [ebp - 0x54], xmm0
jb 0x4055ca
mov edi, dword [edi]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
cmp byte [edi], 0
jne 0x4055e5
xor ecx, ecx
jmp 0x4055f9
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4055f0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x34]
call fcn.00404920
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.004044a0
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 0x405690
mov ecx, dword [ebp - 0x34]
inc eax
cmp eax, 0x1000
jb 0x405687
test cl, 0x1f
je 0x405663
call fcn.004614be
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40566f
call fcn.004614be
sub ecx, eax
cmp ecx, 4
jae 0x40567b
call fcn.004614be
cmp ecx, 0x23
jbe 0x405685
call fcn.004614be
mov ecx, eax
push ecx
call fcn.0042ef8f
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 0x4057ba
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 0x405750
cmp ecx, eax
ja 0x405750
sub eax, ecx
mov dword [ebp - 0x78], eax
cmp edi, edx
jne 0x405747
mov eax, edx
sub eax, edi
cmp eax, 1
jae 0x405744
mov eax, ecx
sub eax, edi
dec eax
cmp eax, 1
jb 0x405850
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.004062f0
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x78]
test edi, edi
je 0x4057a4
mov al, byte [eax + ecx]
jmp 0x4057a2
cmp edi, edx
jne 0x40579c
mov eax, edx
sub eax, edi
cmp eax, 1
jae 0x405799
mov eax, ecx
sub eax, edi
dec eax
cmp eax, 1
jb 0x405850
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.004062f0
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x78]
test edi, edi
je 0x4057a4
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 0x4056d7
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 0x4058d1
cmp edx, eax
jbe 0x40585a
mov edx, dword [ebp - 0x84]
cmp dword [edx + 0x14], 0x10
jb 0x4057e6
mov edx, dword [edx]
add eax, edx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x7c], eax
cmp eax, esi
jae 0x405864
cmp edx, eax
ja 0x405864
sub eax, edx
mov dword [ebp - 0x7c], eax
cmp esi, ecx
jne 0x405847
mov eax, ecx
sub eax, esi
cmp eax, 1
jae 0x405844
mov eax, edx
sub eax, esi
dec eax
cmp eax, 1
jb 0x405850
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.004062f0
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x7c]
test esi, esi
je 0x4058b5
mov al, byte [eax + edx]
jmp 0x4058b3
push str.vector_T__too_long
call fcn.0040dae6
push str.invalid_string_position
call fcn.0040db06
cmp esi, ecx
jne 0x4058ad
mov eax, ecx
sub eax, esi
cmp eax, 1
jae 0x4058aa
mov eax, edx
sub eax, esi
dec eax
cmp eax, 1
jb 0x405850
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.004062f0
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x7c]
test esi, esi
je 0x4058b5
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 0x4057d8
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.00404920
lea ecx, [ebp - 0x74]
call fcn.00406780
test al, al
je 0x405933
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.00404390
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.00404920
lea ecx, [ebp - 0x74]
call fcn.00406780
test al, al
je 0x4059a0
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.00404390
lea ecx, [ebp - 0x1c]
call fcn.00406260
lea ecx, [ebp - 0x28]
call fcn.00406260
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4059d0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x70]
call fcn.00404390
lea ecx, [ebp - 0x4c]
call fcn.00404390
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.004582c7
mov esp, ebp
pop ebp
ret