Function at 0x4a3090
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x52ac10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov al, byte [esp + 0x70]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x4c], al
call fcn.0040d630
mov cl, byte [esp + 0x80]
push ebx
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x2c]
mov dword [esp + 0x7c], ebx
call fcn.0040d630
mov dl, byte [esp + 0x80]
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x7c], 1
mov byte [esp + 0x3c], dl
call fcn.0040d630
mov al, byte [esp + 0x80]
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], 2
mov byte [esp + 0x1c], al
call fcn.0040d630
mov esi, dword [esp + 0x80]
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
call ebp
add esp, 4
lea ecx, [esp + 0x18]
push eax
push esi
call fcn.0040fea0
push esi
mov byte [esp + 0x7c], 3
call ebp
add esp, 4
cmp word [esi + eax*2 - 2], 0x5c
je 0x4a31ab
lea edi, [eax - 1]
cmp edi, ebx
jl 0x4a31ab
lea eax, [esi + edi*2]
cmp word [eax], 0x5c
je 0x4a315c
dec edi
sub eax, 2
cmp edi, ebx
jge 0x4a314c
jmp 0x4a31ab
lea esi, [esi + edi*2 + 2]
push esi
call ebp
add esp, 4
lea ecx, [esp + 0x48]
push eax
push esi
call fcn.0040fea0
push edi
lea ecx, [esp + 0x5c]
push ebx
push ecx
lea ecx, [esp + 0x24]
call fcn.004a60f0
mov edx, dword [0x535110]
lea ecx, [esp + 0x18]
push edx
push ebx
push eax
mov byte [esp + 0x84], 4
call fcn.0040fca0
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x7c], 3
call fcn.0040d630
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x4a31c1
mov ecx, 0x535104
mov dword [esp + 0x80], ecx
jmp 0x4a31ca
mov dword [esp + 0x80], ebx
mov ecx, ebx
mov ax, word [ecx]
test ax, ax
je 0x4a31eb
cmp ax, 0x5c
je 0x4a3200
mov ax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x4a31d2
mov dword [esp + 0x80], ecx
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], 2
call fcn.0040d630
jmp 0x4a33af
mov dword [esp + 0x80], ecx
xor edi, edi
mov esi, 0x53a760
jmp 0x4a3214
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x4a321d
mov ebx, 0x535104
mov eax, dword [esi]
push eax
call ebp
mov ecx, dword [esi]
push eax
push ecx
push ebx
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0x10
test eax, eax
je 0x4a3242
add esi, 0xc
inc edi
cmp esi, 0x53a808
jb 0x4a3210
jmp 0x4a31eb
mov edx, dword [esp + 0x80]
lea esi, [edx + 2]
push esi
call ebp
add esp, 4
lea ecx, [esp + 0x28]
push eax
push esi
call fcn.0040fea0
lea esi, [edi + edi*2]
shl esi, 2
mov edi, dword [esi + 0x53a764]
push edi
call ebp
add esp, 4
lea ecx, [esp + 0x38]
push eax
push edi
call fcn.0040fea0
lea eax, [esp + 0x28]
lea ecx, [esp + 0x58]
push eax
push 0x5607a8
push ecx
call fcn.00413d10
add esp, 0xc
mov edx, dword [0x535110]
lea ecx, [esp + 0x38]
push edx
push 0
push eax
mov byte [esp + 0x84], 5
call fcn.004a7080
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x7c], 3
call fcn.0040d630
mov esi, dword [esi + 0x53a768]
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], 2
call fcn.0040d630
test esi, esi
je 0x4a33af
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor ebx, ebx
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x4a32ef
mov eax, 0x535104
xor ecx, ecx
cmp ebx, 1
sete cl
push ecx
push 0x20006
push eax
lea ecx, [esp + 0x64]
call fcn.004a1d00
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x80], 0
test eax, eax
jne 0x4a331f
mov eax, 0x535104
lea edx, [esp + 0x14]
lea ecx, [esp + 0x80]
push edx
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push esi
call ebp
test eax, eax
jne 0x4a339f
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x4a334e
mov eax, 0x535104
lea edx, [esp + 0x84]
push 4
push edx
push 4
push 0
push eax
mov eax, dword [esp + 0x94]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jne 0x4a3379
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x80]
push ecx
call sym.SoftManager.exe__RegCloseKey360_4
cmp edi, 5
jne 0x4a33a6
lea ecx, [esp + 0x58]
call fcn.004a1e60
inc ebx
cmp ebx, 2
jge 0x4a33af
jmp 0x4a32e2
cmp eax, 5
jne 0x4a33a6
jmp 0x4a338b
lea ecx, [esp + 0x58]
call fcn.004a1e60
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x7c], 1
call fcn.0040d630
mov ecx, dword [esp + 0x2c]
xor esi, esi
cmp ecx, esi
je 0x4a33e7
mov al, byte [ecx - 1]
test al, al
je 0x4a33db
cmp al, 0xff
je 0x4a33db
dec al
mov byte [ecx - 1], al
jmp 0x4a33e7
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
pop edi
cmp ecx, esi
pop esi
pop ebp
pop ebx
je 0x4a342e
mov al, byte [ecx - 1]
test al, al
je 0x4a3422
cmp al, 0xff
je 0x4a3422
dec al
mov byte [ecx - 1], al
mov eax, dword [esp]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x60]
mov eax, dword [esp]
mov dword fs:[0], ecx
add esp, 0x6c
ret