Function at 0x4d8b00
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x48
push ebx
push esi
mov esi, dword [esp + 0x54]
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0xa12
mov ebx, ecx
push esi
call edi
test eax, eax
mov dword [esp + 0x58], eax
je 0x4d8cc5
lea ecx, [esp + 0x1c]
push ebp
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [ebx]
sub edi, ebp
mov ebp, dword [esp + 0x2c]
sub ebp, edx
mov edx, dword [eax + 0x1d4]
mov eax, dword [eax + 0x1d8]
push edx
push eax
push edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp eax, ebp
jle 0x4d8b85
mov eax, dword [ebx]
mov ecx, dword [eax + 0x1d8]
mov edx, dword [eax + 0x1d4]
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x10], eax
mov edi, eax
jmp 0x4d8b87
mov ebp, eax
lea eax, [esp + 0x20]
push 2
push eax
push esi
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
sub eax, edi
mov ecx, dword [esp + 0x2c]
add eax, edx
lea edi, [esp + 0x30]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
sub eax, ebp
add eax, ecx
mov ecx, 0xa
cdq
sub eax, edx
mov edx, dword [ebx]
sar eax, 1
mov dword [esp + 0x1c], eax
xor eax, eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x54], str.PrintPreviewWndClass
mov eax, dword [edx + 0x30]
push ecx
push str.PrintPreviewWndClass
push eax
call dword [sym.imp.USER32.dll_GetClassInfoA]
test eax, eax
jne 0x4d8c24
mov ecx, dword [ebx]
mov dword [esp + 0x34], 0x4d7ce0
mov dword [esp + 0x3c], 4
push 0x7f00
mov edx, dword [ecx + 0x30]
push eax
mov dword [esp + 0x48], edx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
mov ecx, dword [esp + 0x5c]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ecx
call edi
mov edx, dword [ebx]
mov ecx, dword [esp + 0x10]
push ebx
mov eax, dword [edx + 0x30]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push 0xaa9
push esi
push ebp
push ecx
mov ecx, dword [esp + 0x6c]
push edx
push eax
push 0x50000000
push str.Print_preview
push ecx
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x10001
push 0
push 0x465
push 0xa0f
push esi
mov dword [ebx + 8], eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
push 0xa21
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call edi
push 0
push 0
push 0x402
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 1
push 0xa0d
push esi
call dword [sym.imp.USER32.dll_SetDlgItemInt]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x48
ret 4
lea edx, [esp + 0x1c]
push edx
push 0xa10
push esi
call edi
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
push eax
call edi
lea eax, [esp + 0x1c]
push 2
push eax
push esi
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 5
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push esi
lea ebx, [ecx + eax*2]
call edi
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
sub eax, edx
push 6
push eax
push ebx
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x48
ret 4