Function at 0x40be30
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48286d
mov eax, dword fs:[0]
push eax
mov eax, 0x4f98
call fcn.00480420
mov eax, dword [0x4c0e0c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4f38], ecx
xor eax, eax
push eax
mov dword [ebp - 0x4ee0], eax
mov dword [ebp - 0x4f28], eax
call fcn.00477270
add esp, 4
lea ecx, [ebp - 0x4ec8]
cmp dword [ebp + 8], 0
mov edi, eax
mov dword [ebp - 0x4f18], edi
je 0x40bea7
push str.CFG_COLOR_CALIBRATION
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov dword [ebp - 4], 0
jmp 0x40beb9
push str.CFG_DENSITY_CURVE
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov dword [ebp - 4], 1
mov eax, dword [edi]
lea ecx, [ebp - 0x4ec8]
push ecx
mov ecx, edi
call dword [eax + 0x20]
test eax, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4ec8]
sete bl
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
test bl, bl
jne 0x40cffc
mov esi, dword [sym.imp.PMCORE.dll_GetCorePref]
call esi
test eax, eax
je 0x40cffc
call esi
lea esi, [eax + 0x10]
test esi, esi
je 0x40cffc
call dword [sym.imp.PMCORE.dll_GetSetupDatabase]
mov dword [ebp - 0x4f30], eax
test eax, eax
je 0x40cffc
push dword [esi + 0x10]
lea ecx, [ebp - 0x4ed4]
call dword [sym.imp.mfc140.dll_Ordinal_310]
cmp dword [ebp + 8], 0
lea ecx, [ebp - 0x4ed4]
mov dword [ebp - 4], 2
je 0x40bf41
push str._temp.nfo
jmp 0x40bf46
push str._temp1.nfo
call dword [sym.imp.mfc140.dll_Ordinal_1696]
push 0x4940f8
lea ecx, [ebp - 0x4ed4]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 0x4ec8], eax
test eax, eax
je 0x40cff0
lea eax, [ebp - 0x4f14]
mov dword [ebp - 0x4ebc], 4
push eax
push 0
mov dword [ebp - 0x4eb8], 0x64
mov dword [ebp - 0x4eb4], 0x4090
call sub.PMResource.dll_PMGetDitherMethod
mov eax, dword [ebp - 0x4f14]
xor ecx, ecx
mov edx, 0x84
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.mfc140.dll_Ordinal_265
mov ebx, eax
lea eax, [ebp - 0x4f14]
push eax
push ebx
mov dword [ebp - 0x4ef0], ebx
call sub.PMResource.dll_PMGetDitherMethod
add esp, 0x14
lea eax, [ebp - 0x4f10]
xor esi, esi
mov dword [ebp - 0x4ecc], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x40c007
cmp dword [ebp - 0x4f10], esi
mov dword [ebp - 0x4f10], 1
jne 0x40c00d
mov dword [ebp - 0x4f10], esi
mov dword [ebp - 0x4ed8], esi
cmp dword [ebp - 0x4f14], esi
jbe 0x40c66f
lea esi, [ebp - 0x4da8]
sub ebx, 0xffffff80
nop dword [eax + eax]
mov eax, dword [ebx]
cmp eax, 0x18
ja case.0x40c03b.2
jmp dword [eax*4 + 0x40d01c]
push str.KFDiffusion
lea ecx, [ebp - 0x4ee4]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [edi]
lea ecx, [ebp - 0x4ee4]
push ecx
mov ecx, edi
mov byte [ebp - 4], 3
call dword [eax + 0x20]
lea ecx, [ebp - 0x4ee4]
jmp 0x40c3a7
push str.ErrorDiffusion
lea ecx, [ebp - 0x4ee8]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [edi]
lea ecx, [ebp - 0x4ee8]
push ecx
mov ecx, edi
mov byte [ebp - 4], 4
call dword [eax + 0x20]
lea ecx, [ebp - 0x4ee8]
jmp 0x40c3a7
push str.ErrorDiffusion
lea ecx, [ebp - 0x4edc]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [edi]
lea ecx, [ebp - 0x4edc]
push ecx
mov ecx, edi
mov byte [ebp - 4], 5
call dword [eax + 0x20]
lea ecx, [ebp - 0x4edc]
jmp 0x40c3a7
push str.ErrorDiffusion
lea ecx, [ebp - 0x4ec4]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [edi]
lea ecx, [ebp - 0x4ec4]
push ecx
mov ecx, edi
mov byte [ebp - 4], 6
call dword [eax + 0x20]
lea ecx, [ebp - 0x4ec4]
jmp 0x40c3a7
push str.ErrorDiffusion_4
lea ecx, [ebp - 0x4ec0]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [edi]
lea ecx, [ebp - 0x4ec0]
push ecx
mov ecx, edi
mov byte [ebp - 4], 7
call dword [eax + 0x20]
lea ecx, [ebp - 0x4ec0]
jmp 0x40c3a7
push str.ErrorDiffusionEx
lea ecx, [ebp - 0x4f34]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [edi]
lea ecx, [ebp - 0x4f34]
push ecx
mov ecx, edi
mov byte [ebp - 4], 8
call dword [eax + 0x20]
lea ecx, [ebp - 0x4f34]
jmp 0x40c3a7
push str.ErrorDiffusionLC
lea ecx, [ebp - 0x4f1c]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [edi]
lea ecx, [ebp - 0x4f1c]
push ecx
mov ecx, edi
mov byte [ebp - 4], 9
call dword [eax + 0x20]
lea ecx, [ebp - 0x4f1c]
jmp 0x40c3a7
push str.ErrorDiffusionVAR
lea ecx, [ebp - 0x4f24]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [edi]
lea ecx, [ebp - 0x4f24]
push ecx
mov ecx, edi
mov byte [ebp - 4], 0xa
call dword [eax + 0x20]
lea ecx, [ebp - 0x4f24]
jmp 0x40c3a7
push str.RandomDiffusion
lea ecx, [ebp - 0x4f20]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [edi]
lea ecx, [ebp - 0x4f20]
push ecx
mov ecx, edi
mov byte [ebp - 4], 0xb
call dword [eax + 0x20]
lea ecx, [ebp - 0x4f20]
jmp 0x40c3a7
push str.LXDiffusion
lea ecx, [ebp - 0x4ef8]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [edi]
lea ecx, [ebp - 0x4ef8]
push ecx
mov ecx, edi
mov byte [ebp - 4], 0xc
call dword [eax + 0x20]
lea ecx, [ebp - 0x4ef8]
jmp 0x40c3a7
push str.AngledScreen
lea ecx, [ebp - 0x4ef4]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [edi]
lea ecx, [ebp - 0x4ef4]
push ecx
mov ecx, edi
mov byte [ebp - 4], 0xd
call dword [eax + 0x20]
lea ecx, [ebp - 0x4ef4]
jmp 0x40c3a7
push str.FMXDiffusion
lea ecx, [ebp - 0x4efc]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [edi]
lea ecx, [ebp - 0x4efc]
push ecx
mov ecx, edi
mov byte [ebp - 4], 0xe
call dword [eax + 0x20]
lea ecx, [ebp - 0x4efc]
jmp 0x40c3a7
push str.BayerDithering
lea ecx, [ebp - 0x4f00]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [edi]
lea ecx, [ebp - 0x4f00]
push ecx
mov ecx, edi
mov byte [ebp - 4], 0xf
call dword [eax + 0x20]
lea ecx, [ebp - 0x4f00]
jmp 0x40c3a7
push str.FS_Diffusion
lea ecx, [ebp - 0x4f04]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [edi]
lea ecx, [ebp - 0x4f04]
push ecx
mov ecx, edi
mov byte [ebp - 4], 0x10
call dword [eax + 0x20]
lea ecx, [ebp - 0x4f04]
jmp 0x40c3a7
push str.StochasticHalftone
lea ecx, [ebp - 0x4f08]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [edi]
lea ecx, [ebp - 0x4f08]
push ecx
mov ecx, edi
mov byte [ebp - 4], 0x11
call dword [eax + 0x20]
lea ecx, [ebp - 0x4f08]
jmp 0x40c3a7
push str.PM_DITHER_SCREENPRO
lea ecx, [ebp - 0x4f0c]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [ebp - 0x4ee0]
lea ecx, [ebp - 0x4f0c]
or eax, 1
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x4ee0], eax
mov dword [ebp - 0x4f28], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x20]
test eax, eax
je 0x40c354
cmp dword [ebp - 0x4f10], 0
je 0x40c354
and dword [ebp - 0x4ee0], 0xfffffffe
lea ecx, [ebp - 0x4f0c]
mov edi, 1
mov dword [ebp - 4], 2
jmp 0x40c3ad
xor edi, edi
mov dword [ebp - 4], 2
and dword [ebp - 0x4ee0], 0xfffffffe
lea ecx, [ebp - 0x4f0c]
jmp 0x40c3ad
cmp eax, 0x1a
jb 0x40c644
cmp eax, 0x25
ja 0x40c644
push str.HDS_Dither
lea ecx, [ebp - 0x4eec]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [edi]
lea ecx, [ebp - 0x4eec]
push ecx
mov ecx, edi
mov byte [ebp - 4], 0x13
call dword [eax + 0x20]
lea ecx, [ebp - 0x4eec]
mov edi, eax
mov byte [ebp - 4], 2
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
test edi, edi
je 0x40c63e
mov eax, dword [ebx]
lea edx, [esi - 0x100]
lea ecx, [ebx - 0x80]
mov dword [edx - 4], eax
sub edx, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x40c3d0
mov ecx, dword [ebx]
cmp ecx, 0x18
ja case.0x40c3e8.2
jmp dword [ecx*4 + 0x40d080]
movq xmm0, qword [str.KF_Diffusion]
mov eax, dword [0x494200]
movq qword [esi], xmm0
mov dword [esi + 8], eax
mov al, byte [0x494204]
mov byte [esi + 0xc], al
jmp 0x40c632
movups xmm0, xmmword [str.Error_Diffusion]
movups xmmword [esi], xmm0
jmp 0x40c632
movups xmm0, xmmword [str.Error_Diffusion_2]
mov ax, word [0x494228]
movups xmmword [esi], xmm0
mov word [esi + 0x10], ax
jmp 0x40c632
movups xmm0, xmmword [str.Error_Diffusion_3]
mov ax, word [0x49423c]
movups xmmword [esi], xmm0
mov word [esi + 0x10], ax
jmp 0x40c632
movups xmm0, xmmword [str.Error_Diffusion_Ex]
mov ax, word [0x494250]
movups xmmword [esi], xmm0
mov word [esi + 0x10], ax
mov al, byte [0x494252]
mov byte [esi + 0x12], al
jmp 0x40c632
movups xmm0, xmmword [str.Error_Diffusion_LC]
mov ax, word [0x494264]
movups xmmword [esi], xmm0
mov word [esi + 0x10], ax
mov al, byte [0x494266]
mov byte [esi + 0x12], al
jmp 0x40c632
movups xmm0, xmmword [str.Error_Diffusion_VAR]
mov eax, dword [0x494278]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], eax
jmp 0x40c632
movups xmm0, xmmword [str.Random_Diffusion]
mov al, byte [0x49428c]
movups xmmword [esi], xmm0
mov byte [esi + 0x10], al
jmp 0x40c632
movq xmm0, qword [str.LX_Diffusion]
mov eax, dword [0x494298]
movq qword [esi], xmm0
mov dword [esi + 8], eax
mov al, byte [0x49429c]
mov byte [esi + 0xc], al
jmp 0x40c632
movq xmm0, qword [str.Angled_Screen]
mov eax, dword [0x4942a8]
movq qword [esi], xmm0
mov dword [esi + 8], eax
mov ax, word [0x4942ac]
mov word [esi + 0xc], ax
jmp 0x40c632
movq xmm0, qword [str.FM_Diffusion]
mov eax, dword [0x4942b8]
movq qword [esi], xmm0
mov dword [esi + 8], eax
mov al, byte [0x4942bc]
mov byte [esi + 0xc], al
jmp 0x40c632
movups xmm0, xmmword [str.Stochastic_Halftone]
mov eax, dword [0x4942d0]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], eax
jmp 0x40c632
movups xmm0, xmmword [str.ScreenPro_Chameleon]
mov eax, dword [0x4942e4]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], eax
jmp 0x40c632
movups xmm0, xmmword [str.ScreenPro_Chimera]
mov ax, word [0x4942f8]
movups xmmword [esi], xmm0
mov word [esi + 0x10], ax
jmp 0x40c632
movups xmm0, xmmword [str.ScreenPro_Mirror]
mov al, byte [0x49430c]
movups xmmword [esi], xmm0
mov byte [esi + 0x10], al
jmp 0x40c632
movups xmm0, xmmword [str.ScreenPro_Pearl]
movups xmmword [esi], xmm0
jmp 0x40c632
cmp ecx, 0x1a
jb 0x40c632
cmp ecx, 0x25
ja 0x40c632
mov dword [ebp - 0x240], str.HDS_Super_Fine
mov edx, esi
mov dword [ebp - 0x23c], str.HDS_Fine
mov dword [ebp - 0x238], str.HDS_Medium
mov dword [ebp - 0x234], str.HDS_Coarse
mov dword [ebp - 0x230], str.HDS_Super_Coarse
mov dword [ebp - 0x22c], str.HDS_Super_Fine_D
mov dword [ebp - 0x228], str.HDS_Fine_D
mov dword [ebp - 0x224], str.HDS_Medium_D
mov dword [ebp - 0x220], str.HDS_Coarse_D
mov dword [ebp - 0x21c], str.HDS_Super_Coarse_D
mov dword [ebp - 0x218], str.AIS_Mirror
mov dword [ebp - 0x214], str.AIS_Pearl
mov ecx, dword [ebp + ecx*4 - 0x2a8]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
inc edx
test al, al
jne 0x40c626
inc dword [ebp - 0x4ecc]
add esi, 0x204
mov edi, dword [ebp - 0x4f18]
mov eax, dword [ebp - 0x4ed8]
add ebx, 0x84
inc eax
mov dword [ebp - 0x4ed8], eax
cmp eax, dword [ebp - 0x4f14]
jb 0x40c030
mov esi, dword [ebp - 0x4ecc]
mov ebx, dword [ebp - 0x4ef0]
push 0x84
push ebx
mov dword [ebp - 0x4eb0], esi
call fcn.0047fca7
mov esi, dword [ebp - 0x4ec8]
lea eax, [ebp - 0x4ebc]
push esi
push 1
push 0x4090
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ecx, dword [ebp - 0x4f38]
add esp, 0x18
call fcn.0040e800
mov ecx, dword [ebp - 0x4f30]
mov dword [ebp - 0x4f1c], eax
mov dword [ebp - 0x4ef4], 0
call dword [sym.imp.PMCORE.dll_public:_class_ASetup____thiscall_ASetupDatabase::GetSetupHead_void_]
mov ecx, dword [ebp - 0x4f30]
mov ebx, eax
push 0x1f
mov dword [ebp - 0x4ec4], eax
mov dword [ebp - 0x4ef8], 0
call dword [sym.imp.PMCORE.dll_public:_int___thiscall_ASetupDatabase::GetNumberOfSetups_int_]
test eax, eax
jle 0x40ce08
nop dword [eax]
test ebx, ebx
je 0x40ce02
lea eax, [ebp - 0x4f38]
mov ecx, ebx
push eax
call dword [sym.imp.PMCORE.dll_public:_class_AString___thiscall_ASetup::GetManufacturerName_void_]
mov esi, dword [ebp - 0x4ee0]
mov ecx, str.Desktop_Printer
mov eax, dword [eax]
or esi, 2
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x4f28], esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40c741
test dl, dl
je 0x40c73d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40c741
add eax, 2
add ecx, 2
test dl, dl
jne 0x40c721
xor eax, eax
jmp 0x40c746
sbb eax, eax
or eax, 1
test eax, eax
je 0x40c75a
mov ecx, ebx
call dword [sym.imp.PMCORE.dll_public:_short_int___thiscall_ASetup::GetSetupType_void_]
test al, 2
je 0x40c75a
xor bl, bl
jmp 0x40c75c
mov bl, 1
and esi, 0xfffffffd
mov dword [ebp - 4], 2
mov dword [ebp - 0x4ee0], esi
lea ecx, [ebp - 0x4f38]
mov esi, dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
call esi
test bl, bl
mov ebx, dword [ebp - 0x4ec4]
jne 0x40cdd3
mov ecx, ebx
call dword [sym.imp.PMCORE.dll_public:_short_int___thiscall_ASetup::GetSetupType_void_]
test al, 2
je 0x40cdd3
mov ecx, ebx
call dword [sym.imp.PMCORE.dll_public:_struct_ASetupCommonRec____thiscall_ASetup::GetCommonRec_void_]
mov dword [ebp - 0x4ecc], eax
test eax, eax
je 0x40ce02
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x4c]
mov ebx, eax
test ebx, ebx
je 0x40ce02
lea ecx, [ebp - 0xbe0]
call fcn.004094f0
push 0x9a0
lea eax, [ebp - 0xbe0]
mov byte [ebp - 4], 0x15
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xbe0], 4
movsx eax, word [ebx + 0x75c]
lea ecx, [ebp - 0x4ed8]
mov dword [ebp - 0xa5c], eax
mov dword [ebp - 0x4eec], 0xffffffff
push str.CFG_COLOR_SPLIT
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [edi]
lea ecx, [ebp - 0x4eec]
push ecx
lea ecx, [ebp - 0x4ed8]
mov byte [ebp - 4], 0x16
push ecx
mov ecx, edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x4ed8]
mov byte [ebp - 4], 0x15
call esi
xor eax, eax
mov dword [ebp - 0xbdc], 0x65
cmp dword [ebp - 0x4eec], eax
mov ecx, 1
mov dword [ebp - 0xbd8], 0x9a0
cmovne ax, cx
mov ecx, dword [ebp - 0x4ecc]
mov word [ebp - 0xa54], ax
mov eax, dword [ecx + 0x12c]
mov dword [ebp - 0xbcc], eax
lea eax, [ecx + 4]
push eax
lea ecx, [ebp - 0xa4c]
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_class_AFilePath_const__]
cmp dword [ebp + 8], 0
je 0x40c8ba
push str.CFG_FUNCTION_COLORCAL_LINEARIZEICC
lea ecx, [ebp - 0x4f0c]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [edi]
lea ecx, [ebp - 0x4f0c]
push ecx
mov ecx, edi
mov byte [ebp - 4], 0x17
call dword [eax + 0x20]
lea ecx, [ebp - 0x4f0c]
jmp 0x40c8e3
push str.Create_New_Density
lea ecx, [ebp - 0x4f08]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [edi]
lea ecx, [ebp - 0x4f08]
push ecx
mov ecx, edi
mov byte [ebp - 4], 0x18
call dword [eax + 0x20]
lea ecx, [ebp - 0x4f08]
mov byte [ebp - 4], 0x15
mov dword [ebp - 0xbc0], eax
call esi
push str.CFG_FUNCTION_NEW_CALIBRATION
lea ecx, [ebp - 0x4f04]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [edi]
lea ecx, [ebp - 0x4f04]
push ecx
mov ecx, edi
mov byte [ebp - 4], 0x19
call dword [eax + 0x20]
lea ecx, [ebp - 0x4f04]
mov dword [ebp - 0xbc4], eax
mov byte [ebp - 4], 0x15
call esi
push str.CFG_FUNCTION_COLORCAL_CUSTOMIZEICC
lea ecx, [ebp - 0x4f00]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [edi]
lea ecx, [ebp - 0x4f00]
push ecx
mov ecx, edi
mov byte [ebp - 4], 0x1a
call dword [eax + 0x20]
lea ecx, [ebp - 0x4f00]
mov dword [ebp - 0xbbc], eax
mov byte [ebp - 4], 0x15
call esi
mov ecx, dword [ebx + 0x184]
lea edx, [ebp - 0xbb8]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x40c965
mov eax, dword [ebp - 0x4ecc]
lea edx, [ebp - 0xb38]
mov ecx, dword [eax + 0xf8]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x40c985
lea eax, [ebx + 0x17c]
push eax
lea ecx, [ebp - 0xa48]
call dword [0x48f4b4]
mov dword [ebp - 0x4f44], 0
mov dword [ebp - 0x4f40], 0
mov dword [ebp - 0x4f3c], 0
lea ecx, [ebp - 0xe2c]
call fcn.0041dac0
lea ecx, [ebp - 0x4ee4]
mov byte [ebp - 4], 0x1c
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_void_]
mov ecx, dword [ebp - 0x4ec4]
lea edx, [ebp - 0x4ef0]
push edx
mov byte [ebp - 4], 0x1d
mov eax, dword [ecx]
call dword [eax + 0x68]
push eax
lea ecx, [ebp - 0x4ee4]
mov byte [ebp - 4], 0x1e
call dword [0x48f52c]
lea ecx, [ebp - 0x4ef0]
mov byte [ebp - 4], 0x1d
call esi
mov ecx, dword [ebp - 0x4ec4]
lea edx, [ebp - 0xe2c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x58]
push 0x14
call sub.mfc140.dll_Ordinal_1507
mov esi, eax
mov dword [ebp - 0x4edc], eax
add esp, 4
mov dword [ebp - 0x4f34], esi
mov byte [ebp - 4], 0x1f
test esi, esi
je 0x40ca68
lea eax, [ebp - 0xe2c]
mov ecx, esi
push eax
lea eax, [ebp - 0x4ee4]
push eax
push dword [ebx + 0x17c]
call dword [sym.imp.PMCORE.dll_public:_void___thiscall_APrinterDriverMgr::constructor_char_const___class_AString_const___struct_DrvInfo__]
mov dword [esi], vtable.APrinterDriverMgr.0
jmp 0x40ca70
xor esi, esi
mov dword [ebp - 0x4edc], esi
mov ecx, esi
mov byte [ebp - 4], 0x1d
call dword [sym.imp.PMCORE.dll_public:_class_ABasePrinterDriver____thiscall_APrinterDriverMgr::GetABasePrinterDriver_void_]
test eax, eax
jne 0x40ca98
test esi, esi
je 0x40ca8c
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov dword [ebp - 0x4edc], 0
jmp 0x40cacf
mov ecx, esi
call dword [sym.imp.PMCORE.dll_public:_class_ABasePrinterDriver____thiscall_APrinterDriverMgr::GetABasePrinterDriver_void_]
lea ecx, [ebp - 0x4f50]
push ecx
lea ecx, [ebp - 0x4f44]
mov edx, dword [eax]
push ecx
lea ecx, [ebx + 0x414]
push ecx
lea ecx, [ebx + 0x210]
push ecx
mov ecx, dword [ebp - 0x4ecc]
push dword [ecx + 0xf8]
mov ecx, eax
call dword [edx + 0x64]
mov ecx, dword [ebp - 0x4f40]
mov eax, 0x76b981db
mov esi, dword [ebp - 0x4f44]
sub ecx, esi
imul ecx
mov dword [ebp - 0x4f28], ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x40ce91
mov eax, dword [ebx + 0x170]
xor edi, edi
mov dword [ebp - 0xaf8], eax
test eax, eax
jle 0x40cc10
mov ecx, dword [ebx + 0x16c]
lea esi, [edi*4]
add ecx, esi
push 0x78
call dword [sym.imp.FSUTIL.dll_public:_int___thiscall_AString::Find_char_const]
mov dword [ebp - 0x4f28], eax
cmp eax, 0xffffffff
je 0x40cbc6
mov ecx, dword [ebx + 0x16c]
push eax
lea eax, [ebp - 0x4f20]
add ecx, esi
push eax
call dword [sym.imp.FSUTIL.dll_public:_class_AString___thiscall_AString::Left_int_]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
add esp, 4
lea ecx, [ebp - 0x4f20]
fstp qword [ebp - 0x4f4c]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
mov ecx, dword [ebx + 0x16c]
add ecx, esi
call dword [sym.imp.FSUTIL.dll_protected:_struct_AStringData____thiscall_AString::GetData_void_const]
mov ecx, dword [ebx + 0x16c]
add ecx, esi
mov eax, dword [eax + 4]
sub eax, dword [ebp - 0x4f28]
dec eax
push eax
lea eax, [ebp - 0x4f24]
push eax
call dword [sym.imp.FSUTIL.dll_public:_class_AString___thiscall_AString::Right_int_]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
add esp, 4
lea ecx, [ebp - 0x4f24]
fstp qword [ebp - 0x4f2c]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
movsd xmm0, qword [ebp - 0x4f4c]
movsd xmm1, qword [ebp - 0x4f2c]
jmp 0x40cbe9
mov eax, dword [ebx + 0x16c]
push dword [eax + esi]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
fstp qword [ebp - 0x4f4c]
movsd xmm0, qword [ebp - 0x4f4c]
add esp, 4
movaps xmm1, xmm0
cvtpd2ps xmm0, xmm0
inc edi
movss dword [ebp + esi - 0xaf4], xmm0
cvtpd2ps xmm0, xmm1
movss dword [ebp + esi - 0xab4], xmm0
cmp edi, dword [ebp - 0xaf8]
jl 0x40cb10
mov edi, dword [ebp - 0x4f18]
mov ecx, dword [ebp - 0x4edc]
test ecx, ecx
je 0x40cc26
mov eax, dword [ecx]
push 1
call dword [eax]
movsd xmm0, qword [ebx + 0x618]
lea ecx, [ebp - 0x4ec0]
cvtpd2ps xmm0, xmm0
movss dword [ebp - 0xa68], xmm0
movsd xmm0, qword [ebx + 0x620]
cvtpd2ps xmm0, xmm0
movss dword [ebp - 0xa64], xmm0
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_void_]
mov eax, dword [ebp - 0x4ecc]
lea ecx, [ebp - 0x4efc]
mov byte [ebp - 4], 0x20
push dword [eax + 0xf0]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
lea eax, [ebp - 0x4ec0]
push eax
lea eax, [ebp - 0x4efc]
push eax
call dword [sym.imp.PMCORE.dll_PMGetSetupOutputProfileFolder]
mov esi, dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
lea ecx, [ebp - 0x4efc]
add esp, 8
call esi
cmp dword [ebp + 8], 0
jne 0x40cd0e
lea ecx, [ebp - 0x4ee8]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_void_]
lea eax, [ebp - 0x4ee8]
mov byte [ebp - 4], 0x21
push eax
lea ecx, [ebp - 0x4ec0]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::getFileName_class_AString__const]
mov ebx, dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator___int_]
lea ecx, [ebp - 0x4ec0]
push 0
call ebx
push 0
lea ecx, [ebp - 0x4ec0]
call ebx
push str.Density
lea ecx, [ebp - 0x4ec0]
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_char_const__]
lea eax, [ebp - 0x4ee8]
push eax
lea ecx, [ebp - 0x4ec0]
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_class_AString_const__]
lea ecx, [ebp - 0x4ee8]
mov byte [ebp - 4], 0x20
call esi
lea eax, [ebp - 0x4ec0]
push eax
lea ecx, [ebp - 0xa50]
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_class_AFilePath_const__]
mov eax, dword [ebp - 0x4f1c]
push dword [ebp - 0x4ec8]
mov dword [ebp - 0xbd4], eax
mov eax, dword [ebp - 0x4ef4]
mov dword [ebp - 0xbd0], eax
inc eax
push 1
mov dword [ebp - 0x4ef4], eax
lea eax, [ebp - 0xbe0]
push 0x9a0
push eax
mov dword [ebp - 0xbc8], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
lea ecx, [ebp - 0x4ec0]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::destructor_void_]
lea ecx, [ebp - 0x4ee4]
call esi
mov eax, dword [ebp - 0xbec]
test eax, eax
je 0x40cd8e
push eax
call sub.mfc140.dll_Ordinal_266
add esp, 4
lea ecx, [ebp - 0x4f44]
call fcn.004097b0
lea ecx, [ebp - 0xa44]
mov byte [ebp - 4], 2
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::destructor_void_]
lea ecx, [ebp - 0xa48]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::destructor_void_]
lea ecx, [ebp - 0xa4c]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::destructor_void_]
lea ecx, [ebp - 0xa50]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::destructor_void_]
mov ebx, dword [ebp - 0x4ec4]
mov esi, dword [ebp - 0x4ef8]
mov ebx, dword [ebx + 0x268]
inc esi
mov ecx, dword [ebp - 0x4f30]
push 0x1f
mov dword [ebp - 0x4ec4], ebx
mov dword [ebp - 0x4ef8], esi
call dword [sym.imp.PMCORE.dll_public:_int___thiscall_ASetupDatabase::GetNumberOfSetups_int_]
cmp esi, eax
jl 0x40c6f0
mov esi, dword [ebp - 0x4ec8]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea eax, [ebp - 0x4fa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 0x4f78], 1
mov eax, 1
mov word [ebp - 0x4f74], ax
lea eax, [ebp - 0x210]
push 0x200
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x210]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_strrchr]
add esp, 8
test eax, eax
je 0x40cff0
mov byte [eax], 0
lea ecx, [ebp - 0x4ed0]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_310]
cmp dword [ebp + 8], 0
lea ecx, [ebp - 0x4ed0]
mov byte [ebp - 4], 0x22
je 0x40cf04
push str.ColorCal.exe
jmp 0x40cf09
cmp dword [ebp - 0x4f28], 0x1140
mov eax, 0x10
cmovl eax, ecx
xor ecx, ecx
mov dword [ebp - 0xaf8], eax
test eax, eax
jle 0x40cee5
nop
movsd xmm0, qword [esi]
lea esi, [esi + 0x114]
cvtpd2ps xmm0, xmm0
movss dword [ebp + ecx*4 - 0xaf4], xmm0
movsd xmm0, qword [esi - 0x10c]
cvtpd2ps xmm0, xmm0
movss dword [ebp + ecx*4 - 0xab4], xmm0
inc ecx
cmp ecx, dword [ebp - 0xaf8]
jl 0x40ceb0
mov ecx, dword [ebp - 0x4edc]
call dword [sym.imp.PMCORE.dll_public:_class_ABasePrinterDriver____thiscall_APrinterDriverMgr::GetABasePrinterDriver_void_]
lea ecx, [ebp - 0x4f44]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x7c]
jmp 0x40cc16
push str.ColorDen.exe
call dword [sym.imp.mfc140.dll_Ordinal_1696]
lea eax, [ebp - 0x4ed4]
push eax
lea eax, [ebp - 0x4ed8]
push 0x491fa0
push eax
call fcn.00403190
push 0x491fa0
push eax
lea eax, [ebp - 0x4ef0]
mov byte [ebp - 4], 0x23
push eax
call fcn.00403100
add esp, 0x18
push eax
lea ecx, [ebp - 0x4ed4]
mov byte [ebp - 4], 0x24
call dword [sym.imp.mfc140.dll_Ordinal_1526]
lea ecx, [ebp - 0x4ef0]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x4ed8]
mov byte [ebp - 4], 0x22
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea eax, [ebp - 0x4ed4]
push eax
lea ecx, [ebp - 0x4ed0]
call dword [sym.imp.mfc140.dll_Ordinal_1692]
lea ecx, [ebp - 0x4ed0]
call dword [sym.imp.mfc140.dll_Ordinal_5861]
push eax
lea ecx, [ebp - 0x4ed0]
call dword [sym.imp.mfc140.dll_Ordinal_5095]
lea ecx, [ebp - 0x4f60]
push ecx
lea ecx, [ebp - 0x4fa4]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40cfd6
push dword [ebp - 0x4f60]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x4f5c]
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x4ed0]
call dword [sym.imp.mfc140.dll_Ordinal_12503]
lea ecx, [ebp - 0x4ed0]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x4ed4]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047ff18
mov esp, ebp
pop ebp
ret 4