Function at 0x41ca60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x180
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x17c], eax
push ebx
push ebp
push esi
mov ebx, 1
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
test byte [0x9f5f40], bl
jne 0x41caa8
or dword [0x9f5f40], ebx
push 0x68f1b0
mov dword [0x9f5f3c], 0
call fcn.00659050
add esp, 4
xor edi, edi
cmp byte [0x9f5c65], 0
jne 0x41cb2a
mov ecx, dword [0x9f48bc]
mov al, byte [ecx + 0x7c]
mov byte [0x9f5c64], al
mov eax, dword [ecx + 0x78]
mov byte [0x9f5c65], 1
cmp eax, 0x925670
je 0x41caed
cmp eax, edi
je 0x41caff
push 0x925670
push eax
call fcn.00660044
add esp, 8
test eax, eax
sete al
test al, al
je 0x41caf9
mov dword [0x9e88fc], 2
jmp 0x41cb2a
mov ecx, dword [0x9f48bc]
mov eax, dword [ecx + 0x78]
cmp eax, str.none
je 0x41cb24
cmp eax, edi
je 0x41cb2a
push str.none
push eax
call fcn.00660044
add esp, 8
test eax, eax
sete al
test al, al
je 0x41cb2a
mov dword [0x9e88fc], edi
lea ecx, [esp + 0x100]
push 0x80
mov edx, ecx
push edi
push edx
mov byte [esp + 0x23], 0
mov dword [esp + 0x104], edi
mov dword [esp + 0x18c], edi
mov dword [esp + 0x190], edi
mov dword [esp + 0xfc], edi
mov dword [esp + 0x100], 0xf
mov dword [esp + 0x108], ecx
call fcn.0065b340
add esp, 0xc
push 0x50
lea eax, [esp + 0xa0]
push edi
push eax
mov dword [esp + 0xa4], edi
call fcn.0065b340
add esp, 0xc
test byte [0x9e8474], 0x10
jne 0x41cbd3
mov eax, dword [esp + 0xfc]
lea ecx, [esp + 0x100]
cmp eax, ecx
je 0x41d198
mov ecx, dword [esp + 0x180]
push eax
cmp ecx, edi
jne 0x41cbc7
call fcn.00658a01
add esp, 4
jmp 0x41d198
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
jmp 0x41d198
cmp dword [esi + 4], edi
je 0x41d18c
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x7c]
call eax
cmp eax, edi
je 0x41cc38
mov ecx, dword [0x9e8474]
and cl, 2
cmp cl, 2
sete bl
cmp dword [esi + 4], edi
je 0x41cc0c
mov esi, dword [esi + 4]
mov edx, dword [esi]
mov eax, dword [edx + 0x7c]
mov ecx, esi
call eax
jmp 0x41cc0e
xor eax, eax
mov eax, dword [eax + 0xd0]
cmp eax, edi
je 0x41cb98
mov eax, dword [eax + 8]
mov ecx, dword [eax]
xor edx, edx
test bl, bl
sete dl
push edi
push edi
inc edx
push edx
push 6
push eax
mov eax, dword [ecx + 0xd8]
call eax
jmp 0x41cb98
cmp dword [esi + 4], edi
je 0x41d18c
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x80]
call eax
cmp eax, edi
jne 0x41cb98
cmp dword [esi + 4], edi
je 0x41d18c
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x78]
call eax
cmp eax, edi
je 0x41d18c
cmp dword [esi + 4], edi
je 0x41cc84
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x78]
call eax
mov ebp, eax
jmp 0x41cc86
xor ebp, ebp
mov ecx, dword [ebp + 0x28]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
test al, al
je 0x41d18c
cmp dword [esi + 0x370], edi
je 0x41ccd2
call fcn.00402910
or eax, 0x34
push eax
mov eax, str.Printing_in_progress.
call fcn.0044a3e0
push eax
mov eax, str.Printing_is_still_in_progress._Abort_and_start_over_
call fcn.0044a3e0
mov ecx, dword [esi + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x41d18c
call fcn.0041c9f0
test byte [0x9e8474], 2
jne 0x41ccf4
mov ecx, dword [ebp + 0x28]
push edi
push ebx
xor edx, edx
call fcn.0041d780
add esp, 8
jmp 0x41d18c
push 0x54
lea edx, [esp + 0x44]
push edi
push edx
call fcn.0065b340
mov eax, dword [esi + 8]
add esp, 0xc
mov dword [esp + 0x40], 0x54
mov dword [esp + 0x44], eax
mov dword [esp + 0x54], 0x40010
cmp dword [esi + 0x174], edi
jne 0x41cd2b
mov dword [esp + 0x54], 0x40014
push 8
push 0xa
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], 0xa
call fcn.00658a3b
mov edi, eax
mov dword [esp + 0x70], edi
mov dword [edi], ebx
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
add esp, 8
mov ecx, ebp
mov dword [esp + 0x34], edi
call eax
mov dword [edi + 4], eax
mov dword [esp + 0x6c], ebx
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
mov ecx, ebp
call eax
mov ecx, dword [0x9e88fc]
mov dl, byte [0x9f5c64]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x28]
xor ebx, ebx
push eax
lea edi, [esp + 0x28]
mov dword [esp + 0x90], 0xffffffff
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ecx
mov byte [esp + 0x34], dl
mov dword [esp + 0x28], ebx
call fcn.0043b430
mov dword [esp + 0x40], eax
mov eax, dword [0x9f5f3c]
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x84], 1
cmp eax, ebx
je 0x41cde6
movzx edi, word [eax + 0x46]
movzx edx, word [eax + 0x44]
add edi, edx
push eax
call fcn.0041ca20
add esp, 4
mov dword [esp + 0x48], eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.COMDLG32.dll_PrintDlgExW]
test eax, eax
je 0x41ce2d
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
test eax, eax
je 0x41d15e
mov eax, str.Printing_problem.
call fcn.0044a3e0
mov edi, eax
mov eax, str.Couldnt_initialize_printer
call fcn.0044a3e0
mov ecx, dword [esi + 8]
push eax
push ecx
mov eax, edi
call fcn.00402940
add esp, 8
jmp 0x41d15e
mov eax, dword [esp + 0x90]
cmp eax, 1
je 0x41ce3e
cmp eax, 2
jne 0x41ce9d
mov edx, dword [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x41ce82
movzx edi, word [eax + 0x46]
movzx ecx, word [eax + 0x44]
add edi, ecx
push eax
call fcn.0041b440
mov edx, dword [0x9f5f3c]
add esp, 4
push edx
mov edi, eax
call fcn.00658a01
mov eax, dword [esp + 0x4c]
add esp, 4
push eax
mov dword [0x9f5f3c], edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x2c]
mov dl, byte [esp + 0x30]
mov eax, dword [esp + 0x90]
mov dword [0x9e88fc], ecx
mov byte [0x9f5c64], dl
cmp eax, 1
jne 0x41d15e
mov eax, dword [esp + 0x54]
test eax, 0x400000
je 0x41cf35
mov eax, dword [ebp]
mov edx, dword [eax + 0x14]
mov ecx, ebp
call edx
mov dword [esp + 0x18], eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x14]
mov ecx, ebp
call edx
mov edi, dword [esp + 0xf0]
lea ebx, [edi + 1]
mov ecx, ebx
lea esi, [esp + 0xf0]
mov dword [esp + 0x1c], eax
call fcn.0057f800
test al, al
jne 0x41cef1
xor eax, eax
mov byte [eax], al
mov eax, dword [esp + 0xfc]
lea esi, [eax + edi*8]
mov eax, dword [esp + 0xf0]
cmp eax, edi
jbe 0x41cf1c
sub eax, edi
add eax, eax
add eax, eax
add eax, eax
push eax
lea ecx, [esi + 8]
push esi
push ecx
call fcn.006586a0
add esp, 0xc
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xf0], ebx
mov dword [esi], edx
mov dword [esi + 4], eax
jmp 0x41d049
cmp dword [esi + 0x174], ebx
je 0x41cf4b
test al, 1
je 0x41cf4b
mov byte [esp + 0x17], 1
jmp 0x41d049
test al, 2
jne 0x41cfc9
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
mov ecx, ebp
mov dword [esp + 0x18], 1
call eax
mov edi, dword [esp + 0xf0]
lea ebx, [edi + 1]
mov ecx, ebx
lea esi, [esp + 0xf0]
mov dword [esp + 0x1c], eax
call fcn.0057f800
test al, al
jne 0x41cf85
xor eax, eax
mov byte [eax], al
mov eax, dword [esp + 0xf0]
mov ecx, dword [esp + 0xfc]
lea esi, [ecx + edi*8]
cmp eax, edi
jbe 0x41cfb0
sub eax, edi
add eax, eax
add eax, eax
add eax, eax
push eax
lea edx, [esi + 8]
push esi
push edx
call fcn.006586a0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xf0], ebx
mov dword [esi], eax
mov dword [esi + 4], ecx
jmp 0x41d049
xor ebx, ebx
cmp dword [esp + 0x60], ebx
jbe 0x41d049
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0xf0]
lea eax, [edx + ebx*8]
lea ecx, [edi + 1]
lea esi, [esp + 0xf0]
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], ecx
call fcn.0057f800
test al, al
jne 0x41cffe
xor eax, eax
mov byte [eax], al
mov eax, dword [esp + 0xf0]
mov ecx, dword [esp + 0xfc]
lea esi, [ecx + edi*8]
cmp eax, edi
jbe 0x41d029
sub eax, edi
add eax, eax
add eax, eax
add eax, eax
push eax
lea edx, [esi + 8]
push esi
push edx
call fcn.006586a0
add esp, 0xc
mov eax, dword [esp + 0x38]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
inc ebx
mov dword [esi + 4], edx
cmp ebx, dword [esp + 0x60]
jb 0x41cfd1
mov eax, dword [esp + 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call esi
mov ecx, dword [esp + 0x48]
push ecx
mov edi, eax
call esi
mov esi, eax
mov dword [esp + 0x18], esi
test edi, edi
je 0x41d092
movzx edx, word [edi]
movzx ecx, word [edi + 2]
lea eax, [edi + edx*2]
mov dword [esp + 0xa8], eax
movzx eax, word [edi + 4]
lea edx, [edi + ecx*2]
lea ecx, [edi + eax*2]
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa4], ecx
push 0x358
call fcn.00659e93
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41d0e1
cmp byte [esp + 0x17], 0
je 0x41d0b8
mov edx, dword [esp + 0x20]
mov edx, dword [edx + 0x174]
jmp 0x41d0ba
xor edx, edx
mov eax, dword [ebp + 0x78]
mov ecx, dword [ebp + 0x28]
push edx
push eax
lea eax, [esp + 0xf8]
push eax
push esi
lea edx, [esp + 0xa8]
push edx
push ecx
lea eax, [esp + 0x40]
call fcn.0041b550
mov esi, eax
jmp 0x41d0e3
xor esi, esi
test edi, edi
je 0x41d0f2
mov eax, dword [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [esp + 0x18], 0
je 0x41d104
mov ecx, dword [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebp, dword [ebp + 0x28]
test ebp, ebp
je 0x41d130
cmp dword [esi + 0x10], 0
jne 0x41d130
mov bl, 1
mov dword [esi + 0x10], ebp
cmp byte [esp + 0x194], 0
jne 0x41d134
test bl, bl
jne 0x41d134
push esi
mov esi, dword [esp + 0x24]
call fcn.0041c9a0
jmp 0x41d15b
xor bl, bl
jmp 0x41d116
push 0
push 0
push esi
call fcn.0041b7e0
add esp, 0xc
test bl, bl
je 0x41d14c
mov dword [esi + 0x10], 0
test esi, esi
je 0x41d15e
call fcn.0041b6c0
push esi
call fcn.006590fa
add esp, 4
mov edx, dword [esp + 0x34]
push edx
call fcn.00658a01
mov eax, dword [esp + 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
add esp, 4
push eax
call esi
mov ecx, dword [esp + 0x48]
push ecx
call esi
mov edx, dword [esp + 0x24]
push edx
call fcn.00658a01
add esp, 4
lea eax, [esp + 0xf0]
call fcn.0041dc90
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0065865c
add esp, 0x180
ret