Function at 0x4829f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd8e3
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x587614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov edi, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea eax, [ebp - 0x14]
sub esp, 8
mov byte [ebp - 4], 1
xorps xmm0, xmm0
movsd qword [esp], xmm0
push 0x4fa3b4
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x18]
mov ecx, 0x58d238
push dword [ebp - 0x14]
push 0x4c32d8
push 0x4de070
push eax
call sub.mfc140u.dll_CWinApp::GetProfileStringW
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtof]
push ecx
xorps xmm0, xmm0
lea eax, [ebp - 0x14]
movsd qword [esp], xmm0
push 0x4fa3b4
push eax
fstp qword [0x58cfb8]
call edi
add esp, 0x10
lea eax, [ebp - 0x18]
mov ecx, 0x58d238
push dword [ebp - 0x14]
push 0x4c32e4
push 0x4de070
push eax
call sub.mfc140u.dll_CWinApp::GetProfileStringW
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtof]
add esp, 4
lea eax, [ebp - 0x18]
mov ecx, 0x58d238
fstp qword [0x58cfc0]
push str.NONAME
push 0x4de080
push 0x4de070
push eax
call sub.mfc140u.dll_CWinApp::GetProfileStringW
push eax
mov ecx, 0x58d234
mov byte [ebp - 4], 4
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [esi]
push 0
push str.bViewGrid
push 0x4c21a8
mov ecx, esi
call dword [eax + 0x84]
push 0
mov dword [0x58219c], eax
mov ecx, esi
mov eax, dword [esi]
push str.bViewGuideLine
push 0x4c21a8
call dword [eax + 0x84]
push 0
mov dword [0x5821a0], eax
mov ecx, esi
mov eax, dword [esi]
push str.bLockGuideLine
push 0x4c21a8
call dword [eax + 0x84]
push 0
mov dword [0x58d1fc], eax
mov ecx, esi
mov eax, dword [esi]
push str.bViewTemplateLockGuideLine
push 0x4c21a8
call dword [eax + 0x84]
push 1
mov dword [0x58d22c], eax
mov ecx, esi
mov eax, dword [esi]
push str.nHeadRepeat
push 0x4c21a8
call dword [eax + 0x84]
push 0
mov dword [0x5821cc], eax
mov ecx, esi
mov eax, dword [esi]
push str.bUseLine
push str.Line
call dword [eax + 0x84]
push 0
mov dword [0x58d214], eax
mov ecx, esi
mov eax, dword [esi]
push str.clrLeft
push str.Line
call dword [eax + 0x84]
push 0
mov dword [0x5821b0], eax
mov ecx, esi
mov eax, dword [esi]
push str.clrRight
push str.Line
call dword [eax + 0x84]
movsd xmm0, qword [0x58d218]
sub esp, 8
mov dword [0x5821b4], eax
lea eax, [ebp - 0x14]
movsd qword [esp], xmm0
push 0x4fa3b4
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x18]
mov ecx, 0x58d238
push dword [ebp - 0x14]
push str.dblLeft
push str.Line
push eax
call sub.mfc140u.dll_CWinApp::GetProfileStringW
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtof]
xorps xmm0, xmm0
add esp, 4
fstp qword [0x58d218]
comisd xmm0, xmmword [0x58d218]
jbe 0x482c86
movsd qword [0x58d218], xmm0
movsd xmm0, qword [0x58d220]
lea eax, [ebp - 0x14]
sub esp, 8
movsd qword [esp], xmm0
push 0x4fa3b4
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x18]
mov ecx, 0x58d238
push dword [ebp - 0x14]
push str.dblRight
push str.Line
push eax
call sub.mfc140u.dll_CWinApp::GetProfileStringW
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtof]
xorps xmm0, xmm0
add esp, 4
fstp qword [0x58d220]
comisd xmm0, xmmword [0x58d220]
jbe 0x482d01
movsd qword [0x58d220], xmm0
movsd xmm0, qword [0x5821b8]
lea eax, [ebp - 0x14]
sub esp, 8
movsd qword [esp], xmm0
push 0x4fa3b4
push eax
call edi
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
add esp, 0x10
push dword [ebp - 0x14]
push str.dblLineWidth
push str.Line
push ecx
mov ecx, esi
call dword [eax + 0x8c]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtof]
movsd xmm0, qword [0x4dbc28]
add esp, 4
fstp qword [0x5821b8]
movsd xmm1, qword [0x5821b8]
comisd xmm0, xmm1
ja 0x482d8b
movsd xmm0, qword [0x4d9020]
comisd xmm1, xmm0
jbe 0x482d93
movsd qword [0x5821b8], xmm0
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push 0x4dea5c
push str.AddLength
push str.Line
push ecx
mov ecx, esi
call dword [eax + 0x8c]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtof]
xorps xmm0, xmm0
add esp, 4
fstp qword [0x5824a8]
comisd xmm0, xmmword [0x5824a8]
jbe 0x482df2
movsd qword [0x5824a8], xmm0
mov eax, dword [esi]
mov ecx, esi
push 0
push str.UVDryMode
push str.Line
call dword [eax + 0x84]
push 0
mov dword [0x58d228], eax
mov ecx, esi
mov eax, dword [esi]
push str.bDrawUVLine
push str.Line
call dword [eax + 0x84]
movsd xmm0, qword [0x4fa7e0]
sub esp, 8
mov dword [0x51b008], eax
lea eax, [ebp - 0x14]
movsd qword [esp], xmm0
push 0x4fa3b4
push eax
call edi
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
add esp, 0x10
push dword [ebp - 0x14]
push str.dblUVLine
push str.Line
push ecx
mov ecx, esi
call dword [eax + 0x8c]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtof]
add esp, 4
mov ecx, esi
fstp qword [0x51b000]
mov eax, dword [esi]
push 0
push str.Image_Resample
push 0x4dd7d4
call dword [eax + 0x84]
push str.1.0_1.0
push str.fptGridSizeNew
mov dword [0x58d230], eax
lea ecx, [ebp - 0x18]
mov eax, dword [esi]
push str.setup
push ecx
mov ecx, esi
call dword [eax + 0x8c]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0x582260
push 0x582258
push str._f__f
push dword [ebp - 0x10]
call fcn.00483740
lea eax, [ebp - 0x18]
push eax
call fcn.00491720
add esp, 0x14
push dword [eax]
push 3
push str.PaperKind
push 0x4da15c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x58d1f4], eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
movsd xmm1, qword [0x4c09d8]
xorps xmm0, xmm0
comisd xmm0, xmmword [0x582258]
jb 0x482f43
movsd qword [0x582258], xmm1
comisd xmm0, xmmword [0x582260]
jb 0x482f55
movsd qword [0x582260], xmm1
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret