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

Disassembly:
push 0xffffffffffffffff
push 0x50a488
mov eax, dword fs:[0]
push eax
sub esp, 0xcb4
mov eax, dword [0x53f5a0]
xor eax, esp
mov dword [esp + 0xcb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f5a0]
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.00438f20
push ebp
xor esi, esi
push 0x51ff34
lea edx, [esp + 0x154]
mov dword [esp + 0xcd8], esi
call fcn.00439710
push str..png
push 0x51f1f4
lea edx, [esp + 0x15c]
call fcn.00439710
add esp, 0x10
mov byte [esp + 0x20], 0
mov dword [esp + 0x1c], esi
cmp byte [esp + 0x268], 0
lea eax, [esp + 0x158]
jne 0x42d039
mov eax, dword [esp + 0x154]
cmp byte [edi + 0x11c], 0
je 0x42d047
add edi, 0xc
jmp 0x42d04a
mov edi, dword [edi + 8]
lea ecx, [esp + 0x274]
lea esi, [eax + 4]
call fcn.00438f20
lea eax, [edi + 4]
lea edx, [esp + 0x274]
mov byte [esp + 0xcd0], 2
call fcn.00439130
mov ebx, vtable.t_str.0
test esi, esi
je 0x42d0ec
push 0
push 0
push 0
push 0
push 0
push esi
lea ecx, [esp + 0x40]
call fcn.00435dc0
cmp byte [esp + 0x144], 0
lea eax, [esp + 0x34]
jne 0x42d09f
mov eax, dword [esp + 0x30]
cmp word [eax + 4], 0x2e
jne 0x42d0b8
lea ecx, [esp + 0x28]
lea esi, [esp + 0x274]
call fcn.00436ef0
jmp 0x42d0c9
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x278]
call fcn.00436390
cmp byte [esp + 0x144], 0
mov dword [esp + 0x28], ebx
jne 0x42d0ec
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
cmp eax, ecx
je 0x42d0ec
push eax
call fcn.004cc2c0
add esp, 4
mov byte [esp + 0xcd0], 3
cmp dword [esp + 0x278], 0
je 0x42d242
cmp byte [esp + 0x390], 0
lea eax, [esp + 0x280]
jne 0x42d11a
mov eax, dword [esp + 0x27c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42d242
shr eax, 4
not al
and al, 1
je 0x42d242
cmp byte [esp + 0x390], 0
lea eax, [esp + 0x280]
jne 0x42d152
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 0x42d179
mov eax, dword [esp + 0x27c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42d242
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x274]
mov edi, eax
call fcn.00436580
test al, al
je 0x42d242
cmp byte [esp + 0x390], 0
lea esi, [esp + 0x280]
jne 0x42d1bf
mov esi, dword [esp + 0x27c]
lea ecx, [esp + 0x39c]
call fcn.00438f20
lea eax, [esi + 4]
lea edx, [esp + 0x39c]
call fcn.00439130
lea ecx, [esp + 0x1c]
mov byte [esp + 0xcd0], 5
call fcn.00438300
mov esi, eax
call fcn.00438b40
lea ecx, [esp + 0x1c]
call fcn.00438300
mov esi, eax
push 0x528ad4
lea eax, [esp + 0x3a0]
call fcn.00438d10
mov byte [esp + 0xcd0], 3
cmp byte [esp + 0x4b8], 0
mov dword [esp + 0x39c], ebx
jne 0x42d242
mov eax, dword [esp + 0x3a4]
lea edx, [esp + 0x3a8]
cmp eax, edx
je 0x42d242
push eax
call fcn.004cc2c0
add esp, 4
xor edi, edi
mov bl, 0xe
cmp dword [esp + 0x26c], 0
je 0x42d25b
mov dword [esp + 0x26c], 0
mov ecx, 1
lea esi, [esp + 0x154]
mov dword [esp + 0x150], 0
call fcn.00439d90
cmp byte [esp + 0x268], 0
lea eax, [esp + 0x158]
jne 0x42d28f
mov eax, dword [esp + 0x154]
mov edx, dword [esp + 0xcd8]
push edx
xor ecx, ecx
push 0x51ff34
lea edx, [esp + 0x154]
mov word [eax + 4], cx
call fcn.00439710
push 0x51fe30
push 0x51f1f4
lea edx, [esp + 0x15c]
call fcn.00439710
push ebp
push 0x51ff34
lea edx, [esp + 0x164]
call fcn.00439710
add esp, 0x18
test edi, edi
je 0x42d308
push 0x51fe30
push 0x51f1f4
lea edx, [esp + 0x154]
call fcn.00439710
push edi
push 0x51ff34
lea edx, [esp + 0x15c]
call fcn.00439710
add esp, 0x10
push str..png
push 0x51f1f4
lea edx, [esp + 0x154]
call fcn.00439710
add esp, 8
cmp byte [esp + 0x268], 0
lea eax, [esp + 0x158]
jne 0x42d339
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.00439650
push eax
lea ecx, [esp + 0x3b4]
call fcn.00435dc0
mov byte [esp + 0xcd0], bl
cmp dword [esp + 0x3a0], 0
je 0x42d3b1
cmp byte [esp + 0x4b8], 0
lea eax, [esp + 0x3a8]
jne 0x42d384
mov eax, dword [esp + 0x3a4]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42d3b1
shr eax, 4
not al
and al, 1
je 0x42d3b1
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x3a8]
call fcn.00436a90
mov byte [esp + 0xcd0], 3
cmp byte [esp + 0x4b8], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x42d3e9
mov eax, dword [esp + 0x3a4]
lea ecx, [esp + 0x3a8]
cmp eax, ecx
je 0x42d3e9
push eax
call fcn.004cc2c0
add esp, 4
inc edi
cmp edi, 4
jl 0x42d246
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0x4ce]
push eax
mov word [esp + 0x4d0], dx
call fcn.004d3360
mov esi, dword [esp + 0x30]
add esp, 0xc
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x42d426
mov eax, dword [esi + 8]
add eax, 4
push 0x54aa90
push eax
call fcn.004cc568
add esp, 8
test eax, eax
je 0x42d4a8
cmp byte [esp + 0x390], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x274], esi
jne 0x42d46c
mov eax, dword [esp + 0x27c]
lea ecx, [esp + 0x280]
cmp eax, ecx
je 0x42d46c
push eax
call fcn.004cc2c0
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.004382a0
cmp byte [esp + 0x268], 0
mov dword [esp + 0x14c], esi
jne 0x42d4a1
mov eax, dword [esp + 0x154]
lea edx, [esp + 0x158]
cmp eax, edx
je 0x42d4a1
push eax
call fcn.004cc2c0
add esp, 4
xor al, al
jmp 0x42d790
mov eax, 0x4000
test word [0x54aa96], ax
jne 0x42d523
cmp byte [esp + 0x390], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x274], esi
jne 0x42d4e7
mov eax, dword [esp + 0x27c]
lea ecx, [esp + 0x280]
cmp eax, ecx
je 0x42d4e7
push eax
call fcn.004cc2c0
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.004382a0
cmp byte [esp + 0x268], 0
mov dword [esp + 0x14c], esi
jne 0x42d4a1
mov eax, dword [esp + 0x154]
lea edx, [esp + 0x158]
cmp eax, edx
je 0x42d4a1
push eax
call fcn.004cc2c0
add esp, 4
xor al, al
jmp 0x42d790
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x42d532
mov eax, dword [esi + 8]
add eax, 4
push eax
push str._s.
lea edx, [esp + 0x4cc]
call fcn.004023b0
add esp, 8
push 0x54a840
lea eax, [esp + 0x4c8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42d5d9
cmp byte [esp + 0x390], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x274], esi
jne 0x42d595
mov eax, dword [esp + 0x27c]
lea ecx, [esp + 0x280]
cmp eax, ecx
je 0x42d595
push eax
call fcn.004cc2c0
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.004382a0
cmp byte [esp + 0x268], 0
mov dword [esp + 0x14c], esi
jne 0x42d4a1
mov eax, dword [esp + 0x154]
lea edx, [esp + 0x158]
cmp eax, edx
je 0x42d4a1
push eax
call fcn.004cc2c0
add esp, 4
xor al, al
jmp 0x42d790
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov bl, 0xf
mov ecx, 0x51f1cc
mov eax, 0x54a86c
jmp 0x42d5f0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42d616
test dx, dx
je 0x42d612
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42d616
add eax, 4
add ecx, 4
test dx, dx
jne 0x42d5f0
xor eax, eax
jmp 0x42d61b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42d711
mov ecx, 0x51f1d0
mov eax, 0x54a86c
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42d656
test dx, dx
je 0x42d652
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42d656
add eax, 4
add ecx, 4
test dx, dx
jne 0x42d630
xor eax, eax
jmp 0x42d65b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42d711
mov eax, dword [esp + 0xcd8]
push eax
mov esi, 0x54a86c
call fcn.0042d7c0
add esp, 4
test al, al
jne 0x42d711
mov ecx, dword [esp + 0x24]
push esi
call fcn.00439650
push eax
push str._s_s
lea edx, [esp + 0x4d0]
call fcn.004023b0
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.00435dc0
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x3a8]
mov byte [esp + 0xcdc], bl
call fcn.00436a90
mov byte [esp + 0xcd0], 3
cmp byte [esp + 0x4b8], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x42d711
mov eax, dword [esp + 0x3a4]
lea ecx, [esp + 0x3a8]
cmp eax, ecx
je 0x42d711
push eax
call fcn.004cc2c0
add esp, 4
push 0x54a840
push edi
call ebp
test eax, eax
jne 0x42d5e1
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 0x42d759
mov eax, dword [esp + 0x27c]
lea edx, [esp + 0x280]
cmp eax, edx
je 0x42d759
push eax
call fcn.004cc2c0
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.004382a0
cmp byte [esp + 0x268], 0
mov dword [esp + 0x14c], esi
jne 0x42d78e
mov eax, dword [esp + 0x154]
lea ecx, [esp + 0x158]
cmp eax, ecx
je 0x42d78e
push eax
call fcn.004cc2c0
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.004cc2b1
add esp, 0xcc0
ret