Function at 0x4019b0
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Set file attributes
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41b1d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x288]
mov dword [esp + 0x278], ebx
mov ecx, dword [eax + 4]
cmp ecx, ebx
je 0x4019f3
call fcn.004033b0
jmp 0x4019f5
xor eax, eax
push 0x41f390
push eax
call fcn.00412f71
add esp, 8
cmp eax, ebx
mov dword [esp + 0x2c], eax
jne 0x401a61
push 0xc
call fcn.004129a7
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x278], 1
je 0x401a33
push 0x41f374
mov ecx, eax
call fcn.00402ee0
jmp 0x401a35
xor eax, eax
mov esi, dword [esp + 0x280]
cmp eax, ebx
mov byte [esp + 0x278], bl
mov dword [esi], eax
jne 0x401a53
push 0x8007000e
call fcn.00412746
lea ecx, [esp + 8]
call fcn.00402250
jmp 0x402230
push ebp
push edi
push eax
lea ecx, [esp + 0x74]
push 0x208
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.00412ede
add esp, 0xc
test eax, eax
je 0x402010
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebp, dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, dword [esp + 0x28c]
cmp esi, ebx
je 0x401ad7
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x40]
push edx
push eax
call fcn.00412ebc
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
add esp, 8
sub ecx, eax
push ebx
push ecx
push 0x403
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
push 5
lea edx, [esp + 0x74]
lea ecx, [esp + 0x74]
push 0x41f36c
push edx
mov dword [esp + 0x2c], ecx
mov esi, 1
call fcn.0041a9c0
add esp, 0xc
test eax, eax
jne 0x401cf1
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
add edx, 5
push eax
push ecx
mov dword [esp + 0x28], edx
call fcn.00401720
lea edx, [esp + 0x28]
lea eax, [esp + 0x38]
push edx
push eax
mov byte [esp + 0x290], 2
call fcn.00401720
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x290], 3
push ecx
call fcn.00401970
add esp, 0x14
test al, al
je 0x401dda
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x401b5a
mov eax, dword [eax]
jmp 0x401b5c
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401e1d
cmp byte [esp + 0x294], bl
jne 0x401bb2
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x401b81
mov eax, dword [eax]
jmp 0x401b83
xor eax, eax
push 0x80
push eax
call edi
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x401b97
mov ecx, dword [eax]
jmp 0x401b99
xor ecx, ecx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x401ba5
mov eax, dword [eax]
jmp 0x401ba7
xor eax, eax
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
je 0x401bc3
call fcn.00403360
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x280], bl
cmp ecx, ebx
je 0x401bdb
call fcn.00403360
mov dword [esp + 0x18], ebx
cmp esi, ebx
jne 0x401db6
push 0xc
call fcn.004129a7
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x280], 0xd
je 0x401c0b
lea edx, [esp + 0x70]
mov ecx, eax
push edx
call fcn.00402ee0
jmp 0x401c0d
xor eax, eax
cmp eax, ebx
mov byte [esp + 0x280], bl
mov dword [esp + 0x28], eax
jne 0x401c26
push 0x8007000e
call fcn.00412746
push 0xc
mov byte [esp + 0x284], 0xe
call fcn.004129a7
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x280], 0xf
je 0x401c56
push 0x41f358
mov ecx, eax
call fcn.00402ee0
jmp 0x401c58
xor eax, eax
cmp eax, ebx
mov byte [esp + 0x280], 0xe
mov dword [esp + 0x14], eax
jne 0x401c72
push 0x8007000e
call fcn.00412746
lea eax, [esp + 0x28]
lea ecx, [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x288], 0x10
call fcn.004023e0
lea ecx, [esp + 0x14]
call fcn.00402250
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x280], bl
cmp ecx, ebx
je 0x401cae
call fcn.00403360
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x401cba
mov eax, dword [eax]
jmp 0x401cbc
xor eax, eax
mov edx, dword [esp + 0x28c]
push 0x32
push 0x41f334
push eax
push edx
call ebp
cmp eax, 4
jne 0x401d9c
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
je 0x401ad7
call fcn.00403360
mov dword [esp + 0x2c], ebx
jmp 0x401ad7
mov eax, dword [esp + 0x20]
push 4
push 0x41f32c
push eax
call fcn.0041a9c0
add esp, 0xc
test eax, eax
jne 0x401fca
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x1c]
add esi, 4
push ecx
push edx
mov dword [esp + 0x28], esi
call fcn.00401720
mov eax, dword [esp + 0x28]
mov byte [esp + 0x288], 0xa
push eax
call fcn.00401970
add esp, 0xc
test al, al
je 0x401f53
cmp byte [esp + 0x294], bl
jne 0x401d82
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x401d59
mov eax, dword [eax]
jmp 0x401d5b
xor eax, eax
push 0x80
push eax
call edi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x401d6f
mov eax, dword [eax]
jmp 0x401d71
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebx
jne 0x401d82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x280], bl
cmp ecx, ebx
je 0x401db6
call fcn.00403360
mov dword [esp + 0x1c], ebx
jmp 0x401db6
cmp eax, 5
jne 0x401f9c
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
je 0x401db6
call fcn.00403360
mov dword [esp + 0x2c], ebx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x70]
push ecx
push 0x208
push edx
call fcn.00412ede
add esp, 0xc
test eax, eax
jne 0x401a92
jmp 0x402010
lea ecx, [esp + 0x10]
call fcn.00402250
push 0xc
call fcn.004129a7
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x280], 4
je 0x401e12
push 0x41f2fc
mov ecx, eax
call fcn.00402ee0
mov dword [esp + 0x10], eax
jmp 0x401f35
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x401f35
lea ecx, [esp + 0x10]
call fcn.00402250
push 0xc
call fcn.004129a7
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x280], 5
je 0x401e4e
push 0x41f2c0
mov ecx, eax
call fcn.00402ee0
jmp 0x401e50
xor eax, eax
push 0xc
mov byte [esp + 0x284], 3
mov dword [esp + 0x14], eax
call fcn.004129a7
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x280], 6
je 0x401e84
push 0x41f2bc
mov ecx, eax
call fcn.00402ee0
jmp 0x401e86
xor eax, eax
cmp eax, ebx
mov byte [esp + 0x280], 3
mov dword [esp + 0x14], eax
jne 0x401ea0
push 0x8007000e
call fcn.00412746
push 0xc
mov byte [esp + 0x284], 7
call fcn.004129a7
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x280], 8
je 0x401ed7
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, eax
call fcn.00403030
mov esi, eax
jmp 0x401ed9
xor esi, esi
lea ecx, [esp + 0x10]
call fcn.00402250
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov byte [esp + 0x280], 3
call fcn.00402250
push 0xc
call fcn.004129a7
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x280], 9
je 0x401f26
lea ecx, [esp + 0x30]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, eax
call fcn.00403030
mov esi, eax
jmp 0x401f28
xor esi, esi
lea ecx, [esp + 0x10]
call fcn.00402250
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x30]
call fcn.00402250
lea ecx, [esp + 0x18]
mov byte [esp + 0x280], bl
call fcn.00402250
jmp 0x402010
lea ecx, [esp + 0x10]
call fcn.00402250
push 0xc
call fcn.004129a7
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x280], 0xb
je 0x401f84
push 0x41f2fc
mov ecx, eax
call fcn.00402ee0
jmp 0x401f86
xor eax, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], eax
mov byte [esp + 0x280], bl
call fcn.00402250
jmp 0x402010
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x401fae
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esp + 0x10]
call fcn.00402250
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
mov dword [esp + 0x10], ecx
je 0x402010
call fcn.00403360
jmp 0x402010
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x401fdb
call fcn.00403360
mov dword [esp + 0x10], ebx
push 0xc
call fcn.004129a7
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x280], 0xc
je 0x402003
push 0x41f294
mov ecx, eax
call fcn.00402ee0
jmp 0x402005
xor eax, eax
mov byte [esp + 0x280], bl
mov dword [esp + 0x10], eax
cmp byte [0x422ddc], bl
je 0x4021c4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x402039
mov eax, dword [eax]
cmp eax, ebx
je 0x402039
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, ebx
jne 0x4021c4
mov eax, dword [esp + 0x298]
lea ecx, [esp + 0x48]
push eax
push 0x41f264
push ecx
call fcn.004129dd
push 0xc
call fcn.004129a7
add esp, 0x10
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x280], 0x11
je 0x402078
push 0x41f234
mov ecx, eax
call fcn.00402f80
jmp 0x40207a
xor eax, eax
cmp eax, ebx
mov byte [esp + 0x280], bl
mov dword [esp + 0x28], eax
jne 0x402093
push 0x8007000e
call fcn.00412746
mov edx, dword [esp + 0x290]
mov eax, dword [edx]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x4020ae
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x288], 0x13
call fcn.004023e0
lea ecx, [esp + 0x14]
call fcn.00402250
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x280], 0x15
cmp ecx, ebx
je 0x4020eb
call fcn.00403360
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4020f7
mov eax, dword [eax]
jmp 0x4020f9
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4021b7
lea edx, [esp + 0x24]
lea eax, [esp + 0x1c]
push edx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x41f1d0
mov dword [esp + 0x3c], ebx
call sub.Common.dll_struct_HKEY______cdecl_GetHKLM_void_
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [esp + 0x1c], ebx
je 0x402178
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x402145
mov eax, dword [eax]
mov esi, eax
jmp 0x402149
xor eax, eax
xor esi, esi
push eax
call fcn.00412e9f
add esp, 4
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x48]
push ecx
push esi
push 1
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4021b7
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x402189
call fcn.00403360
mov dword [esp + 0x10], ebx
push 0xc
call fcn.004129a7
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x280], 0x17
je 0x4021b1
push 0x41f198
mov ecx, eax
call fcn.00402f80
jmp 0x4021b3
xor eax, eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x4021c4
call fcn.00403360
mov esi, dword [esp + 0x28c]
cmp esi, ebx
je 0x4021f9
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x40]
push edx
push eax
call fcn.00412ebc
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
add esp, 8
sub ecx, edi
push ebx
push ecx
push 0x403
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x34]
push edx
call fcn.00412e22
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x28c]
add esp, 4
cmp eax, ebx
mov dword [esi], eax
pop edi
pop ebp
je 0x402230
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 8]
cmp ecx, ebx
je 0x402230
call fcn.00403360
mov ecx, dword [esp + 0x270]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x274
ret