Function at 0x434e3d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x513010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 0xa9], dl
mov ecx, dword [eax]
mov eax, dword [0x520328]
mov dword [ebp - 0xb0], edi
cmp eax, dword [ecx + 4]
jle 0x434e9d
mov esi, 0x520328
push esi
call fcn.004b7d8c
cmp dword [0x520328], 0xffffffff
pop ecx
jne 0x434e9d
push 0x4e83a0
call fcn.004b7af9
pop ecx
push esi
call fcn.004b7d3b
pop ecx
xor ebx, ebx
inc ebx
cmp byte [0x520108], 0
jne 0x434ef6
mov ecx, dword [0x518b80]
mov edx, 0x4fa7c8
mov byte [0x520108], bl
mov ecx, dword [ecx + 0xa0]
call fcn.0045f52b
test al, al
je 0x434ed5
mov dword [0x515fb4], 2
jmp 0x434ef6
mov ecx, dword [0x518b80]
mov edx, str.none
mov ecx, dword [ecx + 0xa0]
call fcn.0045f52b
test al, al
je 0x434ef6
and dword [0x515fb4], 0
and dword [ebp - 0x9c], 0
lea eax, [ebp - 0x8c]
and dword [ebp - 0x98], 0
lea ecx, [ebp - 0xa0]
and dword [ebp - 0xa0], 0
and dword [ebp - 0x94], 0
mov dword [ebp - 0x90], eax
call fcn.0043377a
mov eax, dword [0x515680]
shr eax, 4
test bl, al
je 0x43559b
mov ecx, edi
call fcn.0042d50a
test al, al
je 0x43559b
mov ecx, edi
call fcn.0042d657
mov ecx, edi
test eax, eax
je 0x434f8d
mov esi, dword [0x515680]
shr esi, 1
call fcn.0042d657
mov eax, dword [eax + 0xbc]
test eax, eax
je 0x43559b
mov eax, dword [eax + 8]
not esi
push 0
push 0
and esi, ebx
mov ecx, dword [eax]
inc esi
push esi
push 6
push eax
call dword [ecx + 0xd8]
jmp 0x43559b
call fcn.0042d649
mov esi, eax
mov edx, 0x4fa7cc
test esi, esi
mov dword [ebp - 0xbc], esi
sete cl
call fcn.0041e67a
test esi, esi
je 0x43559b
mov eax, dword [esi + 0x6c]
mov ecx, esi
mov dword [ebp - 0xc4], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0xc8], eax
mov eax, dword [esi]
call dword [eax + 0xc]
cmp dword [edi + 0x1c4], 0
mov dword [ebp - 0xa8], eax
je 0x43501e
call fcn.00453a81
movzx edi, al
mov ecx, str.Printing_in_progress.
shl edi, 0x14
or edi, 0x34
call fcn.004539bd
mov ecx, str.Printing_is_still_in_progress._Abort_and_start_over_
mov esi, eax
call fcn.004539bd
push edi
mov edi, dword [ebp - 0xb0]
push esi
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x43559b
mov esi, dword [ebp - 0xbc]
mov ecx, edi
call fcn.00434e1b
mov eax, dword [0x515680]
shr eax, 1
test bl, al
jne 0x435043
mov ecx, dword [esi + 0x1c]
xor edx, edx
push 0
push ebx
call fcn.00435c55
pop ecx
jmp 0x43559a
push 0x54
pop esi
push esi
lea eax, [ebp - 0x138]
push 0
push eax
call fcn.004b8c50
mov eax, dword [edi + 8]
add esp, 0xc
mov ecx, edi
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x124], 0x40010
call fcn.0042d56a
cmp dword [eax + 0x84], 0
jne 0x435088
or dword [ebp - 0x124], 4
push 0xa
pop eax
push 8
push eax
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], eax
call fcn.004c7d3d
mov ecx, eax
mov eax, dword [ebp - 0xa8]
push 0x38
mov dword [ebp - 0x110], ecx
pop edi
mov dword [ecx + 4], eax
mov dword [ecx], ebx
or dword [ebp - 0xec], 0xffffffff
mov dword [ebp - 0x108], eax
xor eax, eax
push edi
push eax
mov dword [ebp - 0xdc], eax
mov esi, eax
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0x170]
mov dword [ebp - 0xcc], ecx
mov ecx, dword [0x515fb4]
push eax
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0xd8], ecx
mov byte [ebp - 0xd0], bl
call fcn.004b8c50
add esp, 0x14
mov dword [ebp - 0x170], edi
lea eax, [ebp - 0xdc]
mov dword [ebp - 0x16c], 0x408
add edi, 0x53
mov dword [ebp - 0x158], 0x4413b5
mov ecx, 0x4fc66c
mov dword [ebp - 0x164], edi
mov dword [ebp - 0x154], eax
call fcn.004539bd
mov dword [ebp - 0x15c], eax
call fcn.00453a81
test al, al
je 0x43516c
mov ecx, edi
call fcn.00440004
push 0
mov esi, eax
call fcn.004c5e5a
or dword [ebp - 0x16c], ebx
pop ecx
mov dword [ebp - 0x164], esi
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.COMCTL32.dll_CreatePropertySheetPageW]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xf0], eax
mov eax, dword [0x52010c]
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xb4], eax
test eax, eax
je 0x4351f9
movzx ecx, word [eax + 0x46]
movzx eax, word [eax + 0x44]
add ecx, eax
push ecx
push 2
mov dword [ebp - 0xa4], ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x4351c3
xor edi, edi
jmp 0x4351f3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x4351d7
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4351bf
push dword [ebp - 0xa4]
push dword [ebp - 0xb4]
push eax
call fcn.004b8db0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp - 0x130], edi
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.COMDLG32.dll_PrintDlgExW]
test eax, eax
je 0x43523d
push str.OnMenuPrint:_PrintDlgEx_failed_n
call fcn.004620b3
pop ecx
mov ecx, str.Printing_problem.
call fcn.00453983
mov ecx, str.Couldnt_initialize_printer
mov edi, eax
call fcn.00453983
mov ecx, dword [ebp - 0xb0]
mov edx, eax
push edi
mov ecx, dword [ecx + 8]
call fcn.0044222c
pop ecx
cmp dword [ebp - 0xe8], ebx
jne 0x435572
cmp dword [ebp - 0x12c], 0
jne 0x435266
mov ecx, str.Printing_problem.
call fcn.00453983
mov ecx, str.Couldnt_get_printer_name
jmp 0x435559
push dword [ebp - 0x12c]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
call edi
test eax, eax
je 0x43554a
movzx ecx, word [eax + 2]
or edx, 0xffffffff
lea ecx, [eax + ecx*2]
call fcn.00462810
mov ecx, eax
call fcn.00433ae3
push dword [ebp - 0x12c]
mov dword [ebp - 0xa4], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0xa4], 0
je 0x43554a
push dword [ebp - 0x130]
call edi
mov edx, dword [ebp - 0xe8]
mov ecx, eax
mov dword [ebp - 0xb4], ecx
cmp edx, ebx
je 0x4352d0
cmp edx, 2
jne 0x435311
test ecx, ecx
je 0x435306
movzx edx, word [ecx + 0x46]
movzx eax, word [ecx + 0x44]
push 0
add edx, eax
call fcn.004625a4
pop ecx
push dword [0x52010c]
mov edi, eax
call fcn.004c5e5a
mov edx, dword [ebp - 0xe8]
pop ecx
mov ecx, dword [ebp - 0xb4]
mov dword [0x52010c], edi
mov eax, dword [ebp - 0xd8]
mov dword [0x515fb4], eax
test ecx, ecx
je 0x435353
movzx edx, word [ecx + 0x46]
movzx eax, word [ecx + 0x44]
push 0
add edx, eax
call fcn.004625a4
mov edi, eax
mov eax, dword [ebp - 0xa4]
pop ecx
push dword [eax + 4]
call fcn.004c5e5a
mov eax, dword [ebp - 0xa4]
pop ecx
mov dword [eax + 4], edi
push dword [ebp - 0x130]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0xe8]
cmp edx, ebx
jne 0x435572
test dword [ebp - 0x124], 0x400000
je 0x43539e
mov edi, dword [ebp - 0xbc]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x14]
mov dword [ebp - 0xb8], eax
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x14]
mov dword [ebp - 0xb4], eax
lea ecx, [ebp - 0xa0]
lea eax, [ebp - 0xb8]
push eax
call fcn.00429073
jmp 0x43544d
mov edi, dword [ebp - 0xb0]
mov ecx, edi
call fcn.0042d56a
cmp dword [eax + 0x84], 0
je 0x4353d4
test byte [ebp - 0x124], bl
je 0x4353d4
mov ecx, edi
call fcn.0042d56a
mov eax, dword [eax + 0x84]
mov dword [ebp - 0xa8], eax
jmp 0x43545a
test byte [ebp - 0x124], 2
jne 0x435403
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 0xb8], ebx
call fcn.00429073
jmp 0x435453
xor eax, eax
mov edx, str.pdex.nPageRanges___0
cmp eax, dword [ebp - 0x118]
sbb cl, cl
inc cl
call fcn.0041e67a
and dword [ebp - 0xb4], 0
cmp dword [ebp - 0x118], 0
jbe 0x435453
mov edi, dword [ebp - 0xb4]
mov eax, dword [ebp - 0x110]
lea ecx, [ebp - 0xa0]
lea eax, [eax + edi*8]
push eax
call fcn.00429073
inc edi
cmp edi, dword [ebp - 0x118]
jb 0x43542f
mov edi, dword [ebp - 0xb0]
and dword [ebp - 0xa8], 0
push 0x20c
call fcn.004b7b0e
pop ecx
push dword [ebp - 0xa8]
lea ecx, [ebp - 0xdc]
push dword [ebp - 0xc4]
push ecx
lea ecx, [ebp - 0xa0]
push ecx
push dword [ebp - 0xa4]
mov ecx, eax
push dword [ebp - 0xc8]
call fcn.00433904
mov ecx, eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xa4], ecx
mov edx, dword [eax + 0x1c]
lea eax, [ecx + 4]
mov dword [ebp - 0xa8], eax
test edx, edx
je 0x4354b9
cmp dword [eax], 0
jne 0x4354b9
mov dword [eax], edx
jmp 0x4354c1
xor bl, bl
mov dword [ebp - 0xa8], eax
cmp byte [ebp - 0xa9], 0
jne 0x435519
test bl, bl
jne 0x435519
cmp dword [edi + 0x1c4], 0
mov edx, str.win__printThread
setne cl
call fcn.0041e67a
push 0x34
call fcn.004b7b0e
mov ebx, dword [ebp - 0xa4]
pop ecx
push ebx
push edi
mov ecx, eax
call fcn.00434b90
xor ecx, ecx
push ecx
push ecx
push eax
push 0x434d89
push ecx
push ecx
mov dword [edi + 0x1c4], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x1c4], eax
jmp 0x435572
call fcn.00433f38
test bl, bl
je 0x43552b
mov eax, dword [ebp - 0xa8]
and dword [eax], 0
mov ebx, dword [ebp - 0xa4]
test ebx, ebx
je 0x435572
mov ecx, ebx
call fcn.00433a48
push 0x20c
push ebx
call fcn.004b788c
pop ecx
jmp 0x435571
mov ecx, str.Printing_problem.
call fcn.00453983
mov ecx, str.Couldnt_initialize_printer
mov edi, eax
call fcn.00453983
mov edx, eax
mov eax, dword [ebp - 0xb0]
push edi
mov ecx, dword [eax + 8]
call fcn.0044222c
pop ecx
push dword [ebp - 0xcc]
call fcn.004c5e5a
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ecx
push dword [ebp - 0x12c]
call ebx
push dword [ebp - 0x130]
call ebx
push esi
call fcn.004c5e5a
pop ecx
lea ecx, [ebp - 0xa0]
call fcn.00415382
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7879
leave
ret