Function at 0x440eaa
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0xee37e4]
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 [0xf0e810]
mov dword [ebp - 0xb0], edi
cmp eax, dword [ecx + 4]
jle 0x440f0a
mov esi, 0xf0e810
push esi
call fcn.006f43f9
cmp dword [0xf0e810], 0xffffffff
pop ecx
jne 0x440f0a
push 0x72ae74
call fcn.006f40a8
pop ecx
push esi
call fcn.006f43af
pop ecx
xor ebx, ebx
inc ebx
cmp byte [0xf0e362], 0
jne 0x440f6b
mov ecx, dword [0xefc0c8]
mov edx, 0xe7a3b4
mov byte [0xf0e362], bl
mov ecx, dword [ecx + 0x98]
call fcn.005b0cdc
test al, al
je 0x440f42
mov dword [0xef95b0], 2
jmp 0x440f6b
mov ecx, dword [0xefc0c8]
mov edx, str.none
mov ecx, dword [ecx + 0x98]
call fcn.005b0cdc
mov ecx, dword [0xef95b0]
xor edx, edx
test al, al
cmovne ecx, edx
mov dword [0xef95b0], ecx
xor eax, eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x90], eax
call fcn.00431f81
mov eax, dword [0xef591c]
shr eax, 4
test bl, al
je 0x4415dc
mov ecx, edi
call fcn.00462c37
test al, al
je 0x4415dc
mov ecx, edi
call fcn.00462c75
mov ecx, edi
test eax, eax
je 0x441000
mov esi, dword [0xef591c]
shr esi, 1
call fcn.00462c75
mov eax, dword [eax + 0xd4]
test eax, eax
je 0x4415dc
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 0x4415dc
call fcn.00462c67
mov esi, eax
test esi, esi
mov dword [ebp - 0xbc], esi
sete cl
call fcn.00420997
test esi, esi
je 0x4415dc
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 + 0x200], 0
mov dword [ebp - 0xb8], eax
je 0x44108c
call fcn.00460f5d
movzx edi, al
mov ecx, str.Printing_in_progress.
shl edi, 0x14
or edi, 0x34
call fcn.00460e8f
mov ecx, str.Printing_is_still_in_progress._Abort_and_start_over_
mov esi, eax
call fcn.00460e8f
push edi
mov edi, dword [ebp - 0xb0]
push esi
push eax
push dword [edi + 0x5c]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x4415dc
mov esi, dword [ebp - 0xbc]
mov ecx, edi
call fcn.00440e88
mov eax, dword [0xef591c]
shr eax, 1
test bl, al
jne 0x4410b1
mov ecx, dword [esi + 0x1c]
xor edx, edx
push 0
push ebx
call fcn.00441bd2
pop ecx
jmp 0x4415db
push 0x54
pop esi
push esi
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.006f59b0
mov eax, dword [edi + 0x5c]
add esp, 0xc
mov dword [ebp - 0x12c], eax
mov ecx, 0x40010
mov eax, dword [edi + 0x58]
mov dword [ebp - 0x11c], ecx
push 0xa
mov dword [ebp - 0x130], esi
lea edx, [ecx + 4]
cmp dword [eax + 0x88], 0
pop eax
cmove ecx, edx
mov dword [ebp - 0xfc], ebx
push 8
push eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], eax
call fcn.00705f80
mov ecx, eax
mov eax, dword [ebp - 0xb8]
push 0x38
mov dword [ebp - 0x108], ecx
pop edi
mov dword [ecx + 4], eax
mov dword [ecx], ebx
or dword [ebp - 0xe4], 0xffffffff
mov dword [ebp - 0x100], eax
xor eax, eax
push edi
push eax
mov dword [ebp - 0xd8], eax
mov esi, eax
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0x168]
mov dword [ebp - 0xcc], ecx
mov ecx, dword [0xef95b0]
push eax
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0xd4], ecx
call fcn.006f59b0
add esp, 0x14
mov dword [ebp - 0x168], edi
lea eax, [ebp - 0xd8]
mov dword [ebp - 0x164], 0x408
add edi, 0x53
mov dword [ebp - 0x150], 0x44d2b3
mov ecx, 0xe7cf58
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x14c], eax
call fcn.00460e8f
mov dword [ebp - 0x154], eax
call fcn.00460f5d
test al, al
je 0x4411d4
mov ecx, edi
call fcn.0044c047
push 0
mov esi, eax
call fcn.00702f96
or dword [ebp - 0x164], ebx
pop ecx
mov dword [ebp - 0x15c], esi
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.COMCTL32.dll_CreatePropertySheetPageW]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xe8], eax
mov eax, dword [0xf0e364]
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xb4], eax
test eax, eax
je 0x441261
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 0x44122b
xor edi, edi
jmp 0x44125b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x44123f
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x441227
push dword [ebp - 0xa4]
push dword [ebp - 0xb4]
push eax
call fcn.006f6760
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp - 0x128], edi
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.COMDLG32.dll_PrintDlgExW]
test eax, eax
je 0x4412a5
push str.OnMenuPrint:_PrintDlgEx_failed_n
call fcn.005b3949
pop ecx
mov ecx, str.Printing_problem.
call fcn.00460e8f
mov ecx, str.Couldnt_initialize_printer
mov edi, eax
call fcn.00460e8f
mov ecx, dword [ebp - 0xb0]
mov edx, eax
push edi
mov ecx, dword [ecx + 0x5c]
call fcn.0044e079
pop ecx
cmp dword [ebp - 0xe0], ebx
jne 0x4415b3
cmp dword [ebp - 0x124], 0
jne 0x4412ce
mov ecx, str.Printing_problem.
call fcn.00460e8f
mov ecx, str.Couldnt_get_printer_name
jmp 0x44159a
push dword [ebp - 0x124]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
call edi
test eax, eax
je 0x44158b
movzx ecx, word [eax + 2]
lea ecx, [eax + ecx*2]
call fcn.0043fccb
push dword [ebp - 0x124]
mov dword [ebp - 0xb4], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0xb4], 0
je 0x44158b
push dword [ebp - 0x128]
call edi
mov edx, dword [ebp - 0xe0]
mov ecx, eax
mov dword [ebp - 0xa4], ecx
cmp edx, ebx
je 0x44132e
cmp edx, 2
jne 0x44136e
test ecx, ecx
je 0x441363
movzx edx, word [ecx + 0x46]
movzx eax, word [ecx + 0x44]
push ecx
add edx, eax
call fcn.005b3f20
pop ecx
push dword [0xf0e364]
mov edi, eax
call fcn.00702f96
mov edx, dword [ebp - 0xe0]
pop ecx
mov ecx, dword [ebp - 0xa4]
mov dword [0xf0e364], edi
mov eax, dword [ebp - 0xd4]
mov dword [0xef95b0], eax
test ecx, ecx
je 0x4413af
movzx edx, word [ecx + 0x46]
movzx eax, word [ecx + 0x44]
push ecx
add edx, eax
call fcn.005b3f20
mov edi, eax
mov eax, dword [ebp - 0xb4]
pop ecx
push dword [eax + 4]
call fcn.00702f96
mov eax, dword [ebp - 0xb4]
pop ecx
mov dword [eax + 4], edi
push dword [ebp - 0x128]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0xe0]
cmp edx, ebx
jne 0x4415b3
test dword [ebp - 0x11c], 0x400000
je 0x4413fa
mov edi, dword [ebp - 0xbc]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x14]
mov dword [ebp - 0xa8], eax
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x14]
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0xa0]
lea eax, [ebp - 0xa8]
push eax
call fcn.00431eb7
jmp 0x441493
mov edi, dword [ebp - 0xb0]
mov eax, dword [edi + 0x58]
mov eax, dword [eax + 0x88]
mov dword [ebp - 0xa4], eax
test eax, eax
je 0x44141f
test byte [ebp - 0x11c], bl
jne 0x4414a0
test byte [ebp - 0x11c], 2
jne 0x44144e
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], ebx
call fcn.00431eb7
jmp 0x441499
xor eax, eax
cmp eax, dword [ebp - 0x110]
sbb cl, cl
inc cl
call fcn.00420997
and dword [ebp - 0xa4], 0
cmp dword [ebp - 0x110], 0
jbe 0x441499
mov edi, dword [ebp - 0xa4]
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0xa0]
lea eax, [eax + edi*8]
push eax
call fcn.00431eb7
inc edi
cmp edi, dword [ebp - 0x110]
jb 0x441475
mov edi, dword [ebp - 0xb0]
and dword [ebp - 0xa4], 0
push 0x208
call fcn.006f40bd
pop ecx
push dword [ebp - 0xa4]
lea ecx, [ebp - 0xd8]
push dword [ebp - 0xc4]
push ecx
lea ecx, [ebp - 0xa0]
push ecx
push dword [ebp - 0xb4]
mov ecx, eax
push dword [ebp - 0xc8]
call fcn.0043fae6
mov ecx, eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xb8], ecx
mov edx, dword [eax + 0x1c]
lea eax, [ecx + 4]
mov dword [ebp - 0xa4], eax
test edx, edx
je 0x4414ff
cmp dword [eax], 0
jne 0x4414ff
mov dword [eax], edx
jmp 0x441507
xor bl, bl
mov dword [ebp - 0xa4], eax
cmp byte [ebp - 0xa9], 0
jne 0x44155a
test bl, bl
jne 0x44155a
cmp dword [edi + 0x200], 0
setne cl
call fcn.00420997
push 0x34
call fcn.006f40bd
mov ebx, dword [ebp - 0xb8]
pop ecx
push ebx
push edi
mov ecx, eax
call fcn.00440be2
xor ecx, ecx
push ecx
push ecx
push eax
push 0x440deb
push ecx
push ecx
mov dword [edi + 0x200], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x200], eax
jmp 0x4415b3
call fcn.004400c4
test bl, bl
je 0x44156c
mov eax, dword [ebp - 0xa4]
and dword [eax], 0
mov ebx, dword [ebp - 0xb8]
test ebx, ebx
je 0x4415b3
mov ecx, ebx
call fcn.0043fc17
push 0x208
push ebx
call fcn.006f3e3b
pop ecx
jmp 0x4415b2
mov ecx, str.Printing_problem.
call fcn.00460e8f
mov ecx, str.Couldnt_initialize_printer
mov edi, eax
call fcn.00460e8f
mov edx, eax
mov eax, dword [ebp - 0xb0]
push edi
mov ecx, dword [eax + 0x5c]
call fcn.0044e079
pop ecx
push dword [ebp - 0xcc]
call fcn.00702f96
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ecx
push dword [ebp - 0x124]
call ebx
push dword [ebp - 0x128]
call ebx
push esi
call fcn.00702f96
pop ecx
lea ecx, [ebp - 0xa0]
call fcn.00421c7c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006f3e28
leave