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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511cbd
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x5524b4]
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
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
mov byte [ebp - 0x1c], 0
movq qword [ebp - 0x1b], xmm0
mov byte [ebp - 0x13], 0
push dword [edi + 0xf0]
push 0x53dd14
push eax
call fcn.0042c4c0
push 0x64
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.004ab2f0
mov ecx, esp
lea edx, [edi + 0xc0]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x451142
mov eax, dword [ecx]
jmp 0x451144
mov eax, ecx
push 0xffffffffffffffff
xor esi, esi
push esi
push edx
mov word [eax], si
call fcn.00408120
lea eax, [ebp - 0x2a4]
push eax
call fcn.0044e850
add esp, 0x1c
cmp dword [eax + 0x14], 0x10
jb 0x451169
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x80]
push 0x51f630
push eax
call fcn.0042c4c0
mov eax, dword [ebp - 0x290]
add esp, 0xc
cmp eax, 0x10
jb 0x451199
inc eax
lea ecx, [ebp - 0x2a4]
push eax
push dword [ebp - 0x2a4]
call fcn.004092a0
cmp byte [ebp - 0x80], 0
mov dword [ebp - 0x2a8], 0xf
mov dword [ebp - 0x2ac], esi
mov byte [ebp - 0x2bc], 0
jne 0x4511ba
xor ecx, ecx
jmp 0x4511c9
lea ecx, [ebp - 0x80]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4511c0
sub ecx, edx
push ecx
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x2bc]
call fcn.00409450
cmp dword [edi + 0xa4], 8
lea esi, [edi + 0x90]
mov dword [ebp - 4], 0
jb 0x4511f3
mov eax, dword [esi]
jmp 0x4511f5
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x2d8], 0
cmp dword [esi + 0x14], 8
jb 0x451210
mov eax, dword [esi]
jmp 0x451212
mov eax, esi
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.004024f0
add esp, 8
mov ebx, eax
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 1
jb 0x451232
mov ecx, dword [edi]
jmp 0x451234
mov ecx, edi
push ecx
lea eax, [ebp - 0x2a4]
push eax
call fcn.004024f0
push ebx
push eax
mov byte [ebp - 4], 2
call fcn.00411950
mov ecx, dword [ebp - 0x290]
add esp, 0x10
mov byte [ebp - 4], 1
mov bl, al
cmp ecx, 0x10
jb 0x4512a2
mov edx, dword [ebp - 0x2a4]
inc ecx
cmp ecx, 0x1000
jb 0x451299
test dl, 0x1f
jne 0x451459
mov eax, dword [edx - 4]
cmp eax, edx
jae 0x451459
sub edx, eax
cmp edx, 4
jb 0x451459
cmp edx, 0x23
ja 0x451459
mov edx, eax
push edx
call fcn.0048114c
add esp, 4
mov eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x290], 0xf
mov dword [ebp - 0x294], 0
mov byte [ebp - 0x2a4], 0
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x45130d
mov ecx, dword [ebp - 0x2d4]
inc eax
cmp eax, 0x1000
jb 0x451304
test cl, 0x1f
jne 0x451459
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x451459
sub ecx, eax
cmp ecx, 4
jb 0x451459
cmp ecx, 0x23
ja 0x451459
mov ecx, eax
push ecx
call fcn.0048114c
add esp, 4
test bl, bl
jne 0x451329
mov eax, dword [ebp - 0x2d8]
inc eax
mov dword [ebp - 0x2d8], eax
cmp eax, 3
jl 0x451206
jmp 0x45133a
push edi
call fcn.0044fdc0
add esp, 4
test eax, eax
jne 0x4515ad
push 0x20a
lea eax, [ebp - 0x28c]
push 0
push eax
call fcn.004ab2f0
add esp, 0xc
lea eax, [ebp - 0x28c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [edi + 0x88], 0
je 0x45137b
cmp dword [edi + 0x8c], 8
lea eax, [edi + 0x78]
jb 0x45138d
mov eax, dword [eax]
jmp 0x45138d
cmp dword [edi + 0x2c], 8
lea eax, [edi + 0x18]
jb 0x451386
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
mov dword [ebp - 0x290], 7
mov dword [ebp - 0x294], 0
mov word [ebp - 0x2a4], ax
cmp word [ebp - 0x28c], ax
jne 0x4513c5
xor ecx, ecx
jmp 0x4513df
lea ecx, [ebp - 0x28c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4513d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x2a4]
call fcn.004079e0
lea eax, [ebp - 0x2a4]
cmp esi, eax
je 0x45143c
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x45140f
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00408870
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x451427
mov eax, dword [esi]
jmp 0x451429
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x2a4]
push eax
mov ecx, esi
call fcn.00417340
mov eax, dword [ebp - 0x290]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x4514a2
mov ecx, dword [ebp - 0x2a4]
inc eax
cmp eax, 0x7fffffff
jbe 0x45145e
call fcn.004af061
add eax, eax
cmp eax, 0x1000
jb 0x451499
test byte [ebp - 0x2a4], 0x1f
je 0x451475
call fcn.004af061
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x451481
call fcn.004af061
sub ecx, eax
cmp ecx, 4
jae 0x45148d
call fcn.004af061
cmp ecx, 0x23
jbe 0x451497
call fcn.004af061
mov ecx, eax
push ecx
call fcn.0048114c
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x4514ac
mov eax, dword [esi]
jmp 0x4514ae
mov eax, esi
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.004024f0
add esp, 8
mov ebx, eax
cmp dword [edi + 0x2c], 8
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 4
jb 0x4514cf
mov ecx, dword [ecx]
push ecx
lea eax, [ebp - 0x2a4]
push eax
call fcn.004024f0
push ebx
push eax
mov byte [ebp - 4], 5
call fcn.00411950
mov eax, dword [ebp - 0x290]
add esp, 0x10
mov byte [ebp - 4], 4
cmp eax, 0x10
jb 0x45153e
mov ecx, dword [ebp - 0x2a4]
inc eax
cmp eax, 0x1000
jb 0x451535
test cl, 0x1f
je 0x451511
call fcn.004af061
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x45151d
call fcn.004af061
sub ecx, eax
cmp ecx, 4
jae 0x451529
call fcn.004af061
cmp ecx, 0x23
jbe 0x451533
call fcn.004af061
mov ecx, eax
push ecx
call fcn.0048114c
add esp, 4
mov eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x290], 0xf
mov dword [ebp - 0x294], 0
mov byte [ebp - 0x2a4], 0
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x4515ad
mov ecx, dword [ebp - 0x2d4]
inc eax
cmp eax, 0x1000
jb 0x4515a4
test cl, 0x1f
je 0x451580
call fcn.004af061
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x45158c
call fcn.004af061
sub ecx, eax
cmp ecx, 4
jae 0x451598
call fcn.004af061
cmp ecx, 0x23
jbe 0x4515a2
call fcn.004af061
mov ecx, eax
push ecx
call fcn.0048114c
add esp, 4
xor ebx, ebx
cmp dword [esi + 0x14], 8
jb 0x4515b7
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4516a5
push 1
push 2
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
cmp dword [ecx + 0x14], 0x10
jb 0x4515e3
mov eax, dword [ecx]
jmp 0x4515e5
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], bl
lea eax, [ebp - 0x2bc]
push 0
push eax
call fcn.00408ea0
mov ecx, 0x556fb8
call fcn.00453e90
cmp dword [ebp - 0x2ac], ebx
je 0x451632
lea eax, [ebp - 0x2bc]
push eax
push edi
call fcn.00451ff0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x451632
lea eax, [edi + 0xc0]
push eax
call fcn.00454b50
add esp, 4
push 1
jmp 0x451634
push 0
push 3
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x451653
mov eax, dword [ecx]
jmp 0x451655
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x2bc]
push 0
push eax
call fcn.00408ea0
mov ecx, 0x556fb8
call fcn.00453e90
push edi
call fcn.00452ae0
add esp, 4
test eax, eax
lea eax, [ebp - 0x2bc]
je 0x4516a1
push 1
push 4
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
jmp 0x4516c0
push 0
jmp 0x451687
push 0
push 2
sub esp, 0x18
lea eax, [ebp - 0x2bc]
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
mov byte [ecx], bl
push 0xffffffffffffffff
push 0
push eax
call fcn.00408ea0
mov ecx, 0x556fb8
call fcn.00453e90
sub esp, 0x18
mov ecx, esp
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x53deb4
mov byte [ecx], 0
call fcn.00409450
lea eax, [ebp - 0x2bc]
mov ecx, 0x556fb8
push eax
call fcn.00453c00
mov eax, dword [ebp - 0x2a8]
cmp eax, 0x10
jb 0x451725
inc eax
lea ecx, [ebp - 0x2bc]
push eax
push dword [ebp - 0x2bc]
call fcn.004092a0
mov eax, ebx
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.004a4bd0
mov esp, ebp
pop ebp
ret