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

Disassembly:
sub esp, 0x8dc
cmp dword [esp + 0x8e4], 1
sbb eax, eax
push ebx
mov ecx, dword [esp + 0x8f4]
push esi
mov edx, dword [esp + 0x8f4]
push edi
neg eax
push ebp
push ecx
mov dword [esp + 0x20], eax
push 0x407488
lea eax, [esp + 0x28]
push edx
push 0
push eax
call dword [sym.imp.MSVCRT40.dll__makepath]
lea ecx, [esp + 0x800]
lea edx, [esp + 0x28]
lea eax, [esp + 0x34]
add esp, 0x14
push 0
push 0
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT40.dll__splitpath]
lea ecx, [esp + 0x4bc]
lea edx, [esp + 0x34]
add esp, 0x14
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x18], eax
test eax, eax
je 0x401ad3
xor ebx, ebx
test byte [esp + 0x4a8], 0x10
jne 0x401aad
lea eax, [esp + 0x228]
lea ecx, [esp + 0x328]
lea edx, [esp + 0x4d4]
push eax
push ecx
push ebx
push ebx
push edx
call dword [sym.imp.MSVCRT40.dll__splitpath]
lea ecx, [esp + 0x23c]
lea edx, [esp + 0x33c]
lea eax, [esp + 0x800]
add esp, 0x14
push ecx
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.MSVCRT40.dll__makepath]
add esp, 0x14
cmp dword [esp + 0x1c], ebx
je 0x401999
lea eax, [esp + 0x20]
lea ecx, [esp + 0x5e8]
push eax
push 0x104
push ecx
push 0x407460
push str.File
push 0x407494
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
lea ecx, [esp + 0x20]
lea eax, [esp + 0x124]
push ecx
push 0x104
push eax
push 0x407460
push str.Printer
push 0x407494
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
jle 0x401999
test edi, edi
jle 0x401999
lea eax, [esp + 0x228]
lea ecx, [esp + 0x328]
lea edx, [esp + 0x6ec]
push eax
lea eax, [esp + 0x14]
push ecx
lea ecx, [esp + 0x5f0]
push edx
mov byte [esp + 0x6f8], bl
push eax
mov byte [esp + 0x20], bl
push ecx
call dword [sym.imp.MSVCRT40.dll__splitpath]
add esp, 0x14
cmp byte [esp + 0x10], bl
je 0x401924
cmp byte [esp + 0x6ec], bl
je 0x401924
lea edi, [esp + 0x5e8]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40194f
lea eax, [esp + 0x228]
lea ecx, [esp + 0x328]
lea edx, [esp + 0x7ec]
push eax
lea eax, [esp + 0x18]
push ecx
lea ecx, [esp + 0x28]
push edx
push eax
push ecx
call dword [sym.imp.MSVCRT40.dll__makepath]
add esp, 0x14
cmp byte [esp + 0x124], bl
je 0x401999
lea eax, [esp + 0x8f0]
push ebx
lea ecx, [esp + 0x128]
push eax
push ecx
call sub.ZSPOOL.dll_OpenPrinterA
test eax, eax
je 0x401999
lea eax, [esp + 0x124]
push ebx
mov ecx, dword [esp + 0x8f4]
mov dword [esp + 0x8f8], eax
lea eax, [esp + 0x128]
push eax
push ecx
call fcn.00401550
add esp, 0xc
cmp dword [esp + 0x8f0], ebx
je 0x401aad
lea eax, [esp + 0x20]
push eax
call fcn.00401700
add esp, 4
test eax, eax
jne 0x401a93
cmp dword [esp + 0x8f8], ebx
je 0x401a06
lea eax, [esp + 0x428]
lea ecx, [esp + 0x228]
lea edx, [esp + 0x20]
push eax
push ecx
push edx
call fcn.00403e00
add esp, 0xc
test eax, eax
je 0x401a06
mov eax, dword [esp + 0x8f8]
lea ecx, [esp + 0x428]
push eax
push ecx
call dword [sym.imp.MSVCRT40.dll__stricmp]
add esp, 8
test eax, eax
jne 0x401aad
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x8f0]
push eax
push ecx
call fcn.00403ff0
mov ebp, eax
test ebp, ebp
je 0x401a93
push 0x210
call dword [sym.imp.MSVCRT40.dll_malloc]
add esp, 4
mov edx, eax
test edx, edx
je 0x401a93
mov eax, dword [0x407010]
mov edi, dword [esp + 0x8f4]
mov ecx, 0xffffffff
mov dword [edx], eax
sub eax, eax
mov dword [0x407010], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [edx + 4]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [edx + 0x108]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [edx + 0x20c], ebp
cmp dword [esp + 0x1c], ebx
je 0x401aad
mov eax, dword [esp + 0x8f0]
push eax
call sub.ZSPOOL.dll_ClosePrinter
mov dword [esp + 0x8f0], ebx
lea eax, [esp + 0x4a8]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4017df
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x8dc
ret