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

Disassembly:
push 0xffffffffffffffff
push 0x50b738
mov eax, dword fs:[0]
push eax
sub esp, 0xcb4
mov eax, dword [0x5405a0]
xor eax, esp
mov dword [esp + 0xcb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5405a0]
xor eax, esp
push eax
lea eax, [esp + 0xcc8]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x14c]
mov dword [esp + 0x24], edi
call fcn.0043a090
mov eax, dword [esp + 0xcdc]
push eax
xor ebp, ebp
push 0x5221b8
lea edx, [esp + 0x154]
mov dword [esp + 0xcd8], ebp
call fcn.0043a8a0
push str..png
push 0x52139c
lea edx, [esp + 0x15c]
call fcn.0043a8a0
add esp, 0x10
mov byte [esp + 0x20], 0
mov dword [esp + 0x1c], ebp
cmp byte [esp + 0x268], 0
lea eax, [esp + 0x158]
jne 0x42d8d9
mov eax, dword [esp + 0x154]
cmp byte [edi + 0x11c], 0
je 0x42d8e7
add edi, 0xc
jmp 0x42d8ea
mov edi, dword [edi + 8]
lea ecx, [esp + 0x274]
lea esi, [eax + 4]
call fcn.0043a090
lea eax, [edi + 4]
lea edx, [esp + 0x274]
mov byte [esp + 0xcd0], 2
call fcn.0043a2e0
mov ebx, vtable.t_str.0
cmp esi, ebp
je 0x42d983
push ebp
push ebp
push ebp
push ebp
push ebp
push esi
lea ecx, [esp + 0x40]
call fcn.00436ef0
cmp byte [esp + 0x144], 0
lea eax, [esp + 0x34]
jne 0x42d93a
mov eax, dword [esp + 0x30]
cmp word [eax + 4], 0x2e
lea ecx, [esp + 0x28]
jne 0x42d953
lea esi, [esp + 0x274]
call fcn.00438040
jmp 0x42d960
push ecx
lea ecx, [esp + 0x278]
call fcn.004374e0
cmp byte [esp + 0x144], 0
mov dword [esp + 0x28], ebx
jne 0x42d983
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x34]
cmp eax, edx
je 0x42d983
push eax
call fcn.004ccef0
add esp, 4
mov byte [esp + 0xcd0], 3
cmp dword [esp + 0x278], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
je 0x42dada
cmp byte [esp + 0x390], 0
lea eax, [esp + 0x280]
jne 0x42d9b6
mov eax, dword [esp + 0x27c]
add eax, 4
push eax
call ebp
cmp eax, 0xffffffff
je 0x42dada
shr eax, 4
not al
and al, 1
je 0x42dada
cmp byte [esp + 0x390], 0
lea eax, [esp + 0x280]
jne 0x42d9ea
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 0x42da11
mov eax, dword [esp + 0x27c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42dada
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x274]
mov edi, eax
call fcn.004376d0
test al, al
je 0x42dada
cmp byte [esp + 0x390], 0
lea esi, [esp + 0x280]
jne 0x42da57
mov esi, dword [esp + 0x27c]
lea ecx, [esp + 0x39c]
call fcn.0043a090
lea eax, [esi + 4]
lea edx, [esp + 0x39c]
call fcn.0043a2e0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xcd0], 5
call fcn.00439450
mov esi, eax
call fcn.00439ca0
lea ecx, [esp + 0x1c]
call fcn.00439450
mov esi, eax
push 0x52908c
lea eax, [esp + 0x3a0]
call fcn.00439e70
mov byte [esp + 0xcd0], 3
cmp byte [esp + 0x4b8], 0
mov dword [esp + 0x39c], ebx
jne 0x42dada
mov eax, dword [esp + 0x3a4]
lea ecx, [esp + 0x3a8]
cmp eax, ecx
je 0x42dada
push eax
call fcn.004ccef0
add esp, 4
xor edi, edi
mov bl, 0xe
mov edi, edi
cmp dword [esp + 0x26c], 0
je 0x42daf5
mov dword [esp + 0x26c], 0
mov ecx, 1
lea esi, [esp + 0x154]
mov dword [esp + 0x150], 0
call fcn.0043ae00
cmp byte [esp + 0x268], 0
lea eax, [esp + 0x158]
jne 0x42db29
mov eax, dword [esp + 0x154]
xor edx, edx
mov word [eax + 4], dx
mov eax, dword [esp + 0xcd8]
push eax
push 0x5221b8
lea edx, [esp + 0x154]
call fcn.0043a8a0
push 0x5220d4
push 0x52139c
lea edx, [esp + 0x15c]
call fcn.0043a8a0
mov ecx, dword [esp + 0xcec]
push ecx
push 0x5221b8
lea edx, [esp + 0x164]
call fcn.0043a8a0
add esp, 0x18
test edi, edi
je 0x42dba9
push 0x5220d4
push 0x52139c
lea edx, [esp + 0x154]
call fcn.0043a8a0
push edi
push 0x5221b8
lea edx, [esp + 0x15c]
call fcn.0043a8a0
add esp, 0x10
push str..png
push 0x52139c
lea edx, [esp + 0x154]
call fcn.0043a8a0
add esp, 8
cmp byte [esp + 0x268], 0
lea eax, [esp + 0x158]
jne 0x42dbda
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.00437460
push eax
lea ecx, [esp + 0x3b4]
call fcn.00436ef0
mov byte [esp + 0xcd0], bl
cmp dword [esp + 0x3a0], 0
je 0x42dc4e
cmp byte [esp + 0x4b8], 0
lea eax, [esp + 0x3a8]
jne 0x42dc25
mov eax, dword [esp + 0x3a4]
add eax, 4
push eax
call ebp
cmp eax, 0xffffffff
je 0x42dc4e
shr eax, 4
not al
and al, 1
je 0x42dc4e
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x3a8]
call fcn.00437be0
mov byte [esp + 0xcd0], 3
cmp byte [esp + 0x4b8], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x42dc86
mov eax, dword [esp + 0x3a4]
lea ecx, [esp + 0x3a8]
cmp eax, ecx
je 0x42dc86
push eax
call fcn.004ccef0
add esp, 4
inc edi
cmp edi, 2
jl 0x42dae0
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0x4ce]
push eax
mov word [esp + 0x4d0], dx
call fcn.004d3fc0
mov esi, dword [esp + 0x30]
add esp, 0xc
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x42dcc3
mov eax, dword [esi + 8]
add eax, 4
push 0x54c018
push eax
call fcn.004cd198
add esp, 8
test eax, eax
je 0x42dd4d
cmp byte [esp + 0x390], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x274], esi
jne 0x42dd09
mov eax, dword [esp + 0x27c]
lea ecx, [esp + 0x280]
cmp eax, ecx
je 0x42dd09
push eax
call fcn.004ccef0
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0xcd0], 0
call fcn.004393f0
cmp byte [esp + 0x268], 0
mov dword [esp + 0x14c], esi
jne 0x42dd46
mov eax, dword [esp + 0x154]
lea edx, [esp + 0x158]
cmp eax, edx
je 0x42dd46
push eax
call fcn.004ccef0
add esp, 4
xor al, al
jmp 0x42df68
mov eax, 0x4000
test word [0x54c01e], ax
je 0x42dcd8
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x42dd6e
mov eax, dword [esi + 8]
add eax, 4
push eax
push str._s.
lea edx, [esp + 0x4cc]
call fcn.004023a0
add esp, 8
push 0x54bdc8
lea eax, [esp + 0x4c8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42dcd8
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov bl, 0xf
lea esp, [esp]
mov ecx, 0x521374
mov eax, 0x54bdf4
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42dde6
test dx, dx
je 0x42dde2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42dde6
add eax, 4
add ecx, 4
test dx, dx
jne 0x42ddc0
xor eax, eax
jmp 0x42ddeb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42dee1
mov ecx, 0x521378
mov eax, 0x54bdf4
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42de26
test dx, dx
je 0x42de22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42de26
add eax, 4
add ecx, 4
test dx, dx
jne 0x42de00
xor eax, eax
jmp 0x42de2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42dee1
mov eax, dword [esp + 0xcd8]
push eax
mov esi, 0x54bdf4
call fcn.0042df90
add esp, 4
test al, al
jne 0x42dee1
mov ecx, dword [esp + 0x24]
push esi
call fcn.00437460
push eax
push 0x5213b4
lea edx, [esp + 0x4d0]
call fcn.004023a0
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.00436ef0
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x3a8]
mov byte [esp + 0xcdc], bl
call fcn.00437be0
mov byte [esp + 0xcd0], 3
cmp byte [esp + 0x4b8], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x42dee1
mov eax, dword [esp + 0x3a4]
lea ecx, [esp + 0x3a8]
cmp eax, ecx
je 0x42dee1
push eax
call fcn.004ccef0
add esp, 4
push 0x54bdc8
push edi
call ebp
test eax, eax
jne 0x42ddb0
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 0x42df29
mov eax, dword [esp + 0x27c]
lea edx, [esp + 0x280]
cmp eax, edx
je 0x42df29
push eax
call fcn.004ccef0
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0xcd0], 0
call fcn.004393f0
cmp byte [esp + 0x268], 0
mov dword [esp + 0x14c], esi
jne 0x42df66
mov eax, dword [esp + 0x154]
lea ecx, [esp + 0x158]
cmp eax, ecx
je 0x42df66
push eax
call fcn.004ccef0
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.004ccee1
add esp, 0xcc0
ret