Function at 0x408ad0
Capabilities:
Copy file
Read .ini file

Disassembly:
sub esp, 0x23c
mov eax, dword [esp + 0x240]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
je 0x408da7
cmp byte [eax], 0
je 0x408da7
lea ecx, [esp + 0x10]
push esi
push ecx
push eax
call sub.WINSPOOL.DRV_OpenPrinterA
test eax, eax
je 0x408da1
push 0x41340c
push esi
push 0x413418
push 0x416980
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, eax
mov dword [esp + 0x18], ebp
inc ebp
cmp ebp, 0xf423f
jle 0x408b40
mov ebp, 1
push ebp
lea edx, [esp + 0x20]
push str._06d.sp
push edx
call ebx
mov eax, dword [0x415eb4]
add esp, 0xc
xor esi, esi
test eax, eax
jle 0x408b87
xor edi, edi
mov ecx, dword [0x415ebc]
lea eax, [esp + 0x1c]
add ecx, edi
push eax
push ecx
call fcn.004105e0
add esp, 8
test eax, eax
je 0x408b87
mov eax, dword [0x415eb4]
inc esi
add edi, 0xe4
cmp esi, eax
jl 0x408b5d
cmp esi, dword [0x415eb4]
jge 0x408b95
cmp ebp, dword [esp + 0x18]
jne 0x408b32
mov eax, dword [esp + 0x250]
lea edx, [esp + 0x1c]
push edx
push 0x416860
push 0x413428
push eax
call ebx
mov eax, dword [0x415e94]
add esp, 0x10
cmp eax, 4
jl 0x408bd3
mov ecx, dword [0x415fa4]
lea edx, [esp + 0x3c]
push ecx
push 0x416740
push 0x413430
push edx
jmp 0x408be8
mov eax, dword [0x415fa4]
lea ecx, [esp + 0x3c]
push eax
push 0x416740
push str._s_05d.spl
push ecx
call ebx
add esp, 0x10
lea edx, [esp + 0x1c4]
lea eax, [esp + 0x3c]
push 0
push edx
push eax
call sub.LZ32.dll_LZOpenFileA
mov edi, eax
cmp edi, 0xffffffff
je 0x408d7e
mov edx, dword [esp + 0x250]
lea ecx, [esp + 0x13c]
push 0x1000
push ecx
push edx
call sub.LZ32.dll_LZOpenFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x408d78
push esi
push edi
call sub.LZ32.dll_LZCopy
push esi
call sub.LZ32.dll_LZClose
push edi
call sub.LZ32.dll_LZClose
mov eax, dword [0x415eac]
test eax, eax
jne 0x408c63
mov eax, dword [0x415fa4]
mov ecx, dword [esp + 0x10]
push 3
push 0
push 0
push eax
push ecx
call sub.WINSPOOL.DRV_SetJobA
lea edx, [esp + 0x1c]
lea eax, [esp + 0x3c]
push edx
push 0x413448
push eax
call ebx
mov ecx, dword [esp + 0x260]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, ecx
add esp, 0xc
shl eax, 3
sub eax, ecx
mov ecx, dword [0x415ec0]
push 0x41344c
lea esi, [eax + eax*2]
lea eax, [esp + 0x40]
shl esi, 2
mov edx, dword [ecx + esi + 4]
push edx
push eax
push 0x416980
call edi
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x3c]
push ecx
push 0x413458
push edx
call ebx
mov eax, dword [0x415ec0]
add esp, 0xc
mov ecx, dword [eax + esi + 0x10]
mov edx, dword [eax + esi + 4]
push ecx
push edx
call fcn.004105e0
add esp, 8
test eax, eax
jne 0x408ce8
push 0x41345c
push 0x415ff4
jmp 0x408cf8
mov ecx, dword [0x415ec0]
push 0x413468
mov edx, dword [ecx + esi + 0x10]
push edx
lea eax, [esp + 0x44]
push eax
push 0x416980
call edi
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x3c]
push ecx
push 0x413474
push edx
call ebx
mov eax, ebp
mov ecx, 0x64
cdq
idiv ecx
add esp, 0xc
push edx
lea edx, [esp + 0x20]
push str.Document__d
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x3c]
push 0x413484
push eax
push ecx
push 0x416980
call edi
push ebp
lea edx, [esp + 0x20]
push 0x413490
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x1c]
push 0x413494
push eax
push str.FNum
push 0x416980
call edi
mov dword [esp + 0x14], 1
jmp 0x408d7e
push edi
call sub.LZ32.dll_LZClose
mov ecx, dword [esp + 0x10]
mov dword [0x415fa4], 0
push ecx
call sub.WINSPOOL.DRV_ClosePrinter
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret
mov dword [0x415fa4], esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x23c
ret