Function at 0x412950
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x168c
call fcn.00409c20
mov eax, dword [0x437040]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x1674], 0
mov dword [ebp - 0x1670], 0
mov dword [ebp - 0x460], 0
mov byte [ebp - 0x459], 0
mov eax, dword [0x450640]
add eax, 0x300000
mov dword [ebp - 0x464], eax
push 0x451130
push str._sGetFile
lea ecx, [ebp - 0x668]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x668]
push edx
push str._s
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x80
push 0
push 0x451680
call fcn.00401a60
add esp, 0xc
lea ecx, [ebp - 0x258]
push ecx
lea edx, [ebp - 0x458]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x412a1e
mov dword [ebp - 0x1674], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1670], eax
jmp 0x412fbb
mov eax, dword [ebp - 0x258]
and eax, 0x10
jne 0x412ba5
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x668]
push edx
push 0x42de54
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x1670]
push ecx
lea edx, [ebp - 0x458]
push edx
call fcn.00401010
add esp, 8
test eax, eax
jl 0x412ba5
cmp dword [ebp + 8], 0
je 0x412b6a
movzx eax, byte [ebp - 0x459]
cmp eax, 1
jne 0x412b6a
mov ecx, dword [ebp - 0x464]
push ecx
push 0x500000
lea edx, [ebp - 0x458]
push edx
call fcn.004010f0
add esp, 0xc
mov dword [ebp - 0x1678], eax
cmp dword [ebp - 0x1678], 0
jle 0x412b6a
mov dword [ebp - 0x166c], 0
jmp 0x412ad1
mov eax, dword [ebp - 0x166c]
add eax, 1
mov dword [ebp - 0x166c], eax
mov ecx, dword [ebp - 0x166c]
cmp ecx, dword [ebp - 0x1678]
jge 0x412b28
mov edx, dword [ebp - 0x464]
add edx, dword [ebp - 0x166c]
movsx eax, byte [edx]
test eax, eax
jne 0x412b03
mov ecx, dword [ebp - 0x464]
add ecx, dword [ebp - 0x166c]
mov byte [ecx], 0x20
jmp 0x412b26
mov edx, dword [ebp - 0x464]
add edx, dword [ebp - 0x166c]
movsx eax, byte [edx]
cmp eax, 0x1f
jne 0x412b26
mov ecx, dword [ebp - 0x464]
add ecx, dword [ebp - 0x166c]
mov byte [ecx], 0x20
jmp 0x412ac2
cmp dword [0x437cb4], 3
jg 0x412b43
cmp dword [0x437cc8], 1
jge 0x412b43
mov byte [ebp - 0x459], 9
jmp 0x412b6a
mov byte [ebp - 0x459], 9
mov edx, dword [ebp - 0x464]
add edx, dword [ebp - 0x1678]
mov byte [edx], 0
mov eax, dword [ebp - 0x464]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea edx, [ebp - 0x458]
push edx
mov eax, dword [ebp - 0x460]
shl eax, 9
lea ecx, [ebp + eax - 0x1668]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 0x460]
add edx, 1
mov dword [ebp - 0x460], edx
mov al, byte [ebp - 0x459]
add al, 1
mov byte [ebp - 0x459], al
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x412bbc
jmp 0x412bc1
jmp 0x412a1e
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x412f52
movzx ecx, byte [ebp - 0x459]
cmp ecx, 9
jge 0x412c32
mov edx, dword [ebp - 0x464]
push edx
push 0x500000
lea eax, [ebp - 0x1668]
push eax
call fcn.004010f0
add esp, 0xc
mov dword [ebp - 0x1678], eax
cmp dword [ebp - 0x1678], 0
jle 0x412c32
mov byte [ebp - 0x459], 9
mov ecx, dword [ebp - 0x464]
add ecx, dword [ebp - 0x1678]
mov byte [ecx], 0
mov edx, dword [ebp - 0x464]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
movzx ecx, byte [ebp - 0x459]
cmp ecx, 9
jl 0x412f52
mov dword [ebp - 0x1684], 0xa
lea ecx, [ebp - 0x1685]
call fcn.00401000
mov edx, dword [ebp - 0x1678]
push edx
mov eax, dword [ebp - 0x464]
push eax
call fcn.0040d160
cmp dword [ebp - 0x1678], 0x8000
jge 0x412c9a
push str.Varnish_cache
mov ecx, dword [ebp - 0x1678]
push ecx
mov edx, dword [ebp - 0x464]
push edx
lea ecx, [ebp - 0x1685]
call fcn.00401610
mov dword [ebp - 0x167c], eax
push str._address_
mov eax, dword [ebp - 0x1678]
push eax
mov ecx, dword [ebp - 0x464]
push ecx
lea ecx, [ebp - 0x1685]
call fcn.00401610
mov dword [ebp - 0x167c], eax
push str._meta_name_author_
mov edx, dword [ebp - 0x1678]
push edx
mov eax, dword [ebp - 0x464]
push eax
lea ecx, [ebp - 0x1685]
call fcn.00401610
mov dword [ebp - 0x167c], eax
push str.powered_by
mov ecx, dword [ebp - 0x1678]
push ecx
mov edx, dword [ebp - 0x464]
push edx
lea ecx, [ebp - 0x1685]
call fcn.00401610
mov dword [ebp - 0x167c], eax
cmp dword [ebp - 0x167c], 0
je 0x412eff
mov eax, dword [ebp - 0x167c]
add eax, dword [ebp - 0x1684]
movzx ecx, byte [eax]
cmp ecx, 0x3a
jne 0x412d36
mov edx, dword [ebp - 0x1684]
add edx, 1
mov dword [ebp - 0x1684], edx
mov eax, dword [ebp - 0x167c]
add eax, dword [ebp - 0x1684]
movzx ecx, byte [eax]
cmp ecx, 0x20
jg 0x412d59
mov edx, dword [ebp - 0x1684]
add edx, 1
mov dword [ebp - 0x1684], edx
mov eax, dword [ebp - 0x167c]
add eax, dword [ebp - 0x1684]
movzx ecx, byte [eax]
cmp ecx, 0x20
jg 0x412d7c
mov edx, dword [ebp - 0x1684]
add edx, 1
mov dword [ebp - 0x1684], edx
mov eax, dword [ebp - 0x167c]
add eax, dword [ebp - 0x1684]
movzx ecx, byte [eax]
cmp ecx, 0x20
jg 0x412d9f
mov edx, dword [ebp - 0x1684]
add edx, 1
mov dword [ebp - 0x1684], edx
mov eax, dword [ebp - 0x167c]
add eax, dword [ebp - 0x1684]
movzx ecx, byte [eax]
cmp ecx, 0x20
jg 0x412dc2
mov edx, dword [ebp - 0x1684]
add edx, 1
mov dword [ebp - 0x1684], edx
mov eax, dword [ebp - 0x167c]
add eax, dword [ebp - 0x1684]
movzx ecx, byte [eax]
cmp ecx, 0x20
jg 0x412de5
mov edx, dword [ebp - 0x1684]
add edx, 1
mov dword [ebp - 0x1684], edx
jmp 0x412df6
mov ecx, dword [ebp - 0x1684]
cmp ecx, dword [ebp - 0x1678]
jge 0x412eff
mov edx, dword [ebp - 0x167c]
add edx, dword [ebp - 0x1684]
movsx eax, byte [edx]
cmp eax, 0x3c
jne 0x412e71
mov ecx, dword [ebp - 0x1684]
add ecx, 1
mov dword [ebp - 0x1684], ecx
jmp 0x412e3c
mov edx, dword [ebp - 0x1684]
add edx, 1
mov dword [ebp - 0x1684], edx
mov eax, dword [ebp - 0x1684]
cmp eax, dword [ebp - 0x1678]
jge 0x412e71
mov ecx, dword [ebp - 0x167c]
add ecx, dword [ebp - 0x1684]
movsx edx, byte [ecx]
cmp edx, 0x3e
jne 0x412e6f
mov eax, dword [ebp - 0x1684]
add eax, 1
mov dword [ebp - 0x1684], eax
jmp 0x412e71
jmp 0x412e2d
mov dword [ebp - 0x1680], 0
jmp 0x412e9b
mov ecx, dword [ebp - 0x1684]
add ecx, 1
mov dword [ebp - 0x1684], ecx
mov edx, dword [ebp - 0x1680]
add edx, 1
mov dword [ebp - 0x1680], edx
cmp dword [ebp - 0x1680], 0x60
jge 0x412ef8
mov eax, dword [ebp - 0x1684]
cmp eax, dword [ebp - 0x1678]
jge 0x412ef8
mov ecx, dword [ebp - 0x167c]
add ecx, dword [ebp - 0x1684]
movsx edx, byte [ecx]
cmp edx, 0x20
jl 0x412eda
mov eax, dword [ebp - 0x167c]
add eax, dword [ebp - 0x1684]
movsx ecx, byte [eax]
cmp ecx, 0x3c
jne 0x412edc
jmp 0x412ef8
mov edx, dword [ebp - 0x167c]
add edx, dword [ebp - 0x1684]
mov eax, dword [ebp - 0x1680]
mov cl, byte [edx]
mov byte [eax + 0x451680], cl
jmp 0x412e7d
jmp 0x412eff
push str._title_
mov edx, dword [ebp - 0x1678]
push edx
mov eax, dword [ebp - 0x464]
push eax
lea ecx, [ebp - 0x1685]
call fcn.00401610
mov dword [ebp - 0x167c], eax
push str._center_
mov ecx, dword [ebp - 0x1678]
push ecx
mov edx, dword [ebp - 0x464]
push edx
lea ecx, [ebp - 0x1685]
call fcn.00401610
mov dword [ebp - 0x167c], eax
lea ecx, [ebp - 0x1685]
call fcn.00401a20
push 0x451130
push str._sEntryInfo.txt
lea eax, [ebp - 0x668]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x1670]
push ecx
lea edx, [ebp - 0x668]
push edx
call fcn.00401010
add esp, 8
test eax, eax
jl 0x412fa7
mov eax, dword [ebp - 0x464]
push eax
push 0x500000
lea ecx, [ebp - 0x668]
push ecx
call fcn.004010f0
add esp, 0xc
mov dword [ebp - 0x1678], eax
lea edx, [ebp - 0x668]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x412fbb
cmp dword [ebp + 8], 0
je 0x412fcd
movzx eax, byte [ebp - 0x459]
cmp eax, 9
jl 0x41300f
mov dword [ebp - 0x168c], 0
jmp 0x412fe8
mov ecx, dword [ebp - 0x168c]
add ecx, 1
mov dword [ebp - 0x168c], ecx
mov edx, dword [ebp - 0x168c]
cmp edx, dword [ebp - 0x460]
jge 0x41300f
mov eax, dword [ebp - 0x168c]
shl eax, 9
lea ecx, [ebp + eax - 0x1668]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x412fd9
movsx edx, byte [0x451680]
test edx, edx
je 0x413032
push 0
push 0x463
push 0x111
mov eax, dword [0x450ec0]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00401a47
mov esp, ebp
pop ebp
ret 4