Function at 0x451980
Capabilities:
Delete file
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63274c
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x6ce8d4]
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 eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push 0x208
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x654], 0
call fcn.005d7990
add esp, 0xc
mov dword [ebp - 0x61c], 0xf
mov dword [ebp - 0x620], 0
mov byte [ebp - 0x630], 0
mov dword [ebp - 4], 0
test esi, esi
je 0x451de4
mov ecx, 0x6b65cd
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x451a31
test dl, dl
je 0x451a2d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x451a31
add eax, 2
add ecx, 2
test dl, dl
jne 0x451a11
xor eax, eax
jmp 0x451a36
sbb eax, eax
or eax, 1
test eax, eax
je 0x451de4
lea eax, [ebp - 0x618]
push esi
push eax
call fcn.00450730
add esp, 8
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
push str._sCfgOfSfUpt.dat
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
cmp dword [ebp - 0x604], 8
lea eax, [ebp - 0x618]
cmovae eax, dword [ebp - 0x618]
push eax
lea eax, [ebp - 0x648]
push eax
call fcn.004505a0
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x630]
cmp eax, esi
je 0x451aec
mov eax, dword [ebp - 0x61c]
cmp eax, 0x10
jb 0x451ac5
inc eax
lea ecx, [ebp - 0x630]
push eax
push dword [ebp - 0x630]
call fcn.00451390
push esi
lea ecx, [ebp - 0x630]
mov dword [ebp - 0x61c], 0xf
mov dword [ebp - 0x620], 0
mov byte [ebp - 0x630], 0
call fcn.00450850
mov eax, dword [ebp - 0x634]
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x451b40
mov ecx, dword [ebp - 0x648]
inc eax
cmp eax, 0x1000
jb 0x451b37
test cl, 0x1f
je 0x451b13
call fcn.005e0271
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x451b1f
call fcn.005e0271
sub ecx, eax
cmp ecx, 4
jae 0x451b2b
call fcn.005e0271
cmp ecx, 0x23
jbe 0x451b35
call fcn.005e0271
mov ecx, eax
push ecx
call fcn.005bca10
add esp, 4
cmp dword [ebp - 0x620], 0
je 0x451d76
cmp dword [ebp - 0x61c], 0x10
lea ecx, [ebp - 0x218]
push ebx
lea eax, [ebp - 0x630]
cmovae eax, dword [ebp - 0x630]
push ecx
push eax
lea ecx, [ebp - 0x655]
call fcn.0045a480
mov ebx, eax
mov dword [ebp - 0x654], ebx
test ebx, ebx
jne 0x451b97
mov ecx, dword [ebp - 0x604]
cmp ecx, 8
jb 0x451d94
inc ecx
push ecx
jmp 0x451d83
push 0x1f4
lea eax, [ebp - 0x600]
mov dword [ebp - 0x654], 0
push 0
push eax
mov dword [ebp - 0x650], 0
call fcn.005d7990
push 0x1f4
lea eax, [ebp - 0x40c]
push 0
push eax
call fcn.005d7990
push 0x63cc5c
lea eax, [ebp - 0x218]
xor esi, esi
push eax
lea eax, [ebp - 0x650]
push eax
call fcn.005e4007
mov eax, dword [ebp - 0x650]
add esp, 0x24
test eax, eax
je 0x451d76
push eax
push 0x1f4
lea eax, [ebp - 0x600]
push 1
push eax
call fcn.005e4332
push dword [ebp - 0x650]
mov dword [ebp - 0x660], eax
call fcn.005e40e6
add esp, 0x14
mov dword [ebp - 0x650], esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x600]
cmp cl, 0xd
je 0x451d76
cmp cl, 0xa
je 0x451d76
xor ebx, ebx
cmp dword [ebp - 0x660], ebx
jbe 0x451d2a
nop dword [eax]
mov dl, byte [ebp + ebx - 0x600]
cmp dl, 0xd
jne 0x451cf1
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x451c75
sub ecx, edx
jne 0x451cae
push esi
lea eax, [ebp - 0x40c]
push eax
push edi
call fcn.005d7410
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x451c96
sub ecx, edx
lea eax, [ecx + 1]
push eax
push edi
call fcn.005e04c0
add esp, 8
jmp 0x451cd8
mov ecx, dword [ebp - 0x65c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x451cb7
sub ecx, edx
jne 0x451d2a
push esi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x65c]
call fcn.005d7410
add esp, 0xc
push 0x1f4
xor esi, esi
lea eax, [ebp - 0x40c]
push esi
push eax
call fcn.005d7990
add esp, 0xc
jmp 0x451d1d
cmp dl, 0xa
je 0x451d1d
mov ecx, edi
lea eax, [ecx + 1]
mov dword [ebp - 0x64c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x451d01
sub ecx, dword [ebp - 0x64c]
jne 0x451d15
cmp esi, 0x21
jg 0x451d2a
mov byte [ebp + esi - 0x40c], dl
inc esi
inc ebx
cmp ebx, dword [ebp - 0x660]
jb 0x451c60
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x451d30
sub edi, ecx
cmp edi, 0x20
jne 0x451d76
mov ebx, dword [ebp - 0x65c]
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x451d50
sub ecx, edx
jne 0x451d6c
push esi
lea eax, [ebp - 0x40c]
push eax
push ebx
call fcn.005d7410
add esp, 0xc
mov dword [ebp - 0x654], 1
mov eax, dword [ebp - 0x604]
cmp eax, 8
jb 0x451d94
inc eax
push eax
push dword [ebp - 0x618]
lea ecx, [ebp - 0x618]
call fcn.004513e0
mov eax, dword [ebp - 0x61c]
cmp eax, 0x10
jb 0x451de4
mov ecx, dword [ebp - 0x630]
inc eax
cmp eax, 0x1000
jb 0x451ddb
test cl, 0x1f
je 0x451db7
call fcn.005e0271
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x451dc3
call fcn.005e0271
sub ecx, eax
cmp ecx, 4
jae 0x451dcf
call fcn.005e0271
cmp ecx, 0x23
jbe 0x451dd9
call fcn.005e0271
mov ecx, eax
push ecx
call fcn.005bca10
add esp, 4
mov eax, dword [ebp - 0x654]
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.005bcf27
mov esp, ebp
pop ebp
ret 0x10