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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482047
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x4a20a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413912
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x413912
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00434750
add esp, 0xc
lea ecx, [ebp - 0x2a8]
push 0x49ad5c
call fcn.00409e80
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x290]
push eax
call fcn.00413c20
push edi
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 1
push eax
call fcn.00413930
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00413930
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 3
push eax
call fcn.00413d50
lea eax, [ebp - 0x248]
push eax
call fcn.00413d50
cmp dword [ebp - 0x24c], 8
lea ecx, [ebp - 0x260]
push dword [ebp - 0x250]
cmovae ecx, dword [ebp - 0x260]
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
push ecx
cmovae eax, dword [ebp - 0x248]
push dword [ebp - 0x238]
push eax
call fcn.0040ddc0
add esp, 0x10
test eax, eax
jne 0x4134e4
cmp word [ebp - 0x218], ax
jne 0x4134af
xor ecx, ecx
lea eax, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0x2a8]
call fcn.0040b830
jmp 0x413508
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4134c0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2a8]
call fcn.0040b830
jmp 0x413508
push edi
lea eax, [ebp - 0x278]
push eax
call fcn.00413a70
push eax
lea ecx, [ebp - 0x2a8]
call fcn.00409d80
lea ecx, [ebp - 0x278]
call fcn.00409d40
xor esi, esi
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x21c], 7
push eax
push 0x49ad5c
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.0040b830
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x230]
call fcn.0040b930
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040cc40
push 4
push str..del
lea ecx, [ebp - 0x230]
call fcn.0040cb10
test esi, esi
jle 0x4135f2
xor eax, eax
xorps xmm0, xmm0
push esi
mov word [ebp - 0x274], ax
mov word [ebp - 0x262], ax
lea eax, [ebp - 0x274]
push 0x49af18
push eax
movups xmmword [ebp - 0x272], xmm0
call fcn.004142b0
add esp, 0xc
cmp word [ebp - 0x274], 0
jne 0x4135c1
xor eax, eax
jmp 0x4135df
lea eax, [ebp - 0x274]
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4135d0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040cb10
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 0x413665
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 0x413665
cmp esi, 0xa
jge 0x4136d5
mov byte [ebp - 4], 3
inc esi
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x413510
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0040c980
jmp 0x413510
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push edi
call fcn.004459cb
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x230]
add esp, 8
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
call esi
test eax, eax
je 0x4136c3
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 edi
call esi
test eax, eax
je 0x4136d5
push 5
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x413737
mov ecx, dword [ebp - 0x230]
inc eax
cmp eax, 0x7fffffff
jbe 0x4136f3
call fcn.00437914
add eax, eax
cmp eax, 0x1000
jb 0x41372e
test byte [ebp - 0x230], 0x1f
je 0x41370a
call fcn.00437914
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x413716
call fcn.00437914
sub ecx, eax
cmp ecx, 4
jae 0x413722
call fcn.00437914
cmp ecx, 0x23
jbe 0x41372c
call fcn.00437914
mov ecx, eax
push ecx
call fcn.00417494
add esp, 4
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x413799
mov ecx, dword [ebp - 0x248]
inc eax
cmp eax, 0x7fffffff
jbe 0x413755
call fcn.00437914
add eax, eax
cmp eax, 0x1000
jb 0x413790
test byte [ebp - 0x248], 0x1f
je 0x41376c
call fcn.00437914
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x413778
call fcn.00437914
sub ecx, eax
cmp ecx, 4
jae 0x413784
call fcn.00437914
cmp ecx, 0x23
jbe 0x41378e
call fcn.00437914
mov ecx, eax
push ecx
call fcn.00417494
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x238], 0
cmp eax, 8
jb 0x413818
mov ecx, dword [ebp - 0x260]
inc eax
cmp eax, 0x7fffffff
jbe 0x4137d4
call fcn.00437914
add eax, eax
cmp eax, 0x1000
jb 0x41380f
test byte [ebp - 0x260], 0x1f
je 0x4137eb
call fcn.00437914
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4137f7
call fcn.00437914
sub ecx, eax
cmp ecx, 4
jae 0x413803
call fcn.00437914
cmp ecx, 0x23
jbe 0x41380d
call fcn.00437914
mov ecx, eax
push ecx
call fcn.00417494
add esp, 4
xor eax, eax
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x250], 0
cmp eax, 8
jb 0x413897
mov ecx, dword [ebp - 0x290]
inc eax
cmp eax, 0x7fffffff
jbe 0x413853
call fcn.00437914
add eax, eax
cmp eax, 0x1000
jb 0x41388e
test byte [ebp - 0x290], 0x1f
je 0x41386a
call fcn.00437914
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x413876
call fcn.00437914
sub ecx, eax
cmp ecx, 4
jae 0x413882
call fcn.00437914
cmp ecx, 0x23
jbe 0x41388c
call fcn.00437914
mov ecx, eax
push ecx
call fcn.00417494
add esp, 4
xor eax, eax
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x280], 0
cmp eax, 8
jb 0x413912
mov ecx, dword [ebp - 0x2a8]
inc eax
cmp eax, 0x7fffffff
jbe 0x4138d2
call fcn.00437914
add eax, eax
cmp eax, 0x1000
jb 0x413909
test cl, 0x1f
je 0x4138e5
call fcn.00437914
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4138f1
call fcn.00437914
sub ecx, eax
cmp ecx, 4
jae 0x4138fd
call fcn.00437914
cmp ecx, 0x23
jbe 0x413907
call fcn.00437914
mov ecx, eax
push ecx
call fcn.00417494
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417499
mov esp, ebp
pop ebp
ret 4