Function at 0x4045a0
Capabilities:
Check if file exists
Delete file
Read file on windows
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44963f
mov eax, dword fs:[0]
push eax
sub esp, 0xc30
mov eax, dword [0x460df4]
xor eax, esp
mov dword [esp + 0xc2c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x460df4]
xor eax, esp
push eax
lea eax, [esp + 0xc44]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x180]
mov dword [esi + 0x94], 2
call fcn.004078b0
test eax, eax
mov ecx, dword [esi + 0x180]
je 0x404695
call fcn.004089e0
mov eax, dword [esi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x64
push 0x5402
push eax
call ebx
call fcn.00418ca8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404634
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
push 0x90
mov dword [esp + 0xc50], 0
call fcn.00418c57
test eax, eax
je 0x404670
push 0x90
push eax
lea ecx, [esp + 0x24]
call fcn.00401540
mov edi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x1c]
push 0
push edi
push 0x5400
push ecx
call ebx
mov edx, dword [esi + 0x1c]
push 0
push 0x44c8cf
push 0x5401
push edx
call ebx
jmp 0x405078
call fcn.004078a0
test eax, eax
jne 0x404732
call fcn.00418ca8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4046bc
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
push 0x71
mov dword [esp + 0xc50], 1
call fcn.00418c57
test eax, eax
je 0x4046f2
push 0x71
push eax
lea ecx, [esp + 0x24]
call fcn.00401540
mov edi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x1c]
push 0
push edi
push 0x5404
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [edi - 0x10]
mov dword [esp + 0xc4c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40472b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4050a1
cmp dword [esi + 0xd4], 0x10
jb 0x404743
mov eax, dword [esi + 0xc0]
jmp 0x404749
lea eax, [esi + 0xc0]
push 0
push 0
lea ecx, [esp + 0x448]
push ecx
lea edx, [esp + 0x84c]
push edx
push eax
call fcn.00432f8c
add esp, 0x14
lea eax, [esp + 0x440]
push eax
lea ecx, [esp + 0x844]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, dword [esi + 0x180]
mov dword [esp + 0x1c], 0
call fcn.004078c0
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
jle 0x404d64
lea ecx, [ecx]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x180]
push edx
call fcn.00407e30
lea ebx, [eax + 0x38]
mov eax, dword [ebx + 4]
test eax, eax
mov dword [esp + 0x34], ebx
je 0x4047d8
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4047dd
call fcn.0043364c
mov eax, dword [ebx + 4]
add eax, 0x1c
cmp dword [eax + 0x18], 0x10
jb 0x4047ee
mov ecx, dword [eax + 4]
jmp 0x4047f1
lea ecx, [eax + 4]
lea edx, [esp + 0x440]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x4047f8
call fcn.00418ca8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40462a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0xc4c], 2
call fcn.00418ca8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40462a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x450]
push edx
mov byte [esp + 0xc60], 3
mov dword [esp + 0x4c], 3
call fcn.004228d8
test eax, eax
je 0x404d91
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea ecx, [esp + 0x18]
call fcn.004017b0
mov ecx, dword [esp + 0x20]
xor eax, eax
test ecx, ecx
setne al
mov byte [esp + 0xc4c], 5
test eax, eax
je 0x40462a
push ecx
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004333cf
add esp, 8
test eax, eax
sete al
test al, al
jne 0x404e60
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0x840]
mov byte [esp + 0x40], al
push edx
lea eax, [esp + 0x44]
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x44]
push edx
call edi
call fcn.00418ca8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40462a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push 0x85
push edx
mov byte [esp + 0xc58], 7
call fcn.004035c0
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 0x1c]
add esp, 0xc
push 0
push eax
push 0x5400
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x404b4e
lea eax, [esp + 0x40]
push 0x44cb3c
push eax
call fcn.00433b5c
mov edi, eax
add esp, 8
test edi, edi
jne 0x404a0b
push 0x80
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x404b4e
lea ecx, [esp + 0x40]
push ecx
push str.Can_not_delete:__s
lea edx, [esp + 0x448]
push edx
call fcn.004340f9
mov ecx, dword [esi + 0x1c]
add esp, 0xc
push 0
lea eax, [esp + 0x444]
push eax
push 0x5404
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x28]
call fcn.004014a0
lea ecx, [esp + 0x14]
call fcn.004014a0
lea ecx, [esp + 0x20]
call fcn.004014a0
lea ecx, [esp + 0x24]
call fcn.004014a0
xor al, al
jmp 0x4050a1
push 2
push 0
push edi
call fcn.00434074
push edi
call fcn.00433f7f
mov ebp, eax
add esp, 0x10
cmp ebp, 4
ja 0x404a83
push edi
call fcn.00433875
add esp, 4
push 0x80
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x404b4e
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x444]
push str.Can_not_delete:_s
push eax
call fcn.004340f9
mov edx, dword [esi + 0x1c]
add esp, 0xc
push 0
lea ecx, [esp + 0x444]
push ecx
push 0x5404
push edx
jmp 0x4049da
push ebp
call fcn.00416a1f
push 0
push 0
push edi
mov ebx, eax
call fcn.00434074
push edi
push ebp
push 1
push ebx
call fcn.00433dcc
push edi
call fcn.00433875
lea edx, [esp + 0x3c]
push edx
lea eax, [ebp - 4]
push eax
push ebx
mov dword [esp + 0x48], 0
call fcn.00405900
add esp, 0x30
test eax, eax
je 0x404b14
push 0x80
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x404b41
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x444]
push str.Can_not_delete:_s
push ecx
call fcn.004340f9
mov eax, dword [esi + 0x1c]
add esp, 0xc
push 0
lea edx, [esp + 0x444]
push edx
push 0x5404
push eax
jmp 0x4049da
mov ebp, dword [ebx + ebp - 4]
cmp ebp, dword [esp + 0x18]
je 0x404b41
push 0x80
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x404f04
push ebx
call fcn.00416a24
mov ebx, dword [esp + 0x38]
add esp, 4
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x404c2b
push eax
mov ecx, ebx
call fcn.00402750
add eax, 0x1c
cmp dword [eax + 0x18], 0x10
jb 0x404b77
mov eax, dword [eax + 4]
jmp 0x404b7a
add eax, 4
mov edi, dword [esi + 0x9c]
mov ecx, dword [esi + 0x98]
mov edx, dword [ecx]
push 1
push edi
lea edi, [esp + 0x48]
push edi
push eax
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esi + 0x98]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
mov ecx, dword [esi + 0x98]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
push 1
call eax
mov ecx, dword [esi + 0x98]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
and eax, 0xffff0000
cmp eax, 0x20000
jne 0x404f13
mov ecx, dword [esi + 0x98]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
lea ecx, [esp + 0x30]
call fcn.00401470
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push 0x8f
push edx
mov byte [esp + 0xc58], 9
call fcn.004035c0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x1c]
add esp, 0xc
push 0
push eax
push 0x5400
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x30]
mov byte [esp + 0xc4c], 7
call fcn.004014a0
call fcn.00418ca8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40462a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0x180]
lea edx, [esp + 0x44]
push edx
push edi
mov byte [esp + 0xc58], 0xa
call fcn.0040e750
test eax, eax
je 0x404f5c
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0xc4c], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ca1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0xc4c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404cc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xc4c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404cf1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0xc4c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0xc4c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x180]
add edi, 1
mov dword [esp + 0x1c], edi
call fcn.004078c0
cmp edi, eax
jl 0x4047a0
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x1c]
push 0
push 0x64
push 0x5402
push ecx
call ebx
call fcn.00418ca8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405014
push 0x80004005
call fcn.004010a0
call fcn.00418ca8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404dab
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push 0x72
mov byte [esp + 0xc50], 4
call fcn.00418c57
test eax, eax
je 0x404dde
push 0x72
push eax
lea ecx, [esp + 0x20]
call fcn.00401540
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x1c]
push 0
push edi
push 0x5404
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [edi - 0x10]
mov byte [esp + 0xc4c], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404e14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0xc4c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404e3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0xc4c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40471f
call fcn.00418ca8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404e7a
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push 0x72
mov byte [esp + 0xc50], 6
call fcn.00418c57
test eax, eax
je 0x404ead
push 0x72
push eax
lea ecx, [esp + 0x20]
call fcn.00401540
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x1c]
push 0
push edi
push 0x5404
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [edi - 0x10]
mov byte [esp + 0xc4c], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404ee3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xc4c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x404e08
lea ecx, [esp + 0x40]
push ecx
push str.Can_not_delete:_s
jmp 0x4049b7
lea ecx, [esp + 0x1c]
call fcn.00401470
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push 0x73
push eax
mov byte [esp + 0xc58], 8
call fcn.004035c0
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x1c]
add esp, 0xc
push 0
push ecx
push 0x5404
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x1c]
call fcn.004014a0
jmp 0x4049e0
mov ecx, dword [esi + 0x180]
call fcn.004089e0
lea ecx, [esp + 0x18]
call fcn.00401470
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x20]
push 0x7a
push edx
mov byte [esp + 0xc5c], 0xb
call fcn.004035c0
mov edi, dword [esp + 0x28]
mov eax, dword [esi + 0x1c]
add esp, 0x10
push 0
push edi
push 0x5404
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [edi - 0x10]
mov byte [esp + 0xc4c], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404fcb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0xc4c], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ff3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0xc4c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x404ed7
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push 0x90
mov dword [esp + 0xc50], 0xc
call fcn.00418c57
test eax, eax
je 0x405050
push 0x90
push eax
lea ecx, [esp + 0x20]
call fcn.00401540
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x1c]
push 0
push edi
push 0x5400
push ecx
call ebx
mov edx, dword [esi + 0x1c]
push 0
push 0x44c8cf
push 0x5401
push edx
call ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0xc4c], 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40509f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0xc44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc2c]
xor ecx, esp
call fcn.00432bb9
add esp, 0xc3c
ret