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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599887
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x61c554]
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 0x403a52
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x403a52
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0045ef40
add esp, 0xc
lea ecx, [ebp - 0x2a8]
push 0x608fd4
call fcn.00401d40
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.00403d60
push edi
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 1
push eax
call fcn.00403a70
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00403a70
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 3
push eax
call fcn.00403e90
lea eax, [ebp - 0x260]
push eax
call fcn.00403e90
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x260]
call fcn.00404830
test eax, eax
jne 0x403614
cmp word [ebp - 0x218], ax
jne 0x4035e3
xor ecx, ecx
lea eax, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0x2a8]
call fcn.00401ea0
jmp 0x40364b
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4035f0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2a8]
call fcn.00401ea0
jmp 0x40364b
push edi
lea eax, [ebp - 0x248]
push eax
call fcn.00403bb0
push eax
lea ecx, [ebp - 0x2a8]
call fcn.00404050
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x40364b
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00401fa0
xor esi, esi
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x21c], 7
push eax
push 0x608fd4
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00401ea0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x230]
call fcn.004020f0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x230]
call fcn.004045a0
push 4
push str..del
lea ecx, [ebp - 0x230]
call fcn.00404470
test esi, esi
jle 0x403732
xor eax, eax
xorps xmm0, xmm0
push esi
mov word [ebp - 0x244], ax
mov word [ebp - 0x232], ax
lea eax, [ebp - 0x244]
push 0x60903c
push eax
movups xmmword [ebp - 0x242], xmm0
call fcn.00404980
add esp, 0xc
cmp word [ebp - 0x244], 0
jne 0x403701
xor ecx, ecx
jmp 0x40371f
lea ecx, [ebp - 0x244]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403710
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x230]
call fcn.00404470
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 0x4037a5
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 0x4037a5
cmp esi, 0xa
jge 0x403815
mov byte [ebp - 4], 3
inc esi
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x403650
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00401fa0
jmp 0x403650
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push edi
call fcn.00470c9c
add esp, 8
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x403803
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 5
cmovae eax, dword [ebp - 0x230]
push 0
push eax
call esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403815
push 5
push 0
push edi
call esi
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x403877
mov ecx, dword [ebp - 0x230]
inc eax
cmp eax, 0x7fffffff
jbe 0x403833
call fcn.00462b01
add eax, eax
cmp eax, 0x1000
jb 0x40386e
test byte [ebp - 0x230], 0x1f
je 0x40384a
call fcn.00462b01
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x403856
call fcn.00462b01
sub ecx, eax
cmp ecx, 4
jae 0x403862
call fcn.00462b01
cmp ecx, 0x23
jbe 0x40386c
call fcn.00462b01
mov ecx, eax
push ecx
call fcn.0041a97f
add esp, 4
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x4038d9
mov ecx, dword [ebp - 0x260]
inc eax
cmp eax, 0x7fffffff
jbe 0x403895
call fcn.00462b01
add eax, eax
cmp eax, 0x1000
jb 0x4038d0
test byte [ebp - 0x260], 0x1f
je 0x4038ac
call fcn.00462b01
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4038b8
call fcn.00462b01
sub ecx, eax
cmp ecx, 4
jae 0x4038c4
call fcn.00462b01
cmp ecx, 0x23
jbe 0x4038ce
call fcn.00462b01
mov ecx, eax
push ecx
call fcn.0041a97f
add esp, 4
xor eax, eax
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x250], 0
cmp eax, 8
jb 0x403958
mov ecx, dword [ebp - 0x278]
inc eax
cmp eax, 0x7fffffff
jbe 0x403914
call fcn.00462b01
add eax, eax
cmp eax, 0x1000
jb 0x40394f
test byte [ebp - 0x278], 0x1f
je 0x40392b
call fcn.00462b01
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x403937
call fcn.00462b01
sub ecx, eax
cmp ecx, 4
jae 0x403943
call fcn.00462b01
cmp ecx, 0x23
jbe 0x40394d
call fcn.00462b01
mov ecx, eax
push ecx
call fcn.0041a97f
add esp, 4
xor eax, eax
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x268], 0
cmp eax, 8
jb 0x4039d7
mov ecx, dword [ebp - 0x290]
inc eax
cmp eax, 0x7fffffff
jbe 0x403993
call fcn.00462b01
add eax, eax
cmp eax, 0x1000
jb 0x4039ce
test byte [ebp - 0x290], 0x1f
je 0x4039aa
call fcn.00462b01
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4039b6
call fcn.00462b01
sub ecx, eax
cmp ecx, 4
jae 0x4039c2
call fcn.00462b01
cmp ecx, 0x23
jbe 0x4039cc
call fcn.00462b01
mov ecx, eax
push ecx
call fcn.0041a97f
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 0x403a52
mov ecx, dword [ebp - 0x2a8]
inc eax
cmp eax, 0x7fffffff
jbe 0x403a12
call fcn.00462b01
add eax, eax
cmp eax, 0x1000
jb 0x403a49
test cl, 0x1f
je 0x403a25
call fcn.00462b01
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x403a31
call fcn.00462b01
sub ecx, eax
cmp ecx, 4
jae 0x403a3d
call fcn.00462b01
cmp ecx, 0x23
jbe 0x403a47
call fcn.00462b01
mov ecx, eax
push ecx
call fcn.0041a97f
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.00448575
mov esp, ebp
pop ebp
ret 4