Function at 0x4a2cd0
Capabilities:
Resolve function by parsing pe exports
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x52abd0
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 ebp, ebp
push edi
push ebp
lea ecx, [esp + 0x4c]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x4c], al
call fcn.0040d630
mov cl, byte [esp + 0x80]
push ebp
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x2c]
mov dword [esp + 0x7c], ebp
call fcn.0040d630
mov dl, byte [esp + 0x80]
push ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0x7c], 1
mov byte [esp + 0x3c], dl
call fcn.0040d630
mov al, byte [esp + 0x80]
push ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], 2
mov byte [esp + 0x1c], al
call fcn.0040d630
mov esi, dword [esp + 0x80]
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
call ebx
add esp, 4
lea ecx, [esp + 0x18]
push eax
push esi
call fcn.0040fea0
push esi
mov byte [esp + 0x7c], 3
call ebx
add esp, 4
cmp word [esi + eax*2 - 2], 0x5c
je 0x4a2deb
lea edi, [eax - 1]
cmp edi, ebp
jl 0x4a2deb
lea eax, [esi + edi*2]
cmp word [eax], 0x5c
je 0x4a2d9c
dec edi
sub eax, 2
cmp edi, ebp
jge 0x4a2d8c
jmp 0x4a2deb
lea esi, [esi + edi*2 + 2]
push esi
call ebx
add esp, 4
lea ecx, [esp + 0x48]
push eax
push esi
call fcn.0040fea0
push edi
lea ecx, [esp + 0x5c]
push ebp
push ecx
lea ecx, [esp + 0x24]
call fcn.004a60f0
mov edx, dword [0x535110]
lea ecx, [esp + 0x18]
push edx
push ebp
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 ebp, dword [esp + 0x1c]
mov ebx, 0x535104
test ebp, ebp
je 0x4a2dfa
mov ebx, ebp
mov ax, word [ebx]
test ax, ax
je 0x4a2e14
cmp ax, 0x5c
je 0x4a2e29
mov ax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x4a2e02
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], 2
call fcn.0040d630
jmp 0x4a2ff5
xor edi, edi
mov esi, 0x53a760
jmp 0x4a2e36
mov ebp, dword [esp + 0x1c]
test ebp, ebp
jne 0x4a2e3f
mov ebp, 0x535104
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [esi]
push eax
push ecx
push ebp
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0x10
test eax, eax
je 0x4a2e68
add esi, 0xc
inc edi
cmp esi, 0x53a808
jb 0x4a2e32
jmp 0x4a2e14
lea esi, [ebx + 2]
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
call ebx
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 ebx
add esp, 4
lea ecx, [esp + 0x38]
push eax
push edi
call fcn.0040fea0
lea edx, [esp + 0x28]
lea eax, [esp + 0x58]
push edx
push 0x5607a8
push eax
call fcn.00413d10
add esp, 0xc
mov ecx, dword [0x535110]
mov byte [esp + 0x78], 5
push ecx
push 0
push eax
lea ecx, [esp + 0x44]
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 0x4a2ff5
mov ebp, dword [esp + 0x84]
xor edi, edi
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x4a2f16
mov eax, 0x535104
xor edx, edx
cmp edi, 1
sete dl
push edx
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 0x4a2f46
mov eax, 0x535104
lea ecx, [esp + 0x84]
lea edx, [esp + 0x80]
push ecx
push edx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4a2fe5
mov edi, dword [esp + 0x4c]
test edi, edi
jne 0x4a2f7c
mov edi, 0x535104
push ebp
call ebx
mov edx, dword [esp + 0x8c]
add esp, 4
xor ecx, ecx
lea eax, [eax + eax + 2]
test edx, edx
mov edx, dword [esp + 0x80]
push eax
setne cl
inc ecx
push ebp
push ecx
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jne 0x4a2fb7
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x80]
push eax
call sym.SoftManager.exe__RegCloseKey360_4
cmp edi, 5
jne 0x4a2fec
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x58]
call fcn.004a1e60
inc edi
cmp edi, 2
mov dword [esp + 0x14], edi
jge 0x4a2ff5
jmp 0x4a2f09
cmp eax, 5
jne 0x4a2fec
jmp 0x4a2fcd
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 0x4a302d
mov al, byte [ecx - 1]
test al, al
je 0x4a3021
cmp al, 0xff
je 0x4a3021
dec al
mov byte [ecx - 1], al
jmp 0x4a302d
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 0x4a3074
mov al, byte [ecx - 1]
test al, al
je 0x4a3068
cmp al, 0xff
je 0x4a3068
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