Function at 0x4dcd90
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x250
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x14]
push edi
lea edx, [esp + 0x1c]
xor esi, esi
push ecx
push edx
push esi
push esi
push 2
push esi
mov dword [eax + 0x24c], esi
push 6
xor edi, edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call sub.WINSPOOL.DRV_EnumPrintersA
mov ebp, dword [esp + 0x264]
cmp eax, esi
jne 0x4dce12
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4dd030
mov eax, dword [esp + 0x1c]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
push edi
push 2
push esi
push 6
call sub.WINSPOOL.DRV_EnumPrintersA
cmp eax, esi
je 0x4dd030
lea ecx, [esp + 0x15c]
push 0x104
push ecx
mov ecx, dword [ebx + 4]
mov dword [ebx + 0x18], edi
call fcn.004d6eb0
mov edx, dword [ebx + 4]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
add edx, 0x143
lea eax, [esp + 0x58]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0xa5a
push ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], 0xffffffff
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x10], eax
jbe 0x4dcfef
mov dword [esp + 0x14], eax
mov ecx, dword [ebx + 0x18]
mov edx, dword [esp + 0x14]
lea edi, [esp + 0x15c]
mov ecx, dword [edx + ecx + 4]
mov esi, ecx
mov dl, byte [edi]
mov al, dl
cmp dl, byte [esi]
jne 0x4dceb6
test al, al
je 0x4dceb2
mov dl, byte [edi + 1]
mov al, dl
cmp dl, byte [esi + 1]
jne 0x4dceb6
add edi, 2
add esi, 2
test al, al
jne 0x4dce92
xor eax, eax
jmp 0x4dcebb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4dcec7
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], eax
mov edi, ecx
lea esi, [esp + 0x58]
mov dl, byte [esi]
mov al, dl
cmp dl, byte [edi]
jne 0x4dcef1
test al, al
je 0x4dceed
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x4dcef1
add esi, 2
add edi, 2
test al, al
jne 0x4dcecd
xor eax, eax
jmp 0x4dcef6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4dcf02
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
push ecx
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push 0x14a
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
add edx, 0x54
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jb 0x4dce7e
mov esi, dword [esp + 0x24]
test esi, esi
jl 0x4dcfeb
lea eax, [esi*8]
lea edx, [esp + 0x14]
sub eax, esi
push 0
push edx
lea edi, [eax + eax*2]
mov eax, dword [ebx + 0x18]
shl edi, 2
mov dword [esp + 0x18], edi
mov ecx, dword [edi + eax + 4]
push ecx
call sub.WINSPOOL.DRV_OpenPrinterA
test eax, eax
je 0x4dcfe4
mov edx, dword [ebx + 0x18]
mov ecx, dword [esp + 0x14]
push 0
push 0
mov eax, dword [edi + edx + 4]
push 0
push eax
push ecx
push 0
call sub.WINSPOOL.DRV_DocumentPropertiesA
test eax, eax
jbe 0x4dcfda
mov edx, dword [ebx + 4]
cmp eax, dword [edx + 0x188]
jne 0x4dcfda
mov esi, dword [edx + 0x184]
mov edx, dword [ebx + 0x18]
mov ecx, eax
push 0xa
mov edi, dword [edi + edx + 0x1c]
mov edx, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
lea eax, [edx + ecx]
mov ecx, dword [edx + ecx + 0x1c]
mov eax, dword [eax + 4]
push ecx
push ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
push 0
call sub.WINSPOOL.DRV_DocumentPropertiesA
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push edx
call sub.WINSPOOL.DRV_ClosePrinter
mov eax, dword [ebx + 0x18]
add eax, edi
jmp 0x4dd001
mov esi, dword [esp + 0x28]
mov edx, dword [ebx + 0x18]
lea eax, [esi*8]
sub eax, esi
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*4]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0x1c]
push ecx
mov ecx, dword [ebx + 4]
push edx
call fcn.004d5310
mov eax, dword [esp + 0x20]
push 0
push esi
push 0x14e
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, ebx
mov dword [ebx + 0x14], esi
call fcn.004dd3a0
xor esi, esi
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push esi
push 1
push 0xf1
push 0xa76
push ebp
call edi
lea ecx, [esp + 0x4c]
push 0xa
push ecx
push 1
call dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0xc
lea edx, [esp + 0x4c]
push edx
push esi
push 0xc
push 0xa5c
push ebp
call edi
lea eax, [esp + 0x4c]
push eax
push esi
push 0xc
push 0xa5e
push ebp
call edi
push esi
push 0xa5e
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
push 0
push 0xa5c
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 0
push 0x442
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 0xa04b0
push 0
push 0x465
push 0xa0b
push ebp
call edi
mov ecx, dword [ebx + 4]
xor edx, edx
mov dx, word [ecx + 0x68]
push edx
push 0
push 0x467
push 0xa0b
push ebp
call edi
mov eax, dword [ebx + 4]
push 0
movsx ecx, word [eax + 0x68]
push ecx
push 0xa09
push ebp
call dword [sym.imp.USER32.dll_SetDlgItemInt]
push 3
push 0
push 0x465
push 0x9f4
push ebp
call edi
mov edx, dword [ebx + 4]
fld dword [edx + 0x70]
call sub.MSVCRT.dll__ftol
and eax, 0xffff
push eax
push 0
push 0x467
push 0x9f4
push ebp
call edi
mov eax, dword [ebx + 4]
push 0x40400000
push 0x3dcccccd
mov ecx, dword [eax + 0x70]
push ecx
push 0x9f5
push 0x9f4
push ebp
mov ecx, ebx
call fcn.004dd750
mov edx, dword [ebx + 4]
push 0
mov al, byte [edx + 0x6d]
test al, al
je 0x4dd188
push 1
push 0xf1
push 0x9f3
push ebp
call edi
push 1
push 0x9f5
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 1
push 0x9f4
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 1
jmp 0x4dd1aa
push 0x9f5
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 0
push 0x9f4
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 0
push 0xa43
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x260]
test ecx, ecx
je 0x4dd210
push 0
push 0x9f3
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 0
push 0x9f5
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 0
push 0xa43
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 0
push 0x9f4
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
mov edx, dword [ebx + 4]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x2c]
push 0x20
mov eax, dword [edx + 0x30]
push ecx
push 0x49d
push eax
call esi
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0x14a
push 0x28d
push ebp
call edi
mov eax, dword [ebx + 4]
lea edx, [esp + 0x2c]
push 0x20
push edx
mov ecx, dword [eax + 0x30]
push 0x49e
push ecx
call esi
lea edx, [esp + 0x2c]
push edx
push 1
push 0x14a
push 0x28d
push ebp
call edi
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x2c]
push 0x20
push eax
mov edx, dword [ecx + 0x30]
push 0x49f
push edx
call esi
lea eax, [esp + 0x2c]
push eax
push 2
push 0x14a
push 0x28d
push ebp
call edi
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x2c]
push 0x20
push ecx
mov eax, dword [edx + 0x30]
push 0x4a0
push eax
call esi
lea ecx, [esp + 0x2c]
push ecx
push 3
push 0x14a
push 0x28d
push ebp
call edi
mov eax, dword [ebx + 4]
lea edx, [esp + 0x2c]
push 0x20
push edx
mov ecx, dword [eax + 0x30]
push 0x4a1
push ecx
call esi
lea edx, [esp + 0x2c]
push edx
push 4
push 0x14a
push 0x28d
push ebp
call edi
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x2c]
push 0x20
push eax
push 0x4a2
mov edx, dword [ecx + 0x30]
push edx
call esi
lea eax, [esp + 0x2c]
push eax
push 5
push 0x14a
push 0x28d
push ebp
call edi
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x2c]
push 0x20
push ecx
mov eax, dword [edx + 0x30]
push 0x4a3
push eax
call esi
lea ecx, [esp + 0x2c]
push ecx
push 6
push 0x14a
push 0x28d
push ebp
call edi
mov eax, dword [ebx + 4]
lea edx, [esp + 0x2c]
push 0x20
push edx
mov ecx, dword [eax + 0x30]
push 0x4a4
push ecx
call esi
lea edx, [esp + 0x2c]
push edx
push 7
push 0x14a
push 0x28d
push ebp
call edi
push 0
push 0
push 0x14e
push 0x28d
push ebp
call edi
push 0
push 0
push 0x402
push ebp
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x250
ret 4