Function at 0x471b60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x580461
mov eax, dword fs:[0]
push eax
sub esp, 0x568
mov eax, dword [0x5ecfcc]
xor eax, esp
mov dword [esp + 0x530], eax
push ebx
push esi
push edi
mov eax, dword [0x5ecfcc]
xor eax, esp
push eax
lea eax, [esp + 0x578]
mov dword fs:[0], eax
cmp dword [0x5ee7c8], 0
mov edi, dword [ebp + 8]
je 0x4720f6
mov eax, dword [0x5ee7e4]
xor ecx, ecx
test eax, eax
setne cl
test cl, cl
je 0x4720f6
cmp dword [eax + 0x350], 3
jg 0x4720f6
fld qword [edi + 0x30]
mov ecx, dword [eax + 0x394]
fld qword [ebp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
fmul st(1), st(0)
fxch st(1)
fstp qword [esp + 0x64]
fmul qword [edi + 0x38]
fstp qword [esp + 0x54]
call edx
fld1
push str.PrintCfgplot
fstp qword [esp + 0x40]
mov esi, eax
fldz
lea eax, [esp + 0x24]
push 0x5ef49c
fstp dword [esp + 0x50]
push eax
mov byte [esp + 0x40], 1
mov byte [esp + 0x41], 0
mov byte [esp + 0x42], 1
mov byte [esp + 0x43], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0xffffff
mov dword [esp + 0x5c], 0xffffffff
call fcn.00403710
mov eax, dword [eax]
lea ecx, [esp + 0x40]
push ecx
push eax
call dword [sym.imp.GsUI.dll_loadPlotStyleDialogFromRegistry]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x471c72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0xac]
lea eax, [esp + 0x78]
push eax
push edi
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0xac]
lea ecx, [esp + 0x80]
push ecx
add edi, 0x18
push edi
mov ecx, esi
call edx
mov eax, dword [0x5ee7e4]
mov ecx, dword [eax + 0x394]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xb4]
call eax
fld qword [esp + 0x54]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov edx, dword [esi]
mov edx, dword [edx + 0xe8]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x74]
fstp qword [esp]
push eax
mov eax, dword [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x90]
push eax
push ecx
mov ecx, esi
call edx
mov ecx, dword [sym.imp.GsUI.dll_class_GsUI::PrintPenSet_GsUI::g_printPenSet]
call dword [sym.imp.GsUI.dll_public:_class_CPrintDialog____thiscall_GsUI::PrintPenSet::getPrintSetDlg_void_]
mov ecx, eax
call fcn.0054ad61
mov edi, eax
test edi, edi
jne 0x471d34
mov eax, dword [0x5ee7e4]
mov ecx, dword [eax + 0x394]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xb8]
call eax
jmp 0x4720f6
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push edi
call ebx
cmp byte [esp + 0x34], 0
movzx eax, ax
mov dword [esp + 0x28], eax
je 0x471d75
cmp byte [esp + 0x35], 0
je 0x471d6f
movsx ecx, ax
push ecx
call dword [sym.imp.gsio.dll_CommonPenSets_SetDPI]
mov ecx, dword [sym.imp.GsUI.dll_class_GsUI::PrintPenSet_GsUI::g_printPenSet]
add esp, 4
call dword [sym.imp.GsUI.dll_public:_void___thiscall_GsUI::PrintPenSet::UpdatePenSetsToGsIO_void_]
jmp 0x471d75
call dword [sym.imp.gsio.dll_CommonPenSets_Reset]
push 0x70
push edi
call ebx
push 0x71
push edi
call ebx
push 8
push edi
mov dword [esp + 0x28], eax
call ebx
push 0xa
push edi
call ebx
lea ecx, [esp + 0x9c]
call fcn.00431950
fld1
mov edx, dword [esp + 0x44]
fstp qword [esp + 0xcc]
push edx
lea ecx, [esp + 0xa0]
mov dword [esp + 0x584], 0
call dword [sym.imp.gsio.dll_public:_void___thiscall_CDwgExport::SetColorType_int_]
fild dword [ebp + 0x18]
mov bx, word [ebp + 0x20]
movsx eax, bx
fstp qword [esp + 0xec]
mov dword [esp + 0xfc], eax
fild dword [ebp + 0x1c]
fstp qword [esp + 0xf4]
call fcn.005322b0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x471dfb
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
lea eax, [esp + 0x13c]
push eax
mov ecx, esi
mov byte [esp + 0x584], 1
call edx
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x70]
push ecx
call fcn.00430c40
mov edx, dword [eax]
push edx
lea eax, [esp + 0x30]
push str.Acme_CADSee____s
push eax
mov byte [esp + 0x594], 2
call fcn.00407040
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0x580], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x471e7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x88]
xor eax, eax
push edx
push edi
mov dword [esp + 0x90], 0x14
mov dword [esp + 0xa0], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x94], ecx
call dword [sym.imp.GDI32.dll_StartDocA]
test eax, eax
jle 0x472092
push edi
call dword [sym.imp.GDI32.dll_StartPage]
test eax, eax
jle 0x472092
movsx eax, word [esp + 0x28]
push eax
lea ecx, [esp + 0xa0]
call dword [sym.imp.gsio.dll_public:_void___thiscall_CDwgExport::SetDpi_int_]
mov edx, dword [esi]
mov eax, dword [edx + 0x8c]
mov ecx, esi
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0x88]
movzx ecx, ax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x60], ecx
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x58]
lea ecx, [esp + 0x9c]
push ecx
mov ecx, esi
call edx
push 8
push edi
call dword [sym.imp.GDI32.dll_SetMapMode]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetWindowExtEx]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push ecx
neg edx
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
cmp bx, 1
je 0x471f61
cmp bx, 3
je 0x471f61
fld qword [esp + 0x54]
lea ecx, [esp + 0x70]
push ecx
jmp 0x471f6a
fld qword [esp + 0x64]
lea edx, [esp + 0x70]
push edx
call fcn.0055b6c0
add eax, dword [esp + 0x24]
push eax
push 0
push edi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
lea ecx, [esp + 0xb4]
call fcn.0046ef90
fld qword [esp + 0x54]
push esi
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0xb0]
fld qword [esp + 0x78]
mov dword [esp + 0x114], edi
fstp qword [esp]
push 0
push 0
push 0
call fcn.00431a00
mov eax, dword [esi]
mov edx, dword [eax + 0x84]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x94]
mov ecx, esi
call edx
test eax, eax
jle 0x471ffa
cmp byte [esp + 0x36], 0
je 0x471ffa
fld1
jmp 0x471ffe
fld qword [esp + 0x3c]
mov ecx, dword [esp + 0x37]
mov edx, dword [esp + 0x35]
mov eax, dword [esi]
push 0
push 1
sub esp, 8
fstp qword [esp]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [eax + 0x5c]
push ecx
push 0
push 0
push 0
push 0
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x58]
push 0
mov ecx, esi
call edx
lea ecx, [esp + 0x9c]
call fcn.00431a60
mov eax, dword [0x5ee7e4]
mov ecx, dword [eax + 0x394]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xb8]
call eax
push edi
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jle 0x47206f
push edi
call dword [sym.imp.GDI32.dll_EndDoc]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esi]
mov eax, dword [esp + 0x60]
mov edx, dword [edx + 0x88]
push eax
mov ecx, esi
call edx
lea ecx, [esp + 0x24]
call fcn.00402d80
jmp 0x4720df
mov eax, dword [0x5ee7e4]
mov ecx, dword [eax + 0x394]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xb8]
call eax
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x580], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4720df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x9c]
mov dword [esp + 0x580], 0xffffffff
call fcn.004319f0
mov ecx, dword [esp + 0x578]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x530]
xor ecx, esp
call fcn.0055953b
mov esp, ebp
pop ebp
ret 0x24