Function at 0x10019320
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a39d
mov eax, dword fs:[0]
push eax
sub esp, 0x634
mov eax, dword [0x100891f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.10043b10
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10043b10
mov eax, dword [0x1008cd6c]
add esp, 0xc
test al, 1
jne 0x100193b6
or eax, 1
mov dword [0x1008cd68], 0
mov dword [0x1008cd6c], eax
mov byte [ebp - 0x629], 0
lea eax, [ebp - 0x63c]
mov dword [ebp - 4], 0
push eax
call fcn.1001c340
lea eax, [ebp - 0x63c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x634], eax
lea eax, [ebp - 0x629]
mov dword [ebp - 0x630], eax
lea eax, [ebp - 0x634]
push eax
push 0x100175e0
push 0x1008cd68
call fcn.1001c7f6
add esp, 0x10
test eax, eax
je 0x10019707
lea eax, [ebp - 0x63c]
mov dword [ebp - 4], 2
push eax
call fcn.1001c37a
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x628]
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x1008cd70
push eax
lea eax, [ebp - 0x218]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x1001947c
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100264cc
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10043b10
add esp, 0xc
lea eax, [ebp - 0x628]
push str.Uninst.exe
push eax
lea eax, [ebp - 0x420]
push eax
call esi
lea eax, [ebp - 0x420]
push eax
call edi
test eax, eax
je 0x100196d9
call fcn.100031c0
mov ecx, eax
test ecx, ecx
je 0x10019727
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x638], eax
mov dword [ebp - 4], 5
call fcn.100031c0
mov ecx, eax
test ecx, ecx
je 0x10019731
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x630], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x630]
call fcn.10002830
test al, al
jne 0x10019542
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10019520
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x630]
call fcn.100037a0
lea eax, [ebp - 0x638]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x630]
push eax
call fcn.1001a3b0
mov edx, dword [ebp - 0x630]
or ebx, 0xffffffff
add esp, 8
mov byte [ebp - 4], 5
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10019580
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.100031c0
mov ecx, eax
test ecx, ecx
je 0x1001973b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x640], eax
mov byte [ebp - 4], 8
call fcn.100031c0
mov ecx, eax
test ecx, ecx
je 0x10019745
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x630], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x630]
call fcn.10002830
test al, al
jne 0x10019603
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100195e1
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x630]
call fcn.100037a0
lea eax, [ebp - 0x640]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x630]
push eax
call fcn.1001a3b0
mov edx, dword [ebp - 0x630]
add esp, 8
mov byte [ebp - 4], 8
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001963e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x638]
mov esi, dword [ebp - 0x640]
cmp dword [edi - 0xc], 0
je 0x100196a2
cmp dword [esi - 0xc], 0
je 0x100196a2
push edi
push esi
call fcn.10002970
add esp, 8
test eax, eax
jns 0x100196a2
mov byte [ebp - 4], 5
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001967f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10019700
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x10019460
mov byte [ebp - 4], 5
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100196bd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100196d9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push 0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x10019700
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
jmp 0x10019460
lea eax, [ebp - 0x63c]
mov byte [ebp - 4], 3
push eax
call fcn.1001c39b
add esp, 4
mov byte [ebp - 4], 1
test al, al
jne 0x1001974f
call fcn.1001c80e
push 0x80004005
call fcn.10002810
push 0x80004005
call fcn.10002810
push 0x80004005
call fcn.10002810
push 0x80004005
call fcn.10002810
sub esp, 8
lea eax, [ebp - 0x63c]
mov ecx, esp
push eax
call fcn.100024c0
call fcn.10004140
int3