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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489397
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x4ad1dc]
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 0x403bd2
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x403bd2
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00432360
add esp, 0xc
lea ecx, [ebp - 0x2a8]
push 0x4a47b4
call fcn.00401f10
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.00403ee0
push edi
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 1
push eax
call fcn.00403bf0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00403bf0
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 3
push eax
call fcn.00404010
lea eax, [ebp - 0x260]
push eax
call fcn.00404010
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x260]
call fcn.00404980
test eax, eax
jne 0x403794
cmp word [ebp - 0x218], ax
jne 0x403763
xor ecx, ecx
lea eax, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0x2a8]
call fcn.00402070
jmp 0x4037cb
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403770
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2a8]
call fcn.00402070
jmp 0x4037cb
push edi
lea eax, [ebp - 0x248]
push eax
call fcn.00403d30
push eax
lea ecx, [ebp - 0x2a8]
call fcn.004041b0
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x4037cb
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00402170
xor esi, esi
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x21c], 7
push eax
push 0x4a47b4
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00402070
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x230]
call fcn.00402290
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x230]
call fcn.00404700
push 4
push str..del
lea ecx, [ebp - 0x230]
call fcn.004045d0
test esi, esi
jle 0x4038b2
xor eax, eax
xorps xmm0, xmm0
push esi
mov word [ebp - 0x244], ax
mov word [ebp - 0x232], ax
lea eax, [ebp - 0x244]
push 0x4a481c
push eax
movups xmmword [ebp - 0x242], xmm0
call fcn.00404ed0
add esp, 0xc
cmp word [ebp - 0x244], 0
jne 0x403881
xor ecx, ecx
jmp 0x40389f
lea ecx, [ebp - 0x244]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403890
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x230]
call fcn.004045d0
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 0x403925
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 0x403925
cmp esi, 0xa
jge 0x403995
mov byte [ebp - 4], 3
inc esi
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4037d0
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00402170
jmp 0x4037d0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push edi
call fcn.00445dd6
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 0x403983
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 0x403995
push 5
push 0
push edi
call esi
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4039f7
mov ecx, dword [ebp - 0x230]
inc eax
cmp eax, 0x7fffffff
jbe 0x4039b3
call fcn.00435054
add eax, eax
cmp eax, 0x1000
jb 0x4039ee
test byte [ebp - 0x230], 0x1f
je 0x4039ca
call fcn.00435054
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4039d6
call fcn.00435054
sub ecx, eax
cmp ecx, 4
jae 0x4039e2
call fcn.00435054
cmp ecx, 0x23
jbe 0x4039ec
call fcn.00435054
mov ecx, eax
push ecx
call fcn.00413747
add esp, 4
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x403a59
mov ecx, dword [ebp - 0x260]
inc eax
cmp eax, 0x7fffffff
jbe 0x403a15
call fcn.00435054
add eax, eax
cmp eax, 0x1000
jb 0x403a50
test byte [ebp - 0x260], 0x1f
je 0x403a2c
call fcn.00435054
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x403a38
call fcn.00435054
sub ecx, eax
cmp ecx, 4
jae 0x403a44
call fcn.00435054
cmp ecx, 0x23
jbe 0x403a4e
call fcn.00435054
mov ecx, eax
push ecx
call fcn.00413747
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 0x403ad8
mov ecx, dword [ebp - 0x278]
inc eax
cmp eax, 0x7fffffff
jbe 0x403a94
call fcn.00435054
add eax, eax
cmp eax, 0x1000
jb 0x403acf
test byte [ebp - 0x278], 0x1f
je 0x403aab
call fcn.00435054
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x403ab7
call fcn.00435054
sub ecx, eax
cmp ecx, 4
jae 0x403ac3
call fcn.00435054
cmp ecx, 0x23
jbe 0x403acd
call fcn.00435054
mov ecx, eax
push ecx
call fcn.00413747
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 0x403b57
mov ecx, dword [ebp - 0x290]
inc eax
cmp eax, 0x7fffffff
jbe 0x403b13
call fcn.00435054
add eax, eax
cmp eax, 0x1000
jb 0x403b4e
test byte [ebp - 0x290], 0x1f
je 0x403b2a
call fcn.00435054
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x403b36
call fcn.00435054
sub ecx, eax
cmp ecx, 4
jae 0x403b42
call fcn.00435054
cmp ecx, 0x23
jbe 0x403b4c
call fcn.00435054
mov ecx, eax
push ecx
call fcn.00413747
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 0x403bd2
mov ecx, dword [ebp - 0x2a8]
inc eax
cmp eax, 0x7fffffff
jbe 0x403b92
call fcn.00435054
add eax, eax
cmp eax, 0x1000
jb 0x403bc9
test cl, 0x1f
je 0x403ba5
call fcn.00435054
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x403bb1
call fcn.00435054
sub ecx, eax
cmp ecx, 4
jae 0x403bbd
call fcn.00435054
cmp ecx, 0x23
jbe 0x403bc7
call fcn.00435054
mov ecx, eax
push ecx
call fcn.00413747
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.004139c2
mov esp, ebp
pop ebp
ret 4