Function at 0x1003d7c4
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push 0x2a4
mov eax, 0x1017d0d3
call fcn.10077939
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 0x2ac], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003df5c
call fcn.1003c826
test al, al
je 0x1003d80e
push ebx
push ebp
pop ebp
pop ebp
push esi
pop edi
pop esi
pop edx
pop edx
push ebp
push ebp
pop esp
push ebp
push ebp
push esi
push edx
push esp
pop ebp
pop ebx
push edi
pop esp
pop edx
push ecx
pop edi
pop eax
pop edi
call fcn.1003c93a
test al, al
je 0x1003d830
push esi
pop esp
push esp
pop ebx
push edi
pop ecx
push ebx
push esi
pop ebx
pop esi
push ecx
push eax
pop edi
pop eax
pop esi
push esi
pop esi
pop ecx
push ebx
pop edi
pop ebp
push edi
pop eax
pop ebx
pop eax
call fcn.1003c86b
test al, al
je 0x1003d855
pop eax
push esi
pop ebp
pop edx
push edi
pop eax
push ecx
push edx
pop esp
pop edi
pop ebx
push esi
push ebx
pop eax
push ebx
pop eax
push esi
pop ebp
pop ebp
push edx
push edi
pop ebx
pop edi
pop esi
push ebp
pop ebp
pop ebp
push ebx
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1003d8ca
call fcn.1003c826
test al, al
je 0x1003d883
pop ebp
pop edi
push esi
push ebp
push esi
push esp
push esi
pop ebp
pop ebp
push eax
pop ebx
push esp
pop ebx
push esp
pop eax
push ebx
pop esi
pop ebp
push esp
pop eax
push ecx
call fcn.1003c574
test al, al
je 0x1003d89e
pop eax
pop edx
push edx
pop esi
pop ecx
push eax
push eax
pop edx
push esi
push edx
push esp
push edx
pop ebx
push esi
push ecx
push esi
pop ecx
pop edi
call fcn.1003ca09
test al, al
je 0x1003df5c
pop ecx
push ecx
push edx
pop edx
push edi
push esi
pop ecx
pop esp
pop esp
push esp
push edx
push edx
push ecx
pop edx
push eax
pop edx
push esi
pop eax
push ebp
push edi
pop ecx
push eax
pop eax
pop eax
pop eax
push edx
jmp 0x1003df5c
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.10056120
add esp, 0xc
mov dword [ebp - 0x234], 7
xor eax, eax
mov dword [ebp - 0x238], ebx
lea ecx, [ebp - 0x248]
mov word [ebp - 0x248], ax
push ebx
push 0x101d73f8
call fcn.1001fe10
mov dword [ebp - 4], ebx
call fcn.1003cad8
test al, al
je 0x1003d929
push esp
pop esi
push esp
pop ecx
push ebp
push ecx
pop eax
pop edi
push ecx
push esi
push edx
push ecx
pop esp
push ebp
push eax
pop esp
push esp
pop esp
call fcn.1003c574
test al, al
je 0x1003d94e
pop ebp
push eax
push esp
push ecx
push edi
push esp
push ebx
pop edi
push esp
push ecx
pop esp
push esp
pop ebx
pop ebx
pop edi
pop edx
push esi
pop ebp
push eax
push ecx
pop esp
push esp
pop esi
pop ecx
pop ebp
pop ebx
pop edx
push edx
call fcn.1003c5b9
test al, al
je 0x1003d973
push eax
push esi
pop edx
push edx
pop edx
pop ebp
push edi
pop edi
pop esp
push ebx
push esp
pop eax
pop esi
pop eax
push ecx
push esp
push edi
push edi
push edx
push edi
push ebx
pop ebx
push edx
push ebp
push edx
push edi
push esi
push esi
call fcn.1003c757
test al, al
je 0x1003d996
pop edx
push esi
pop edi
pop esi
pop edi
push esp
pop esp
pop ebp
push ebp
pop eax
push ebx
push edx
push esi
pop ebx
push edx
push edi
push eax
push ecx
pop edi
push ebp
push ebp
pop ecx
push edx
pop edi
pop esi
push ebx
call fcn.1003c5fe
test al, al
je 0x1003d9b5
push edi
push edi
push ebx
push eax
pop ebp
pop esi
pop edi
pop esp
pop ebp
push edx
pop edx
push edx
pop edi
pop ebp
push ebx
push esi
push edi
push eax
pop ebx
pop esp
pop ecx
pop ebx
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp - 0x2ac]
lea eax, [ebp - 0x2a8]
push eax
call fcn.1003eca6
pop ecx
pop ecx
mov byte [ebp - 4], 1
call fcn.1003ca93
test al, al
je 0x1003da03
pop ecx
pop ecx
pop ebx
push esi
pop ebp
pop esp
pop esi
pop ebx
pop ecx
pop edi
pop esp
push ebp
pop esi
pop ebx
pop edi
pop ecx
push eax
push edx
push ebp
pop esp
push ebp
push esi
pop esi
push edx
pop eax
push eax
push ebx
call fcn.1003c97f
test al, al
je 0x1003da21
push ebp
pop eax
push ebp
push ecx
pop esp
push ebp
push eax
push esp
pop ecx
pop edi
push ecx
push edi
push ecx
push ebp
pop ecx
push eax
pop esp
push edi
push esp
pop edx
push eax
call fcn.1003c52f
test al, al
je 0x1003da3e
pop eax
push edi
push ebp
push ebx
push esp
push ebx
push ecx
pop edi
pop ebx
pop eax
pop esp
push esi
push ebp
pop ebp
push edi
pop ebp
push eax
push ebx
push edi
push edi
call fcn.1003cb1d
test al, al
je 0x1003da62
push ecx
push edi
pop edx
pop ebp
pop esi
push edi
push ecx
pop eax
pop ebx
push ecx
push edx
pop ecx
push ebp
pop esp
push ebp
pop edi
push esp
pop edi
pop ebp
pop edi
pop esp
push esi
push esi
pop ebp
push esi
pop edx
push eax
push dword [ebp - 0x2ac]
lea eax, [ebp - 0x278]
push eax
call fcn.1003eff0
pop ecx
pop ecx
mov byte [ebp - 4], 2
call fcn.1003c5fe
test al, al
je 0x1003da9f
pop esi
pop edx
push ebp
pop ebp
push eax
push esp
pop eax
push esi
push eax
push eax
push ebx
pop edi
pop esp
pop esp
push esi
pop esp
pop edi
push esp
push edx
pop ebx
pop edi
push eax
push ebp
push esp
pop ebp
pop ecx
pop ebp
push ebp
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.1003eff0
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 3
push eax
call fcn.10040b49
add esp, 0xc
call fcn.1003cad8
test al, al
je 0x1003dae5
push edx
pop edx
pop esp
push edi
push edi
pop ecx
push esp
push esi
pop ebx
pop edi
pop esi
pop esi
push esp
push eax
pop esp
pop ecx
pop edi
push edi
pop ebx
pop edx
push edx
pop esi
push esp
call fcn.1003c9c4
test al, al
je 0x1003db08
pop ebp
pop ebp
pop edi
pop ebx
pop edi
push eax
pop edi
push esi
push ebp
pop esp
pop eax
push esp
push esi
push edx
push edx
push esi
push eax
pop esp
push esp
push edi
pop ebx
pop esi
pop ebp
push ebp
push edi
pop ebp
lea eax, [ebp - 0x260]
push eax
call fcn.10040b49
pop ecx
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x260]
call fcn.1003e630
test eax, eax
jne 0x1003dba1
call fcn.1003cb1d
test al, al
je 0x1003db4f
pop esp
pop esi
pop esp
pop edx
push eax
pop edx
push edx
push eax
pop esp
pop edx
push esi
push ebp
pop esi
push esi
push esi
pop eax
pop edi
pop edx
pop edi
push edi
push esp
push esp
push ecx
pop edx
push esp
push edi
pop edi
call fcn.1003c9c4
test al, al
je 0x1003db71
push ebx
push edx
push ebp
pop ebx
pop edi
pop edi
push esp
pop eax
pop eax
pop esp
push edi
push eax
pop ecx
pop ebp
push ecx
pop esi
push eax
pop esi
push esp
pop edx
push edx
push ebx
pop edx
push ecx
pop esi
cmp word [ebp - 0x218], 0
jne 0x1003db7f
xor eax, eax
jmp 0x1003db8c
lea eax, [ebp - 0x218]
push eax
call fcn.100649fb
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.1001fe10
jmp 0x1003dbf0
call fcn.1003c4ea
test al, al
je 0x1003dbc1
push edx
pop esi
pop ebx
pop edx
pop edx
push eax
push esi
pop ebx
pop eax
push edi
pop edi
push edx
pop eax
push eax
push edx
pop eax
push ecx
push ebp
pop ebx
push edx
pop esi
pop ebp
pop ebx
push dword [ebp - 0x2ac]
lea eax, [ebp - 0x290]
push eax
call fcn.1003eef2
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.10021800
push 0
push 1
lea ecx, [ebp - 0x290]
call fcn.1001fd50
and dword [ebp - 0x2b0], 0
call fcn.1003cba7
test al, al
je 0x1003dc11
pop ebx
push ecx
push eax
push esi
pop ecx
pop eax
push ebx
pop ebx
pop ebp
push edi
pop edx
push edx
push eax
pop edx
push edx
pop ebp
pop eax
call fcn.1003c86b
test al, al
je 0x1003dc2d
pop eax
pop eax
push ebx
push eax
pop esi
push edi
pop ecx
push edi
push ebp
pop ebp
pop ecx
push esp
pop eax
pop eax
push ebx
pop edx
pop ebp
pop ebx
pop esp
call fcn.1003c5b9
test al, al
je 0x1003dc4b
push eax
push edx
push edx
push ebp
pop ebx
push esi
push eax
push edx
pop esi
pop edx
push ecx
push edi
pop edi
push edx
pop esp
push edx
push ecx
pop eax
pop ecx
push ecx
pop ecx
mov ebx, dword [ebp - 0x2b0]
and dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x21c], 7
push eax
push 0x101d73f8
mov word [ebp - 0x230], ax
call fcn.1001fe10
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x230]
call fcn.10020060
call fcn.1003c4ea
test al, al
je 0x1003dcc0
pop ebx
pop edi
pop eax
push esi
push ebx
pop ecx
pop ecx
push ecx
push ebx
push edx
push esi
pop esi
push esi
pop ebx
pop ebp
push esp
push edx
push ecx
push esi
push edi
push eax
push edi
push edx
push edi
pop ecx
pop ebp
push eax
mov ebx, dword [ebp - 0x2b0]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x230]
call fcn.10021b90
push str..fcb
call fcn.100649fb
pop ecx
push eax
push str..fcb
lea ecx, [ebp - 0x230]
call fcn.10021a60
test ebx, ebx
jle 0x1003dd31
mov eax, ebx
cdq
push edx
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.1003e68e
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 5
call fcn.10021b90
push 0
push 1
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 4
call fcn.1001fd50
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003de31
call fcn.1003c712
test al, al
je 0x1003dd74
pop eax
push edx
pop esp
pop ebx
push ecx
push eax
pop edx
pop edi
push ebx
pop esp
pop edx
pop edi
push edi
pop esi
push edi
pop ecx
push esp
push eax
push esi
push esi
push ebp
pop esp
push edx
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1003de31
call fcn.1003c97f
test al, al
je 0x1003ddbf
push eax
push ebx
pop esp
push edx
push edx
pop eax
push ecx
pop ebp
push esp
pop ebx
pop esi
push ebp
pop eax
pop ecx
push edx
push ebp
pop eax
pop eax
push ebx
push esp
push ecx
pop ecx
push esi
pop edx
push ecx
push edi
pop eax
push ebx
push ebp
pop edi
push esp
call fcn.1003c688
test al, al
je 0x1003ddde
pop esi
push ecx
pop ebp
push ebp
pop eax
pop esi
push ebx
push ebx
push ebx
pop eax
pop ebx
push edi
pop eax
push edi
pop esp
pop edx
push ebp
push eax
push eax
pop edi
push edi
push edx
call fcn.1003c79c
test al, al
je 0x1003de03
pop ebx
pop ebp
pop edx
push edx
push ebp
pop ebx
pop ebx
pop edx
push ebx
push edi
push ebx
pop edx
pop edi
push edx
push ebp
push esp
push ecx
pop eax
push ebx
pop eax
push ecx
pop eax
pop edx
pop edi
push edi
push ecx
push edi
pop ebp
mov ebx, dword [ebp - 0x2b0]
cmp ebx, 0xa
jge 0x1003df16
push 0
inc ebx
mov byte [ebp - 4], 3
push 1
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x2b0], ebx
call fcn.1001fd50
jmp 0x1003dc51
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov ebx, dword [ebp - 0x2ac]
cmovae eax, dword [ebp - 0x230]
push eax
push ebx
call fcn.10064dc6
pop ecx
pop ecx
call fcn.1003c7e1
test al, al
je 0x1003de83
push eax
pop esp
pop ecx
push ebx
pop eax
pop ecx
push ecx
pop ebx
pop edx
push edi
push ebx
pop esp
push ebx
push ebx
push edi
pop esp
push edx
pop edi
pop ecx
pop ebx
push ebp
pop edx
pop edi
push edi
push edx
pop esp
push esi
push ebp
push esi
push edi
push ebx
push ebp
mov ebx, dword [ebp - 0x2ac]
call fcn.1003cad8
test al, al
je 0x1003dea5
push esp
push edx
push edi
push edx
pop eax
pop ecx
push esp
push edx
pop ecx
pop edx
pop ecx
push esp
pop eax
push esp
pop edx
push esi
pop esp
push ebx
push edx
push esp
pop esi
push esp
push esi
push edi
pop edi
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x230]
push eax
call esi
test eax, eax
je 0x1003dee5
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 5
cmovae eax, dword [ebp - 0x230]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebx
call esi
test eax, eax
je 0x1003df16
call fcn.1003c574
test al, al
je 0x1003df0b
push ebp
push ebp
pop esi
push ecx
pop edi
push edi
push eax
push edi
pop ebx
pop ebx
push esi
push ebp
push esi
push edx
push ebx
push esp
mov ebx, dword [ebp - 0x2ac]
push 5
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor ebx, ebx
lea ecx, [ebp - 0x230]
xor esi, esi
push ebx
inc esi
push esi
call fcn.1001fd50
push ebx
push esi
lea ecx, [ebp - 0x260]
call fcn.1001fd50
push ebx
push esi
lea ecx, [ebp - 0x278]
call fcn.1001fd50
push ebx
push esi
lea ecx, [ebp - 0x2a8]
call fcn.1001fd50
push ebx
push esi
lea ecx, [ebp - 0x248]
call fcn.1001fd50
call fcn.100778f4
ret