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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fa81c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x468
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
xor eax, eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
push eax
mov dword [ebp - 4], eax
mov byte [ebp - 0x19], al
mov byte [ebp - 0x11], al
mov dword [ebp - 0x18], eax
push eax
mov eax, dword [ebx + 0x4c4]
push 0x1032
push eax
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x1a], 1
call esi
mov ecx, dword [ebx + 0x4c4]
push 2
push 0xffffffffffffffff
push 0x100c
push ecx
call esi
inc eax
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x459e88
mov edx, dword [ebx + 0x4c4]
dec esi
push 2
push esi
push 0x100c
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
inc eax
push esi
lea ecx, [ebx + 0x4a8]
mov dword [ebp - 0x20], eax
call fcn.005ddc22
mov edx, dword [ebx + 0x1c8]
mov dword [ebp - 0x24], eax
mov esi, dword [edx + 8]
dec esi
xor ecx, ecx
cmp ecx, esi
jg 0x459df7
mov edi, dword [edx + 4]
mov eax, ecx
shl eax, 4
mov eax, dword [edi + eax]
mov edi, dword [ebp - 0x24]
cmp dword [eax + 0x468], edi
je 0x459e54
inc ecx
jmp 0x459e37
test ecx, ecx
jl 0x459df7
mov edx, dword [edx + 4]
shl ecx, 4
mov ecx, dword [edx + ecx]
mov eax, dword [ecx + 0x8bc]
cmp eax, 3
jne 0x459e72
mov byte [ebp - 0x11], 1
jmp 0x459df7
cmp eax, 1
je 0x459df7
cmp eax, 5
je 0x459df7
inc dword [ebp - 0x18]
jmp 0x459df7
mov al, byte [ebp - 0x11]
test al, al
je 0x459f1a
mov edx, dword [0x6d116c]
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x30]
push eax
push ecx
push 0
push 0
push str.bNShConfDelFrLstDlg
push edx
mov dword [ebp - 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x459ec2
cmp dword [ebp - 0x30], 1
je 0x459f1a
push 0
lea ecx, [ebp - 0x150]
call fcn.0042b260
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 1
call fcn.005df8b6
cmp eax, 1
jne 0x459f7d
mov al, byte [ebp - 0x7c]
mov byte [ebp - 0x19], al
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 5
call fcn.005eb3fd
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 4
call fcn.005eb3fd
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 0
call fcn.005df4f7
mov esi, dword [ebp - 0x18]
test esi, esi
jle 0x45a0b6
mov eax, dword [0x6d116c]
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x30]
push ecx
push edx
push 0
push 0
push str.bNShConfDelUncDlg
push eax
mov dword [ebp - 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x459f57
cmp dword [ebp - 0x30], 1
je 0x45a0b6
mov ecx, dword [0x6cc564]
mov dword [ebp - 0x18], ecx
mov al, byte [ebp - 0x11]
mov byte [ebp - 4], 6
test al, al
je 0x459fbb
mov edx, dword [0x6d18fc]
lea eax, [ebp - 0x18]
push edx
push 0x6a1fe8
push eax
jmp 0x459fe1
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 3
call fcn.005eb3fd
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 2
call fcn.005eb3fd
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 0
call fcn.005df4f7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 1
jne 0x459fd2
mov ecx, dword [0x6d1900]
lea edx, [ebp - 0x18]
push ecx
push 0x6a1fe8
push edx
jmp 0x459fe1
mov eax, dword [0x6d1904]
lea ecx, [ebp - 0x18]
push eax
push 0x6a1fe8
push ecx
call fcn.005dc6eb
mov edx, dword [ebp - 0x18]
add esp, 0xc
lea ecx, [ebp - 0x154]
push 0
push 0
push edx
call fcn.0042b5c0
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 7
call fcn.005df8b6
cmp eax, 1
je 0x45a071
mov al, byte [ebp - 0x11]
test al, al
jne 0x45a06d
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xa
call fcn.005e38b9
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 9
call fcn.005eb3fd
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 8
call fcn.005eb3c5
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 6
call fcn.005df4f7
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005e38b9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x1a], 0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xd
call fcn.005e38b9
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0xc
call fcn.005eb3fd
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0xb
call fcn.005eb3c5
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 6
call fcn.005df4f7
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005e38b9
mov eax, dword [ebx + 0x4c4]
push 2
push 0xffffffffffffffff
push 0x100c
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea edi, [eax + 1]
test edi, edi
je 0x45a3ef
mov ecx, dword [ebx + 0x4c4]
lea esi, [edi - 1]
push 2
push esi
push 0x100c
push ecx
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
lea ecx, [ebx + 0x4a8]
lea edi, [eax + 1]
call fcn.005ddc22
mov edx, dword [ebx + 0x1c8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 8]
dec eax
xor ecx, ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], ecx
cmp ecx, eax
jg 0x45a0cf
mov esi, dword [edx + 4]
mov eax, ecx
shl eax, 4
mov eax, dword [esi + eax]
mov esi, dword [ebp - 0x20]
cmp dword [eax + 0x468], esi
je 0x45a139
mov eax, dword [ebp - 0x2c]
inc ecx
mov dword [ebp - 0x18], ecx
jmp 0x45a116
test ecx, ecx
jl 0x45a0cf
mov eax, dword [ebp - 0x18]
mov ecx, dword [edx + 4]
shl eax, 4
mov dword [ebp - 0x2c], eax
mov esi, dword [ecx + eax]
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x8bc]
cmp eax, 3
jne 0x45a29d
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x45a29d
mov al, byte [ebp - 0x19]
test al, al
je 0x45a2ba
mov eax, dword [0x6a5fe8]
test eax, eax
mov eax, dword [esi + 0x54]
je 0x45a207
test eax, eax
jne 0x45a18b
lea eax, [esi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45a2ba
test al, 0x10
jne 0x45a2ba
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x84
xor eax, eax
lea edi, [ebp - 0x474]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x45a1cc
lea eax, [esi + 0x58]
lea edx, [ebp - 0x474]
push eax
push edx
call fcn.005c742a
mov ecx, dword [ebx + 0x1c]
add esp, 8
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x474]
push edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], 3
mov word [ebp - 0x48], 0x54
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
jmp 0x45a2ba
test eax, eax
jne 0x45a20e
lea eax, [esi + 0x58]
push eax
lea ecx, [ebp - 0x24]
call fcn.005e3979
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45a293
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x78]
lea edx, [ebp - 0x260]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x42
xor eax, eax
lea edi, [ebp - 0x260]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, dword [ebp - 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebx + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x78]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], 3
mov word [ebp - 0x68], 0x54
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
call fcn.005e38b9
jmp 0x45a2ba
mov cl, byte [ebp - 0x1a]
test cl, cl
je 0x45a0cf
cmp eax, 1
je 0x45a0cf
cmp eax, 5
je 0x45a0cf
mov eax, dword [ebx + 0x194]
mov ecx, dword [ebp - 0x38]
push 0
push ecx
mov edx, dword [eax + 0x1c]
push 0x1008
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x6d1290]
test ecx, ecx
je 0x45a2ed
mov eax, dword [esi + 0x468]
push 0
push eax
call fcn.004fab80
mov ecx, esi
call fcn.00595ce0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x45a31b
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45a31b
mov ecx, dword [esi + 0x18]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x45a3b6
mov edi, dword [ebx + 0x1c8]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
sub eax, edx
mov edx, 1
dec eax
add ecx, esi
mov esi, edx
dec edx
test esi, esi
je 0x45a343
add ecx, 0x10
jmp 0x45a337
test eax, eax
je 0x45a368
mov ecx, dword [edi + 4]
shl eax, 4
push eax
mov eax, dword [ebp - 0x18]
lea edx, [eax + 1]
shl edx, 4
shl eax, 4
add edx, ecx
add eax, ecx
push edx
push eax
call fcn.005c8320
add esp, 0xc
mov edx, dword [edi + 8]
mov eax, dword [ebp - 0x20]
dec edx
mov dword [edi + 8], edx
mov ecx, dword [eax + 0x8c0]
test ecx, ecx
je 0x45a389
push eax
mov ecx, 0x6d1198
call fcn.004335a0
jmp 0x45a3b6
test eax, eax
mov byte [ebp - 4], 0xe
je 0x45a3af
mov esi, dword [ebp - 0x20]
mov ecx, esi
call fcn.0058cb20
push esi
call fcn.005dfce5
add esp, 4
jmp 0x45a3af
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x4c4]
push 2
push 0xffffffffffffffff
push 0x100c
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
inc edi
jmp 0x45a0cf
mov edx, dword [ebx + 0x4c4]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x1032
push edx
call esi
test eax, eax
jne 0x45a4c3
push eax
mov eax, dword [ebx + 0x1044]
push 0x8016
push 0x401
push eax
call esi
mov ecx, dword [ebx + 0x1044]
push 0
push 0x8017
push 0x401
push ecx
call esi
mov edx, dword [ebx + 0x1044]
push 0
push 0x8019
push 0x401
push edx
call esi
mov eax, dword [ebx + 0x1a4]
mov esi, dword [sym.imp.USER32.dll_EnableMenuItem]
push 1
push 0x271d
push eax
call esi
mov ecx, dword [ebx + 0x1a4]
push 1
push 0x2b40
push ecx
call esi
mov edx, dword [ebx + 0x1a4]
push 1
push 0x271b
push edx
call esi
mov eax, dword [ebx + 0x1a4]
push 1
push 0x271c
push eax
call esi
mov ecx, dword [ebx + 0x198]
push 1
push 0x8008
push ecx
call esi
mov edx, dword [ebx + 0x198]
push 1
push 0x8006
push edx
call esi
mov eax, dword [ebx + 0x198]
push 1
push 0x8007
push eax
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret