Function at 0x401919
Capabilities:
Delete file
Enumerate files on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8f0
mov dword [ebp - 0x54c], 1
xor eax, eax
cmp dword [ebp + 0xc], 0
sete al
mov dword [ebp - 0x550], eax
mov ecx, dword [ebp + 0x18]
push ecx
push 0x408088
mov edx, dword [ebp + 0x14]
push edx
push 0
lea eax, [ebp - 0x658]
push eax
call dword [sym.imp.MSVCRT.dll__makepath]
add esp, 0x14
push 0
push 0
lea ecx, [ebp - 0x304]
push ecx
lea edx, [ebp - 0x408]
push edx
lea eax, [ebp - 0x658]
push eax
call dword [sym.imp.MSVCRT.dll__splitpath]
add esp, 0x14
lea ecx, [ebp - 0x548]
push ecx
lea edx, [ebp - 0x658]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x554], eax
cmp dword [ebp - 0x554], 0
je 0x401cb1
mov eax, dword [ebp - 0x548]
and eax, 0x10
test eax, eax
jne 0x401c88
lea ecx, [ebp - 0x204]
push ecx
lea edx, [ebp - 0x404]
push edx
push 0
push 0
lea eax, [ebp - 0x51c]
push eax
call dword [sym.imp.MSVCRT.dll__splitpath]
add esp, 0x14
lea ecx, [ebp - 0x204]
push ecx
lea edx, [ebp - 0x404]
push edx
lea eax, [ebp - 0x304]
push eax
lea ecx, [ebp - 0x408]
push ecx
lea edx, [ebp - 0x658]
push edx
call dword [sym.imp.MSVCRT.dll__makepath]
add esp, 0x14
cmp dword [ebp - 0x550], 0
je 0x401b67
lea eax, [ebp - 0x658]
push eax
push 0x104
lea ecx, [ebp - 0x764]
push ecx
push 0x408764
push str.File
push 0x408094
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x65c], eax
lea edx, [ebp - 0x658]
push edx
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0x408768
push str.Printer
push 0x4080a0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x660], eax
lea ecx, [ebp - 0x658]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x65c], 0
jle 0x401b67
cmp dword [ebp - 0x660], 0
jle 0x401b67
mov byte [ebp - 0x864], 0
mov dl, byte [ebp - 0x864]
mov byte [ebp - 0x868], dl
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp - 0x864]
push edx
lea eax, [ebp - 0x868]
push eax
lea ecx, [ebp - 0x764]
push ecx
call dword [sym.imp.MSVCRT.dll__splitpath]
add esp, 0x14
movsx edx, byte [ebp - 0x868]
test edx, edx
je 0x401aff
movsx eax, byte [ebp - 0x864]
test eax, eax
je 0x401aff
lea ecx, [ebp - 0x764]
push ecx
lea edx, [ebp - 0x658]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x401b2b
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp - 0x304]
push edx
lea eax, [ebp - 0x408]
push eax
lea ecx, [ebp - 0x658]
push ecx
call dword [sym.imp.MSVCRT.dll__makepath]
add esp, 0x14
movsx edx, byte [ebp - 0x104]
test edx, edx
je 0x401b67
push 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x104]
push ecx
call sub.ZSPOOL.dll_OpenPrinterA
test eax, eax
je 0x401b67
lea edx, [ebp - 0x104]
mov dword [ebp + 0xc], edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004016be
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x401c88
lea edx, [ebp - 0x658]
push edx
call fcn.004018b9
add esp, 4
test eax, eax
jne 0x401c6f
mov dword [ebp - 0x86c], 0
cmp dword [ebp + 0x10], 0
je 0x401bd6
lea eax, [ebp - 0x8ec]
push eax
lea ecx, [ebp - 0x204]
push ecx
lea edx, [ebp - 0x658]
push edx
call fcn.00404a8f
add esp, 0xc
test eax, eax
je 0x401bd6
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x8ec]
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x401bd6
jmp 0x401c88
lea edx, [ebp - 0x658]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00404d00
mov dword [ebp - 0x86c], eax
cmp dword [ebp - 0x86c], 0
je 0x401c6f
push 0x210
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x8f0], eax
cmp dword [ebp - 0x8f0], 0
je 0x401c6f
mov ecx, dword [ebp - 0x8f0]
mov edx, dword [0x408340]
mov dword [ecx], edx
mov eax, dword [ebp - 0x8f0]
mov dword [0x408340], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x8f0]
add edx, 4
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea eax, [ebp - 0x658]
push eax
mov ecx, dword [ebp - 0x8f0]
add ecx, 0x108
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov edx, dword [ebp - 0x8f0]
mov eax, dword [ebp - 0x86c]
mov dword [edx + 0x20c], eax
cmp dword [ebp - 0x550], 0
je 0x401c88
mov ecx, dword [ebp + 8]
push ecx
call sub.ZSPOOL.dll_ClosePrinter
mov dword [ebp + 8], 0
lea edx, [ebp - 0x548]
push edx
mov eax, dword [ebp - 0x554]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4019a3
mov ecx, dword [ebp - 0x554]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x54c]
mov esp, ebp
pop ebp
ret