Function at 0x4017b0
Capabilities:
Delete file
Read .ini file

Disassembly:
sub esp, 0x334
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
xor eax, eax
push edi
mov edi, dword [esp + 0x34c]
mov dword [esp + 0x14], eax
mov byte [0x409684], al
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
jmp 0x4017e2
xor eax, eax
cmp dword [esp + 0x14], 0xc
jge 0x401a80
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
push eax
push 2
push eax
push 2
call sub.WINSPOOL.DRV_EnumPrintersA
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401a80
mov eax, dword [esp + 0x18]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x401a97
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
push esi
push 2
push 0
push 2
call sub.WINSPOOL.DRV_EnumPrintersA
test eax, eax
je 0x401a52
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
lea ecx, [esp + 0x140]
push 0x104
push ecx
push 0x409680
push 0x4070a8
push 0x407068
call ebx
lea edx, [esp + 0x13c]
push 0x409680
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40189d
mov dword [esp + 0x28], 1
push edi
lea eax, [esp + 0x244]
push 0x104
push eax
push 0x409680
push 0x4070a4
push 0x407068
call ebx
lea ecx, [esp + 0x240]
push 0x409680
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4018db
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], 0
test eax, eax
jbe 0x401a4e
add esi, 4
xor ebx, ebx
push ebx
lea edx, [esp + 0x34]
push 0x4070b4
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x38]
lea ecx, [esp + 0x30]
push edi
push 0x104
push eax
push 0x409680
push ecx
push 0x4070ac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x38]
test al, al
je 0x401949
mov edx, dword [esi]
lea eax, [esp + 0x38]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x401a36
inc ebx
jmp 0x4018f4
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x13c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4019c2
mov eax, dword [esi]
lea ecx, [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x24], 1
call ebp
mov edx, dword [esi + 8]
push edx
push 0x409684
call ebp
mov ebx, dword [esp + 0x348]
push edi
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00401ab0
mov eax, dword [esp + 0x360]
add esp, 0xc
cmp byte [eax], 0
je 0x4019a9
push edi
push ebx
push eax
call fcn.00401ab0
add esp, 0xc
cmp dword [esp + 0x350], 1
jne 0x4019c9
lea ecx, [esp + 0x38]
push ecx
call fcn.00402740
add esp, 4
jmp 0x4019c9
mov ebx, dword [esp + 0x348]
mov edx, dword [esi + 0xc]
lea eax, [esp + 0x240]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401a36
mov ecx, dword [esi]
lea edx, [esp + 0x38]
push ecx
push edx
mov dword [esp + 0x24], 1
call ebp
mov eax, dword [esi + 8]
push eax
push 0x409684
call ebp
push edi
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00401ab0
mov ecx, dword [esp + 0x35c]
mov eax, 1
add esp, 0xc
cmp ecx, eax
jne 0x401a36
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x401a36
cmp dword [esp + 0x20], eax
jne 0x401a36
lea edx, [esp + 0x38]
push edx
call fcn.00402740
add esp, 4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
inc eax
add esi, 0x54
cmp eax, ecx
mov dword [esp + 0x24], eax
jb 0x4018f2
mov ebx, dword [esp + 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
inc ecx
test eax, eax
mov dword [esp + 0x14], ecx
je 0x4017e0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x334
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x334
ret