Function at 0x6906ded0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
sub esp, 0x17c
mov ebx, dword [edx + 4]
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x138], edx
mov esi, dword [sym.imp.user32.dll_LoadImageA]
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
and eax, 0x40
mov dword [esp + 0xc], 0
cmp eax, 1
mov eax, dword [0x6908d004]
mov dword [esp + 8], 1
sbb ecx, ecx
mov dword [esp + 4], 0x6907d404
and ecx, 3
mov dword [esp], eax
add ecx, 0x470
mov dword [ebp - 0x130], ecx
call esi
mov dword [edi + 0x14], eax
mov eax, dword [0x6908d004]
sub esp, 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x6907d411
mov dword [esp], eax
call esi
mov esi, dword [sym.imp.user32.dll_LoadIconA]
mov dword [edi + 0x18], eax
mov eax, dword [0x6908d004]
sub esp, 0x18
mov dword [esp + 4], 0x6907d420
mov dword [esp], eax
call esi
mov dword [edi + 0x1c], eax
mov eax, dword [0x6908d004]
sub esp, 8
mov dword [esp + 4], 0x6907d42e
mov dword [esp], eax
call esi
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x18]
sub esp, 8
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x12c]
mov dword [esp + 8], 0x172
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_SendDlgItemMessageA]
mov dword [esp + 4], 0x43e
mov dword [ebp - 0x134], eax
call eax
mov eax, dword [edi + 0x14]
sub esp, 0x14
test eax, eax
je 0x6906e010
mov eax, dword [edi + 0x18]
test eax, eax
je 0x6906e010
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x6906e010
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x6906e043
lea esi, [esi]
nop
test byte [0x690760c0], 2
jne 0x6906e580
mov dword [esp], 7
call fcn.69041890
mov eax, dword [ebp - 0x12c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_EndDialog]
sub esp, 8
test byte [ebx + 0x15], 8
jne 0x6906e470
mov eax, dword [ebp - 0x138]
mov dword [eax + 0x10], 0
mov esi, dword [sym.imp.user32.dll_GetDlgItem]
test byte [ebx + 0x14], 0x40
je 0x6906e4a8
movzx edx, word [ebx + 0x1e]
movzx eax, word [ebx + 0x1c]
cmp dx, ax
jae 0x6906e3a0
mov word [ebx + 0x1e], ax
movzx ecx, word [ebx + 0x1a]
or dword [ebx + 0x14], 8
mov edx, eax
cmp ax, cx
jbe 0x6906e098
mov word [ebx + 0x1a], ax
mov ecx, eax
lea esi, [esi]
cmp dx, cx
jae 0x6906e0a1
mov word [ebx + 0x1a], dx
movzx ecx, word [ebx + 0x18]
cmp ax, cx
jbe 0x6906e0b0
mov word [ebx + 0x18], ax
mov ecx, eax
cmp dx, cx
jb 0x6906e3c0
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 0x12c]
mov dword [esp + 4], eax
mov dword [esp], edx
call esi
sub esp, 8
test eax, eax
je 0x6906e530
mov eax, dword [ebx + 0xc]
mov esi, dword [sym.imp.kernel32.dll_GlobalLock]
mov dword [esp], eax
call esi
mov dword [ebp - 0x148], eax
mov edi, eax
mov eax, dword [ebx + 8]
sub esp, 4
mov dword [esp], eax
call esi
mov dword [ebp - 0x144], eax
sub esp, 4
test edi, edi
je 0x6906e5d0
movzx eax, word [edi + 2]
lea edx, [ebp - 0x128]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edx
mov ecx, eax
mov dword [esp + 0xc], 0
add ecx, edi
mov dword [esp + 8], 2
mov dword [ebp - 0x140], ecx
lea ecx, [ebp - 0x124]
mov dword [esp + 0x18], ecx
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.winspool.drv_EnumPrintersA
mov edi, dword [ebp - 0x128]
mov ecx, dword [sym.imp.ucrtbase.dll_malloc]
sub esp, 0x1c
mov dword [esp], edi
mov dword [ebp - 0x14c], ecx
call ecx
lea ecx, [ebp - 0x124]
lea edx, [ebp - 0x128]
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ecx
mov esi, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], 2
mov dword [ebp - 0x13c], eax
call sub.winspool.drv_EnumPrintersA
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 0x12c]
sub esp, 0x1c
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x134]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x14b
mov dword [esp], edx
call eax
mov edi, dword [ebp - 0x124]
sub esp, 0x14
test edi, edi
je 0x6906e3c9
mov eax, dword [ebp - 0x13c]
xor esi, esi
mov dword [ebp - 0x150], ebx
mov ebx, esi
lea edi, [eax + 4]
mov esi, edi
mov edi, dword [ebp - 0x134]
lea esi, [esi]
mov eax, dword [esi]
mov dword [esp + 0xc], 0
add ebx, 1
add esi, 0x54
mov dword [esp + 8], 0x143
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x130]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x12c]
mov dword [esp], eax
call edi
sub esp, 0x14
cmp dword [ebp - 0x124], ebx
ja 0x6906e218
mov ebx, dword [ebp - 0x150]
mov eax, dword [ebp - 0x13c]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x140]
test ecx, ecx
jne 0x6906e3d8
mov dword [ebp - 0x120], 0x104
lea eax, [ebp - 0x120]
lea edi, [ebp - 0x11c]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.winspool.drv_GetDefaultPrinterA
sub esp, 8
test eax, eax
je 0x6906e311
mov eax, dword [ebp - 0x130]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x12c]
mov dword [esp + 8], 0x158
mov dword [esp], eax
mov eax, dword [ebp - 0x134]
call eax
sub esp, 0x14
mov edi, eax
cmp eax, 0xffffffff
je 0x6906e6e0
mov eax, dword [ebp - 0x130]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x12c]
mov dword [esp + 8], 0x14e
mov dword [esp], eax
mov eax, dword [ebp - 0x134]
call eax
sub esp, 0x14
mov edx, dword [ebp - 0x144]
test edx, edx
je 0x6906e32a
mov eax, dword [ebx + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GlobalUnlock]
sub esp, 4
mov eax, dword [ebp - 0x148]
test eax, eax
je 0x6906e343
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GlobalUnlock]
sub esp, 4
mov dword [esp], 0x100
mov eax, dword [ebp - 0x14c]
call eax
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], eax
mov ebx, eax
mov eax, dword [ebp - 0x130]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x12c]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItemTextA]
sub esp, 0x10
test eax, eax
jne 0x6906e5b0
mov dword [esp], ebx
call esi
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
je 0x6906e07f
movzx ecx, word [ebx + 0x1a]
cmp ax, cx
jbe 0x6906e098
mov word [ebx + 0x1a], ax
mov ecx, eax
jmp 0x6906e098
mov word [ebx + 0x18], dx
jmp 0x6906e0b9
mov dword [esp], esi
mov esi, dword [sym.imp.ucrtbase.dll_free]
call esi
lea esi, [esi]
mov eax, dword [ebp - 0x140]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0x158
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x130]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x12c]
mov dword [esp], eax
mov eax, dword [ebp - 0x134]
call eax
sub esp, 0x14
mov edi, eax
cmp eax, 0xffffffff
jne 0x6906e2df
mov dword [ebp - 0x120], 0x104
test byte [0x690760c0], 4
je 0x6906e283
mov eax, dword [ebp - 0x140]
call fcn.6906aa20
mov dword [esp + 0xc], 0x6907d39c
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.PRINTDLG_SetUpPrinterListComboA
mov dword [esp + 4], 0x690760c0
mov dword [esp], 2
call fcn.6906acc0
jmp 0x6906e283
mov dword [esp], 0x6907d457
call dword [sym.imp.user32.dll_RegisterWindowMessageA]
mov edx, dword [ebp - 0x138]
sub esp, 4
mov dword [edx + 0x10], eax
test eax, eax
jne 0x6906e05a
mov dword [esp], 0xc
call fcn.69041890
xor eax, eax
jmp 0x6906e38e
mov edi, dword [ebp - 0x12c]
mov dword [esp + 4], 0x482
mov dword [esp], edi
call esi
sub esp, 8
mov dword [esp + 0x20], eax
mov eax, dword [0x6908d004]
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x270f
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x270f
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x508000a6
call dword [sym.imp.comctl32.dll_CreateUpDownControl]
mov edx, dword [ebp - 0x138]
sub esp, 0x30
mov dword [edx + 0x24], eax
jmp 0x6906e06a
lea eax, [ebp - 0x120]
lea ebx, [ebp - 0x11c]
mov dword [ebp - 0x120], 0xc8
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.winspool.drv_GetDefaultPrinterA
sub esp, 8
test eax, eax
jne 0x6906e6c0
test byte [0x690760c0], 1
jne 0x6906e720
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.no_icon_in_resource_file_n
mov dword [esp + 8], str.PRINTDLG_WMInitDialog
mov dword [esp + 4], 0x690760c0
mov dword [esp], 1
call fcn.6906acc0
jmp 0x6906e01d
mov ecx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x12c]
mov edx, ebx
call fcn.6906c150
jmp 0x6906e384
lea edx, [ebp - 0x124]
lea edi, [ebp - 0x128]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.winspool.drv_EnumPrintersA
mov esi, dword [ebp - 0x128]
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
sub esp, 0x1c
mov dword [esp], esi
mov dword [ebp - 0x14c], eax
call eax
lea edx, [ebp - 0x124]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], 2
mov dword [ebp - 0x13c], eax
call sub.winspool.drv_EnumPrintersA
mov eax, dword [ebp - 0x130]
sub esp, 0x1c
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x12c]
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x134]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x14b
call eax
mov eax, dword [ebp - 0x144]
mov esi, dword [ebp - 0x124]
sub esp, 0x14
mov dword [ebp - 0x140], eax
test esi, esi
jne 0x6906e1fa
jmp 0x6906e25a
mov ecx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x12c]
mov edx, ebx
call fcn.6906c150
jmp 0x6906e56a
test byte [0x690760c0], 1
je 0x6906e2df
mov dword [esp + 0xc], str.Cant_find_default_printer_in_printer_list_n
mov dword [esp + 8], str.PRINTDLG_SetUpPrinterListComboA
mov dword [esp + 4], 0x690760c0
mov dword [esp], 0
call fcn.6906acc0
jmp 0x6906e2df
mov dword [esp + 0xc], str.No_default_printer_found__expect_problems__n
mov dword [esp + 8], str.PRINTDLG_WMInitDialog
mov dword [esp + 4], 0x690760c0
mov dword [esp], 0
call fcn.6906acc0
jmp 0x6906e56a