Function at 0x403fa0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x10360
call fcn.00412160
mov eax, dword [0x59a024]
xor eax, esp
mov dword [esp + 0x1035c], eax
push ebx
mov eax, dword [esp + 0x1036c]
push ebp
mov ebp, dword [esp + 0x1036c]
push esi
push edi
mov ebx, ecx
mov ecx, 8
mov esi, str.SOFTWARESSL_VPN_CLIENTSHORTCUT_
lea edi, [esp + 0x16c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x1de
xor edi, edi
lea ecx, [esp + 0x192]
push edi
push ecx
mov dword [esp + 0x2c], eax
call fcn.00412eb0
mov esi, str.HKEY_CURRENT_USER
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], edi
call fcn.00407920
push 0x100
lea edx, [esp + 0x7c]
push edi
push edx
mov esi, eax
call fcn.00412eb0
lea eax, [esp + 0x84]
push eax
call fcn.00408160
push 0x1ff
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x190]
push edx
call fcn.0040a4e0
push 0x1ff
lea eax, [esp + 0x198]
push 0x59656c
push eax
call fcn.0040a4e0
add esp, 0x34
lea ecx, [esp + 0x10]
push ecx
push 0x20019
xor ebx, ebx
push ebx
lea edx, [esp + 0x178]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4042c7
mov edx, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x30]
push ecx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, eax
cmp esi, ebx
je 0x4040d4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push str.Query_subkey_info_failed__errcode_is__d.
call fcn.00402730
add esp, 8
lea eax, [edi - 0x12]
jmp 0x4042c9
cmp dword [esp + 0x14], ebx
je 0x4042bc
push 0x3a
push ebp
call fcn.00409ef0
add esp, 8
cmp eax, ebx
jne 0x404102
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xfffffff6
jmp 0x4042c9
push ebp
lea esi, [eax + 1]
mov byte [eax], bl
call fcn.0040a8c8
mov edi, eax
add esp, 4
cmp edi, 0x400
mov dword [esp + 0x28], edi
jg 0x4041a2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404127
mov ecx, dword [0x5a3940]
sub eax, edx
push eax
shl ecx, 6
add ecx, 0x5a7520
push esi
push ecx
call fcn.00409fb0
mov eax, dword [0x5a3940]
mov ecx, dword [esp + 0x2c]
mov esi, eax
shl esi, 6
inc eax
add esp, 0xc
add esi, 0x5a7520
mov dword [0x5a3940], eax
call fcn.00403a30
mov eax, dword [0x5a3940]
cmp eax, edi
jge 0x40417c
mov edx, dword [esp + 0x10]
push edx
jmp 0x4042c1
jle 0x4041b7
push eax
push str.ResID_number_is_wrong:g_iCurrentResIDNum___d.
call fcn.00402730
push 0x10000
push ebx
push 0x5a7520
call fcn.00412eb0
add esp, 0x14
mov dword [0x5a3940], ebx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xfffffff6
jmp 0x4042c9
push edi
push str.Number_of_ResIDNum_:__d.
mov dword [0x5a3940], ebx
call fcn.00402730
mov ecx, dword [esp + 0x1c]
push ecx
push str.Number_of_subkeys_:__ld.
call fcn.00402730
add esp, 0x10
xor esi, esi
cmp dword [esp + 0x14], ebx
jbe 0x4042a9
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea esp, [esp]
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x40]
push eax
push esi
push ecx
call edi
cmp eax, ebx
jne 0x40425b
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x30]
push eax
push str.RegEnumKeyEx_is_succeed._szRegID:_s_dRegIDLen:_d.
call fcn.00402730
lea ecx, [esp + 0x378]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.00403ec0
push 0x40
lea edx, [esp + 0x4c]
push ebx
push edx
mov dword [esp + 0x40], 0x40
call fcn.00412eb0
inc esi
add esp, 0x28
cmp esi, dword [esp + 0x14]
jb 0x4041f0
jmp 0x404269
push eax
push str.RegEnumKeyEx_is_failed_error_is__l
call fcn.00402730
add esp, 8
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jle 0x4042a9
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExA]
lea esi, [esp + 0x36c]
mov ebp, eax
mov eax, dword [esp + 0x10]
push ebx
push 0x100
push esi
push eax
call edi
cmp eax, ebx
je 0x4042a1
push eax
push esi
push str.Delete_subkey__s_failed_error_code:_ld
call fcn.00402730
add esp, 0xc
add esi, 0x40
sub ebp, 1
jne 0x404280
push 0x10000
push ebx
push 0x5a7520
call fcn.00412eb0
add esp, 0xc
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x1036c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409b58
add esp, 0x10360
ret