Function at 0x1002da2b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x100e5bc8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 6
mov ebx, ecx
xor edx, edx
pop ecx
xor eax, eax
mov dword [ebp - 0x38], edx
lea edi, [ebp - 0x34]
push edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor eax, eax
xor edx, edx
mov dword [ebp - 0x14], edx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
sub eax, 0xf
je 0x1002e0c4
dec eax
je 0x1002e06a
sub eax, 8
je 0x1002dfe3
sub eax, 0x36
je 0x1002df73
sub eax, 0xc2
je 0x1002dca8
dec eax
jne 0x1002e0dd
movzx eax, word [ebp + 0x10]
dec eax
je 0x1002dc05
dec eax
je 0x1002e06a
sub eax, 7
je 0x1002dbea
sub eax, 0x2b5
je 0x1002dbac
dec eax
dec eax
je 0x1002db14
sub eax, 0x35
jne 0x1002e0dd
xor edi, edi
lea ecx, [ebx + 0x1c]
inc edi
cmp dword [ecx + 8], edx
je 0x1002dae9
push dword [ecx + 8]
call fcn.10012c43
call fcn.10059698
test eax, eax
jne 0x1002db0a
cmp dword [0x100ea384], edi
jne 0x1002db0a
lea ecx, [ebx + 0x28]
cmp dword [ecx + 8], eax
je 0x1002db0a
push dword [ecx + 8]
call fcn.10012c43
push 0x2f5
jmp 0x1002e0b1
push edx
push edx
push 0xf0
push 0x2c0
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea edi, [eax - 1]
neg edi
sbb edi, edi
neg edi
push edi
push 0x2f5
push esi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
lea ecx, [ebx + 0x1c]
push edi
call fcn.100606ec
call fcn.10059698
xor edi, edi
inc edi
test eax, eax
jne 0x1002db76
cmp dword [0x100ea384], edi
jne 0x1002db76
push dword [ebp - 0x1c]
lea ecx, [ebx + 0x28]
call fcn.100606ec
cmp dword [ebp - 0x1c], 0
je 0x1002db9a
push esi
mov ecx, ebx
call fcn.1002e0e4
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10075551
leave
ret 0x10
push edi
push edi
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x1002db84
xor edi, edi
lea ecx, [ebx + 0x1c]
inc edi
cmp dword [ecx + 8], edx
je 0x1002dbbf
push dword [ecx + 8]
call fcn.10012c43
call fcn.10059698
test eax, eax
jne 0x1002dbe0
cmp dword [0x100ea384], edi
jne 0x1002dbe0
lea ecx, [ebx + 0x28]
cmp dword [ecx + 8], eax
je 0x1002dbe0
push dword [ecx + 8]
call fcn.10012c43
push 0x2be
jmp 0x1002e0b1
push 0x100a77e8
push 0x100a77a0
push 0x68
push edx
push esi
call fcn.1005bfe1
add esp, 0x14
jmp 0x1002dfdb
push edx
push edx
push 0xf0
push 0x2c0
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
inc edi
lea ecx, [ebx + 0x1c]
cmp eax, edi
jne 0x1002dc62
cmp dword [ecx + 8], 0
je 0x1002dc37
push dword [ecx + 8]
call fcn.10012c43
call fcn.10059698
test eax, eax
jne 0x1002dc58
cmp dword [0x100ea384], edi
jne 0x1002dc58
lea ecx, [ebx + 0x28]
cmp dword [ecx + 8], eax
je 0x1002dc58
push dword [ecx + 8]
call fcn.10012c43
push 0x2c0
jmp 0x1002e0b1
cmp dword [ebx + 0x18], 0
je 0x1002dc6b
lea ecx, [ebx + 0x28]
call fcn.1006032c
lea ecx, [ebx + 0x1c]
cmp dword [ecx + 8], 0
je 0x1002dc81
push dword [ecx + 8]
call fcn.10012c43
call fcn.10059698
test eax, eax
jne 0x1002dca2
cmp dword [0x100ea384], edi
jne 0x1002dca2
lea ecx, [ebx + 0x28]
cmp dword [ecx + 8], eax
je 0x1002dca2
push dword [ecx + 8]
call fcn.10012c43
push edi
jmp 0x1002e0b1
push 0x100a7b48
push str.CMLPrinter2::DlgProc
push 4
call fcn.10009c3c
push 0x1f7
push 0x35
lea eax, [ebx + 4]
push eax
lea eax, [ebx + 8]
push eax
lea eax, [ebx + 0xc]
push eax
push esi
call fcn.10059f2d
add esp, 0x24
mov edi, 0x100ecd90
push 0x400
push edi
push 0x8e32
push dword [0x100eea28]
call dword [sym.imp.USER32.dll_LoadStringW]
push edi
push 0x2d8
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x37a
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x400
push 0x100ecd90
push 0xabea
mov dword [ebx + 0x14], eax
push dword [0x100eea28]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x38]
push eax
push 0
push 0x133e
push dword [ebx + 0x14]
mov dword [ebp - 0x2c], 0x100ecd90
mov dword [ebp - 0x38], edi
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebx + 0x1c]
push 0
call fcn.1006031f
push esi
lea ecx, [ebx + 0x1c]
push 0xb7
mov eax, dword [ecx]
push dword [0x100eea28]
call dword [eax]
call fcn.100596b8
test eax, eax
je 0x1002dde6
cmp dword [0x100ea384], 0
je 0x1002dde6
push 0x400
mov esi, 0x100ecd90
push esi
push 0xabeb
push dword [0x100eea28]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x38]
push eax
push edi
push 0x133e
push dword [ebx + 0x14]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x38], edi
call dword [sym.imp.USER32.dll_SendMessageW]
lea esi, [ebx + 0x28]
push edi
mov ecx, esi
call fcn.1006031f
push dword [ebp - 0x1c]
mov eax, dword [esi]
push 0xb7
push dword [0x100eea28]
mov ecx, esi
call dword [eax]
mov esi, dword [ebp - 0x1c]
call fcn.100596b8
test eax, eax
je 0x1002de46
cmp dword [0x100ea384], 0
je 0x1002de46
cmp dword [0x100ed9c0], 2
jne 0x1002de46
cmp dword [ebx + 0x24], 0
je 0x1002de12
push 0
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebx + 0x28]
cmp dword [eax + 8], 0
je 0x1002de29
push 5
push dword [eax + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebx + 0x28]
mov ecx, eax
call fcn.1002e45d
push 0
push edi
push 0x130c
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push edi
jmp 0x1002de8a
lea eax, [ebx + 0x1c]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1002de5c
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebx + 0x1c]
mov ecx, eax
call fcn.1002e45d
cmp dword [ebx + 0x30], 0
je 0x1002de74
push 0
push dword [ebx + 0x30]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x130c
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1330
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov ecx, ebx
call fcn.1002e0e4
cmp dword [0x100ee9b8], 0
push 0x400
push 0x100ecd90
je 0x1002deba
push 0x916a
jmp 0x1002debf
push 0x9169
push dword [0x100eea28]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x100ecd90
push 9
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
xor ebx, ebx
mov ecx, 0x100ee070
mov dword [ebp - 0x18], ebx
call fcn.10012e1e
test eax, eax
jne 0x1002df2b
mov ecx, 0x100ee070
call fcn.1002e175
cmp eax, edi
jne 0x1002df2b
push 0x2be
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x1002df2b
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1002df2b
push ebx
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push edi
call ebx
jmp 0x1002df31
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x100ee9b8], 0xa
jne 0x1002db84
push 9
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x1002db84
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1002db84
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push esi
call ebx
jmp 0x1002db84
mov eax, dword [ebp + 0x14]
cmp dword [eax + 8], 0xfffffdd9
jne 0x1002dfdb
mov ecx, dword [ebx + 0x14]
cmp dword [eax], ecx
jne 0x1002dfdb
push edx
push edx
push 0x130b
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebx + 0x18], eax
test eax, eax
jne 0x1002dfb9
cmp dword [ebx + 0x30], eax
je 0x1002dfac
push eax
push dword [ebx + 0x30]
call edi
cmp dword [ebx + 0x24], 0
je 0x1002dfd3
push 5
push dword [ebx + 0x24]
jmp 0x1002dfd1
cmp dword [ebx + 0x24], 0
je 0x1002dfc6
push 0
push dword [ebx + 0x24]
call edi
cmp dword [ebx + 0x30], 0
je 0x1002dfd3
push 5
push dword [ebx + 0x30]
call edi
push esi
mov ecx, ebx
call fcn.1002e0e4
xor edi, edi
inc edi
jmp 0x1002db87
xor edi, edi
inc edi
cmp dword [ebp + 0x10], edi
jne 0x1002e0dd
cmp dword [ebx + 0x10], edx
jne 0x1002e0dd
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x14]
push eax
push 0
push 0x1328
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x1c]
call fcn.1002e42d
lea ecx, [ebx + 0x1c]
call fcn.1002e479
call fcn.10059698
test eax, eax
jne 0x1002e062
cmp dword [0x100ea384], edi
jne 0x1002e062
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x28]
call fcn.1002e42d
lea ecx, [ebx + 0x28]
call fcn.1002e479
mov dword [ebx + 0x10], edi
jmp 0x1002db84
push esi
call fcn.10058c09
xor edi, edi
inc edi
pop ecx
cmp eax, 3
jne 0x1002db87
lea ecx, [ebx + 0x1c]
cmp dword [ecx + 8], 0
je 0x1002e08e
push dword [ecx + 8]
call fcn.10012c43
call fcn.10059698
test eax, eax
jne 0x1002e0af
cmp dword [0x100ea384], edi
jne 0x1002e0af
lea ecx, [ebx + 0x28]
cmp dword [ecx + 8], eax
je 0x1002e0af
push dword [ecx + 8]
call fcn.10012c43
push 2
push esi
call dword [sym.imp.USER32.dll_EndDialog]
push esi
call fcn.1005b899
pop ecx
jmp 0x1002db87
push 0x1f7
push dword [ebx + 4]
push dword [ebx + 8]
push esi
call fcn.1005a054
add esp, 0x10
jmp 0x1002db84
mov edi, edx
jmp 0x1002db87