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

Disassembly:
push ebp
lea ebp, [esp - 0x110]
sub esp, 0x110
push 0xffffffffffffffff
push 0x64b4e0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x10c], 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 - 0x1c], ebx
xor edi, edi
mov dword [ebp - 4], edi
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x13], 1
mov dword [ebp - 0x78], edi
lea esi, [ebx + 0x5d0]
mov ecx, esi
call fcn.0043b280
mov ecx, esi
call fcn.004540c0
mov dword [ebp - 0x20], eax
lea esp, [esp]
cmp dword [ebp - 0x20], 0
je 0x46f1e5
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.004540e0
push eax
mov ecx, esi
call fcn.00600683
push eax
mov ecx, dword [ebx + 0x234]
call fcn.0045e8a0
test eax, eax
jl 0x46f190
push eax
mov ecx, dword [ebx + 0x234]
call fcn.004265e0
mov eax, dword [eax]
mov eax, dword [eax + 0x954]
cmp eax, 3
jne 0x46f1d8
mov byte [ebp - 0x11], 1
jmp 0x46f190
cmp eax, 1
je 0x46f190
cmp eax, 5
je 0x46f190
inc edi
jmp 0x46f190
cmp byte [ebp - 0x11], 0
je 0x46f249
mov dword [ebp - 0x28], 4
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0
push 0
push str.bNShConfDelFrLstDlg
mov eax, dword [0x75dbe4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46f219
cmp dword [ebp - 0x24], 1
je 0x46f249
push 0
lea ecx, [ebp + 0x70]
call fcn.0042fc40
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x70]
call fcn.005f647d
cmp eax, 1
jne 0x46f2a8
mov cl, byte [ebp + 0xe4]
mov byte [ebp - 0x12], cl
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.0042fce0
test edi, edi
jle 0x46f367
mov dword [ebp - 0x28], 4
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push str.bNShConfDelUncDlg
mov ecx, dword [0x75dbe4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46f284
cmp dword [ebp - 0x24], 1
je 0x46f367
lea ecx, [ebp - 0x18]
call fcn.00402510
mov byte [ebp - 4], 2
cmp byte [ebp - 0x11], 0
je 0x46f2d9
mov edx, dword [0x75f484]
push edx
push 0x678ea8
lea eax, [ebp - 0x18]
push eax
jmp 0x46f2ff
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.0042fce0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x10c]
xor ecx, ebp
call fcn.0062023e
add ebp, 0x110
mov esp, ebp
pop ebp
ret
cmp edi, 1
jne 0x46f2f0
mov ecx, dword [0x75f480]
push ecx
push 0x678ea8
lea edx, [ebp - 0x18]
push edx
jmp 0x46f2ff
mov eax, dword [0x75f47c]
push eax
push 0x678ea8
lea ecx, [ebp - 0x18]
push ecx
call fcn.00402f80
add esp, 0xc
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp + 0x6c]
call fcn.004300e0
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x6c]
call fcn.005f647d
cmp eax, 1
je 0x46f34f
cmp byte [ebp - 0x11], 0
jne 0x46f34b
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x6c]
call fcn.004301a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402580
jmp 0x46f2b4
mov byte [ebp - 0x13], 0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x6c]
call fcn.004301a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402580
mov ecx, esi
call fcn.004540c0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x46f691
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.004540e0
mov dword [ebp - 0x34], eax
push eax
mov ecx, esi
call fcn.00600683
push eax
mov ecx, dword [ebx + 0x234]
call fcn.0045e8a0
mov dword [ebp - 0x30], eax
test eax, eax
jl 0x46f371
push eax
mov ecx, dword [ebx + 0x234]
call fcn.004265e0
mov edi, dword [eax]
mov dword [ebp - 0x2c], edi
mov eax, dword [edi + 0x954]
cmp eax, 3
jne 0x46f608
cmp dword [edi + 0x5c], 0
je 0x46f608
cmp byte [ebp - 0x12], 0
je 0x46f4f6
cmp dword [0x752d28], 0
je 0x46f562
lea ebx, [edi + 0x54]
cmp dword [ebx], 0
je 0x46f3f1
mov eax, dword [ebx]
jmp 0x46f3f4
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46f4f3
test al, 0x10
jne 0x46f4f3
cmp dword [0x75dbb0], 0
je 0x46f426
push ebx
call fcn.0045eea0
add esp, 4
test eax, eax
jne 0x46f4f3
cmp dword [ebx], 0
je 0x46f42f
mov eax, dword [ebx]
jmp 0x46f432
lea eax, [ebx + 4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46f435
sub eax, edx
sar eax, 1
mov edi, eax
lea eax, [edi + 5]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005f4522
add esp, 4
mov esi, eax
test esi, esi
je 0x46f4f0
cmp dword [ebx], 0
je 0x46f475
mov ecx, dword [ebx]
jmp 0x46f478
lea ecx, [ebx + 4]
mov edx, esi
lea ebx, [ebx]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x46f480
xor eax, eax
mov word [esi + edi*2], ax
xor ecx, ecx
mov word [esi + edi*2 + 2], cx
xor edx, edx
mov word [esi + edi*2 + 4], dx
mov dword [ebp - 0x54], 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 word [ebp - 0x38], ax
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], 3
mov edx, 0x54
mov word [ebp - 0x44], dx
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push esi
call fcn.005f4517
add esp, 4
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x1c]
push 0
mov ecx, dword [ebp - 0x34]
push ecx
push 0x1008
mov ecx, dword [ebx + 0x1fc]
call fcn.004015c0
mov ecx, dword [0x75e260]
test ecx, ecx
je 0x46f524
push 0
mov edx, dword [edi + 0x4f8]
push edx
call fcn.00518e50
mov ecx, edi
call fcn.005bdf80
cmp dword [edi + 0x18], 0
je 0x46f629
mov eax, dword [edi + 0x18]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46f629
push 0
push 0
push 0x10
mov ecx, dword [edi + 0x18]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
lea esi, [ebx + 0x5d0]
jmp 0x46f367
cmp dword [edi + 0x54], 0
je 0x46f56d
mov eax, dword [edi + 0x54]
jmp 0x46f570
lea eax, [edi + 0x58]
push 0
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00402a80
add esp, 0xc
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46f5f7
xor eax, eax
mov dword [ebp - 0x74], 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 word [ebp - 0x58], ax
push 0x109
push eax
lea eax, [ebp]
push eax
call fcn.00620920
push 0x109
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp]
push edx
call fcn.00405490
add esp, 0x18
lea eax, [ebp]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebx + 0x20]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], 3
mov edx, 0x54
mov word [ebp - 0x64], dx
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402580
jmp 0x46f4f6
cmp byte [ebp - 0x13], 0
je 0x46f371
cmp eax, 1
je 0x46f371
cmp eax, 5
je 0x46f371
jmp 0x46f4f6
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebx + 0x234]
call fcn.0043c2c0
cmp dword [edi + 0x958], 0
je 0x46f657
push edi
mov ecx, 0x75e360
call fcn.004380e0
lea esi, [ebx + 0x5d0]
jmp 0x46f367
mov byte [ebp - 4], 5
push 1
mov ecx, edi
call fcn.00420cb0
mov dword [ebp - 4], 0
lea esi, [ebx + 0x5d0]
jmp 0x46f367
lea ecx, [ebx + 0x5d0]
call fcn.0043b280
test eax, eax
jne 0x46f6aa
push eax
push eax
push eax
mov ecx, ebx
call fcn.00455580
mov dword [ebp - 4], 0xffffffff
jmp 0x46f2b4