Function at 0x4652b0
Capabilities:
Check if file exists
Delete file
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x324]
sub esp, 0x324
push 0xffffffffffffffff
push 0x623166
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x320], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 4], esi
mov byte [ebp - 0x13], 0
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x12], 1
mov dword [ebp - 0x74], esi
lea edi, [ebx + 0x5c8]
mov ecx, edi
call fcn.004399b0
mov ecx, edi
call fcn.00450920
mov dword [ebp - 0x1c], eax
lea esp, [esp]
cmp dword [ebp - 0x1c], 0
je 0x465371
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.00450940
push eax
mov ecx, edi
call fcn.005dbaf5
push eax
mov ecx, ebx
call fcn.00455a70
test eax, eax
jl 0x465320
push eax
mov ecx, dword [ebx + 0x22c]
call fcn.004bf1a0
mov eax, dword [eax]
mov eax, dword [eax + 0x91c]
cmp eax, 3
jne 0x465364
mov byte [ebp - 0x11], 1
jmp 0x465320
cmp eax, 1
je 0x465320
cmp eax, 5
je 0x465320
inc esi
jmp 0x465320
cmp byte [ebp - 0x11], 0
je 0x4653de
mov dword [ebp - 0x20], 4
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0
push 0
push str.bNShConfDelFrLstDlg
mov eax, dword [0x70f604]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4653a5
cmp dword [ebp - 0x24], 1
je 0x4653de
push 0
lea ecx, [ebp + 0x284]
call fcn.0042e8b0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x284]
call fcn.005d199e
cmp eax, 1
jne 0x46543d
mov cl, byte [ebp + 0x2f8]
mov byte [ebp - 0x13], cl
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x284]
call fcn.0042e950
test esi, esi
jle 0x46550b
mov dword [ebp - 0x20], 4
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push str.bNShConfDelUncDlg
mov ecx, dword [0x70f604]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x465419
cmp dword [ebp - 0x24], 1
je 0x46550b
lea ecx, [ebp - 0x18]
call fcn.004024e0
mov byte [ebp - 4], 2
cmp byte [ebp - 0x11], 0
je 0x465471
mov edx, dword [0x710d84]
push edx
push 0x64edec
lea eax, [ebp - 0x18]
push eax
jmp 0x465497
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x284]
call fcn.0042e950
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x320]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x324
mov esp, ebp
pop ebp
ret
cmp esi, 1
jne 0x465488
mov ecx, dword [0x710d80]
push ecx
push 0x64edec
lea edx, [ebp - 0x18]
push edx
jmp 0x465497
mov eax, dword [0x710d7c]
push eax
push 0x64edec
lea ecx, [ebp - 0x18]
push ecx
call fcn.00402f60
add esp, 0xc
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp + 0x280]
call fcn.0042ed60
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x280]
call fcn.005d199e
cmp eax, 1
je 0x4654f0
cmp byte [ebp - 0x11], 0
jne 0x4654ec
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x280]
call fcn.0042ee20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402550
jmp 0x46544c
mov byte [ebp - 0x12], 0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x280]
call fcn.0042ee20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402550
mov ecx, edi
call fcn.00450920
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4657b8
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.00450940
mov dword [ebp - 0x30], eax
push eax
mov ecx, edi
call fcn.005dbaf5
push eax
mov ecx, ebx
call fcn.00455a70
mov dword [ebp - 0x2c], eax
test eax, eax
jl 0x465515
push eax
mov ecx, dword [ebx + 0x22c]
call fcn.004bf1a0
mov esi, dword [eax]
mov eax, dword [esi + 0x91c]
cmp eax, 3
jne 0x4656ce
cmp dword [esi + 0x5c], 0
je 0x4656ce
cmp byte [ebp - 0x13], 0
je 0x4656ea
cmp dword [0x704d14], 0
je 0x465622
cmp dword [esi + 0x54], 0
je 0x46558d
mov eax, dword [esi + 0x54]
jmp 0x465590
lea eax, [esi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4656ea
test al, 0x10
jne 0x4656ea
xor eax, eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov word [ebp - 0x54], ax
push 0x212
push eax
lea ecx, [ebp]
push ecx
call fcn.005f8cb0
add esp, 0xc
cmp dword [esi + 0x54], 0
je 0x4655e0
mov ecx, dword [esi + 0x54]
jmp 0x4655e3
lea ecx, [esi + 0x58]
lea edx, [ebp]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x4655e6
lea edx, [ebp]
mov dword [ebp - 0x68], edx
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 3
mov ecx, 0x54
mov word [ebp - 0x60], cx
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
jmp 0x4656ea
cmp dword [esi + 0x54], 0
je 0x46562d
mov eax, dword [esi + 0x54]
jmp 0x465630
lea eax, [esi + 0x58]
push 0
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00402a50
add esp, 0xc
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4656c0
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov word [ebp - 0x34], ax
push 0x109
push eax
lea edx, [ebp + 0x214]
push edx
call fcn.005f8cb0
push 0x109
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp + 0x214]
push ecx
call fcn.00405370
add esp, 0x18
lea edx, [ebp + 0x214]
mov dword [ebp - 0x48], edx
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 3
mov ecx, 0x54
mov word [ebp - 0x40], cx
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402550
jmp 0x4656ea
cmp byte [ebp - 0x12], 0
je 0x465515
cmp eax, 1
je 0x465515
cmp eax, 5
je 0x465515
push 0
mov eax, dword [ebp - 0x30]
push eax
push 0x1008
mov ecx, dword [ebx + 0x1f4]
call fcn.00401590
mov ecx, dword [0x70fbd4]
test ecx, ecx
je 0x465718
push 0
mov edx, dword [esi + 0x4c0]
push edx
call fcn.00508300
mov ecx, esi
call fcn.005a1560
cmp dword [esi + 0x18], 0
je 0x46574e
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46574e
push 0
push 0
push 0x10
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
lea edi, [ebx + 0x5c8]
jmp 0x46550b
push 1
mov edx, dword [ebp - 0x2c]
push edx
mov ecx, dword [ebx + 0x22c]
call fcn.0043a5b0
cmp dword [esi + 0x920], 0
je 0x46577e
push esi
mov ecx, 0x70fcc0
call fcn.00436830
lea edi, [ebx + 0x5c8]
jmp 0x46550b
mov byte [ebp - 4], 5
push 1
mov ecx, esi
call fcn.00420800
mov dword [ebp - 4], 0
lea edi, [ebx + 0x5c8]
jmp 0x46550b
lea ecx, [ebx + 0x5c8]
call fcn.004399b0
test eax, eax
jne 0x4657d1
push eax
push eax
push eax
mov ecx, ebx
call fcn.00455640
mov dword [ebp - 4], 0xffffffff
jmp 0x46544c