Function at 0x40b65a
Capabilities:
Delete registry key

Disassembly:
push ebp
lea ebp, [esp - 0x68]
mov eax, dword [ebp + 0x70]
sub esp, 0x2e4
mov dword [0x4123c0], eax
call fcn.0040450f
test eax, eax
jne 0x40b67c
inc eax
jmp 0x40b905
push esi
push edi
call fcn.0040d3b3
xor edi, edi
lea eax, [ebp - 0x27c]
mov dword [ebp + 0x48], 0x400
mov dword [ebp + 0x4c], 0x100
mov dword [ebp + 0x34], edi
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x40], edi
mov dword [ebp + 0x44], edi
mov dword [ebp + 0x50], edi
mov dword [ebp + 0x3c], edi
mov dword [ebp + 0x5c], 0x20
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x58], edi
mov dword [ebp + 0x64], edi
call fcn.0040b3e2
push dword [ebp + 0x78]
lea eax, [ebp + 0x34]
push eax
mov dword [ebp + 0x14], eax
call fcn.00406b76
mov esi, dword [ebp + 0x14]
push str._savelangfile
call fcn.00406cea
test eax, eax
jl 0x40b6f4
mov dword [0x412b2c], 0x41239c
call fcn.004079de
jmp 0x40b71a
call fcn.0040789e
mov esi, dword [ebp + 0x14]
push str._deleteregkey
call fcn.00406cea
test eax, eax
jl 0x40b754
push str.SoftwareNirSoftShellExView
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp + 8]
mov dword [ebp - 0x27c], 0x40f948
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea esi, [ebp + 0x34]
mov dword [ebp - fcn.004015f5], 0x40e4b0
call fcn.004069d9
lea esi, [ebp + 0x54]
call fcn.00406ec5
lea esi, [ebp + 0x34]
call fcn.004069d9
jmp 0x40b901
mov esi, dword [ebp + 0x14]
push ebx
push str._external
call fcn.00406cea
mov esi, eax
cmp esi, edi
mov ebx, 0x104
jl 0x40b7a5
mov ecx, dword [ebp + 0x14]
lea eax, [esi + 1]
call fcn.00406cda
mov edi, dword [ebp + 0x10]
push eax
add edi, 0x3f4
call fcn.00405eda
pop ecx
mov ecx, dword [ebp + 0x14]
lea eax, [esi + 2]
call fcn.00406cda
mov edi, dword [ebp + 0x10]
push eax
add edi, 0x4f9
call fcn.00405eda
pop ecx
xor edi, edi
mov esi, dword [ebp + 0x14]
push str._remote
call fcn.00406cea
cmp eax, edi
jl 0x40b7cf
mov ecx, dword [ebp + 0x14]
inc eax
call fcn.00406cda
mov edi, dword [ebp + 0x10]
push eax
add edi, 0x5fe
call fcn.00405eda
pop ecx
lea edi, [ebp - 0x27c]
call fcn.0040b4fb
mov eax, dword [ebp + 0x10]
call fcn.00403af5
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x30], 1
jle 0x40b7f8
call fcn.0040b579
test eax, eax
jne 0x40b8cb
lea esi, [ebp - 0x27c]
call fcn.0040b36a
cmp dword [ebp - 0x130], 3
jne 0x40b810
push 3
jmp 0x40b812
push 5
push dword [ebp - 0x174]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x174]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x67
push dword [0x4123c0]
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
xor esi, esi
push esi
push esi
push 0x415
push dword [ebp - 0x174]
mov dword [ebp - 0x15c], eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
push esi
push esi
push esi
lea eax, [ebp + 0x18]
push eax
call ebx
test eax, eax
je 0x40b8cb
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageA]
lea eax, [ebp + 0x18]
push eax
push dword [ebp - 0x15c]
push dword [ebp - 0x174]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x40b8be
mov eax, dword [0x41293c]
cmp eax, esi
je 0x40b89a
lea ecx, [ebp + 0x18]
push ecx
push eax
call edi
test eax, eax
jne 0x40b8be
lea eax, [ebp + 0x18]
push eax
push dword [ebp - 0x174]
call edi
test eax, eax
jne 0x40b8be
lea eax, [ebp + 0x18]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
push esi
lea eax, [ebp + 0x18]
push eax
call ebx
test eax, eax
jne 0x40b86c
push dword [ebp + 8]
mov dword [ebp - 0x27c], 0x40f948
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea esi, [ebp + 0x34]
mov dword [ebp - fcn.004015f5], 0x40e4b0
call fcn.004069d9
lea esi, [ebp + 0x54]
call fcn.00406ec5
lea esi, [ebp + 0x34]
call fcn.004069d9
pop ebx
pop edi
xor eax, eax
pop esi
add ebp, 0x68
leave
ret 0x10