Function at 0x428490
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5016d8
mov eax, dword fs:[0]
push eax
sub esp, 0xcb4
mov eax, dword [0x5355a0]
xor eax, esp
mov dword [esp + 0xcb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5355a0]
xor eax, esp
push eax
lea eax, [esp + 0xcc8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xcdc]
mov edi, ecx
lea ecx, [esp + 0x14c]
mov dword [esp + 0x24], edi
call fcn.004349d0
push ebp
xor esi, esi
push 0x516dbc
lea edx, [esp + 0x154]
mov dword [esp + 0xcd8], esi
call fcn.004351e0
push str..png
push 0x51620c
lea edx, [esp + 0x15c]
call fcn.004351e0
add esp, 0x10
mov byte [esp + 0x20], 0
mov dword [esp + 0x1c], esi
cmp byte [esp + 0x268], 0
lea eax, [esp + 0x158]
jne 0x428539
mov eax, dword [esp + 0x154]
cmp byte [edi + 0x11c], 0
je 0x428547
add edi, 0xc
jmp 0x42854a
mov edi, dword [edi + 8]
lea ecx, [esp + 0x274]
lea esi, [eax + 4]
call fcn.004349d0
lea eax, [edi + 4]
lea edx, [esp + 0x274]
mov byte [esp + 0xcd0], 2
call fcn.00434c20
mov ebx, vtable.t_str.0
test esi, esi
je 0x4285ec
push 0
push 0
push 0
push 0
push 0
push esi
lea ecx, [esp + 0x40]
call fcn.00431ac0
cmp byte [esp + 0x144], 0
lea eax, [esp + 0x34]
jne 0x42859f
mov eax, dword [esp + 0x30]
cmp word [eax + 4], 0x2e
jne 0x4285b8
lea ecx, [esp + 0x28]
lea esi, [esp + 0x274]
call fcn.00432c10
jmp 0x4285c9
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x278]
call fcn.004320b0
cmp byte [esp + 0x144], 0
mov dword [esp + 0x28], ebx
jne 0x4285ec
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
cmp eax, ecx
je 0x4285ec
push eax
call fcn.004c31b0
add esp, 4
mov byte [esp + 0xcd0], 3
cmp dword [esp + 0x278], 0
je 0x428742
cmp byte [esp + 0x390], 0
lea eax, [esp + 0x280]
jne 0x42861a
mov eax, dword [esp + 0x27c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x428742
shr eax, 4
not al
and al, 1
je 0x428742
cmp byte [esp + 0x390], 0
lea eax, [esp + 0x280]
jne 0x428652
mov eax, dword [esp + 0x27c]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [esp + 0x390], 0
lea eax, [esp + 0x280]
jne 0x428679
mov eax, dword [esp + 0x27c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x428742
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x274]
mov edi, eax
call fcn.004322a0
test al, al
je 0x428742
cmp byte [esp + 0x390], 0
lea esi, [esp + 0x280]
jne 0x4286bf
mov esi, dword [esp + 0x27c]
lea ecx, [esp + 0x39c]
call fcn.004349d0
lea eax, [esi + 4]
lea edx, [esp + 0x39c]
call fcn.00434c20
lea ecx, [esp + 0x1c]
mov byte [esp + 0xcd0], 5
call fcn.00433db0
mov esi, eax
call fcn.004345f0
lea ecx, [esp + 0x1c]
call fcn.00433db0
mov esi, eax
push 0x51f23c
lea eax, [esp + 0x3a0]
call fcn.004347c0
mov byte [esp + 0xcd0], 3
cmp byte [esp + 0x4b8], 0
mov dword [esp + 0x39c], ebx
jne 0x428742
mov eax, dword [esp + 0x3a4]
lea edx, [esp + 0x3a8]
cmp eax, edx
je 0x428742
push eax
call fcn.004c31b0
add esp, 4
xor edi, edi
mov bl, 0xe
cmp dword [esp + 0x26c], 0
je 0x42875b
mov dword [esp + 0x26c], 0
mov ecx, 1
lea esi, [esp + 0x154]
mov dword [esp + 0x150], 0
call fcn.004358a0
cmp byte [esp + 0x268], 0
lea eax, [esp + 0x158]
jne 0x42878f
mov eax, dword [esp + 0x154]
mov edx, dword [esp + 0xcd8]
push edx
xor ecx, ecx
push 0x516dbc
lea edx, [esp + 0x154]
mov word [eax + 4], cx
call fcn.004351e0
push 0x516cc8
push 0x51620c
lea edx, [esp + 0x15c]
call fcn.004351e0
push ebp
push 0x516dbc
lea edx, [esp + 0x164]
call fcn.004351e0
add esp, 0x18
test edi, edi
je 0x428808
push 0x516cc8
push 0x51620c
lea edx, [esp + 0x154]
call fcn.004351e0
push edi
push 0x516dbc
lea edx, [esp + 0x15c]
call fcn.004351e0
add esp, 0x10
push str..png
push 0x51620c
lea edx, [esp + 0x154]
call fcn.004351e0
add esp, 8
cmp byte [esp + 0x268], 0
lea eax, [esp + 0x158]
jne 0x428839
mov eax, dword [esp + 0x154]
mov ecx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
add eax, 4
push eax
call fcn.00432030
push eax
lea ecx, [esp + 0x3b4]
call fcn.00431ac0
mov byte [esp + 0xcd0], bl
cmp dword [esp + 0x3a0], 0
je 0x4288b1
cmp byte [esp + 0x4b8], 0
lea eax, [esp + 0x3a8]
jne 0x428884
mov eax, dword [esp + 0x3a4]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4288b1
shr eax, 4
not al
and al, 1
je 0x4288b1
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x3a8]
call fcn.004327b0
mov byte [esp + 0xcd0], 3
cmp byte [esp + 0x4b8], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x4288e9
mov eax, dword [esp + 0x3a4]
lea ecx, [esp + 0x3a8]
cmp eax, ecx
je 0x4288e9
push eax
call fcn.004c31b0
add esp, 4
inc edi
cmp edi, 4
jl 0x428746
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0x4ce]
push eax
mov word [esp + 0x4d0], dx
call fcn.004cab10
mov esi, dword [esp + 0x30]
add esp, 0xc
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x428926
mov eax, dword [esi + 8]
add eax, 4
push 0x540e10
push eax
call fcn.004c3458
add esp, 8
test eax, eax
je 0x4289a8
cmp byte [esp + 0x390], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x274], esi
jne 0x42896c
mov eax, dword [esp + 0x27c]
lea ecx, [esp + 0x280]
cmp eax, ecx
je 0x42896c
push eax
call fcn.004c31b0
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00433d50
cmp byte [esp + 0x268], 0
mov dword [esp + 0x14c], esi
jne 0x4289a1
mov eax, dword [esp + 0x154]
lea edx, [esp + 0x158]
cmp eax, edx
je 0x4289a1
push eax
call fcn.004c31b0
add esp, 4
xor al, al
jmp 0x428c90
mov eax, 0x4000
test word [0x540e16], ax
jne 0x428a23
cmp byte [esp + 0x390], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x274], esi
jne 0x4289e7
mov eax, dword [esp + 0x27c]
lea ecx, [esp + 0x280]
cmp eax, ecx
je 0x4289e7
push eax
call fcn.004c31b0
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00433d50
cmp byte [esp + 0x268], 0
mov dword [esp + 0x14c], esi
jne 0x4289a1
mov eax, dword [esp + 0x154]
lea edx, [esp + 0x158]
cmp eax, edx
je 0x4289a1
push eax
call fcn.004c31b0
add esp, 4
xor al, al
jmp 0x428c90
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x428a32
mov eax, dword [esi + 8]
add eax, 4
push eax
push str._s.
lea edx, [esp + 0x4cc]
call fcn.004023d0
add esp, 8
push 0x540bc0
lea eax, [esp + 0x4c8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x428ad9
cmp byte [esp + 0x390], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x274], esi
jne 0x428a95
mov eax, dword [esp + 0x27c]
lea ecx, [esp + 0x280]
cmp eax, ecx
je 0x428a95
push eax
call fcn.004c31b0
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00433d50
cmp byte [esp + 0x268], 0
mov dword [esp + 0x14c], esi
jne 0x4289a1
mov eax, dword [esp + 0x154]
lea edx, [esp + 0x158]
cmp eax, edx
je 0x4289a1
push eax
call fcn.004c31b0
add esp, 4
xor al, al
jmp 0x428c90
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov bl, 0xf
mov ecx, 0x5161e4
mov eax, 0x540bec
jmp 0x428af0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x428b16
test dx, dx
je 0x428b12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x428b16
add eax, 4
add ecx, 4
test dx, dx
jne 0x428af0
xor eax, eax
jmp 0x428b1b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x428c11
mov ecx, 0x5161e8
mov eax, 0x540bec
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x428b56
test dx, dx
je 0x428b52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x428b56
add eax, 4
add ecx, 4
test dx, dx
jne 0x428b30
xor eax, eax
jmp 0x428b5b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x428c11
mov eax, dword [esp + 0xcd8]
push eax
mov esi, 0x540bec
call fcn.00428cc0
add esp, 4
test al, al
jne 0x428c11
mov ecx, dword [esp + 0x24]
push esi
call fcn.00432030
push eax
push 0x516224
lea edx, [esp + 0x4d0]
call fcn.004023d0
add esp, 0xc
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x4d8]
push ecx
lea ecx, [esp + 0x3b4]
call fcn.00431ac0
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x3a8]
mov byte [esp + 0xcdc], bl
call fcn.004327b0
mov byte [esp + 0xcd0], 3
cmp byte [esp + 0x4b8], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x428c11
mov eax, dword [esp + 0x3a4]
lea ecx, [esp + 0x3a8]
cmp eax, ecx
je 0x428c11
push eax
call fcn.004c31b0
add esp, 4
push 0x540bc0
push edi
call ebp
test eax, eax
jne 0x428ae1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0x390], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x274], esi
jne 0x428c59
mov eax, dword [esp + 0x27c]
lea edx, [esp + 0x280]
cmp eax, edx
je 0x428c59
push eax
call fcn.004c31b0
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00433d50
cmp byte [esp + 0x268], 0
mov dword [esp + 0x14c], esi
jne 0x428c8e
mov eax, dword [esp + 0x154]
lea ecx, [esp + 0x158]
cmp eax, ecx
je 0x428c8e
push eax
call fcn.004c31b0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xcc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xcb0]
xor ecx, esp
call fcn.004c31a1
add esp, 0xcc0
ret