Function at 0x401780
Capabilities:
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406a21
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x40c028]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push edi
push 0x66
mov ecx, ebx
mov dword [ebp - 0x2f8], ebx
call dword [sym.imp.mfc100u.dll_CDialogEx::CDialogEx]
mov dword [ebp - 4], edi
lea ecx, [ebx + 0xbc]
mov dword [ebx], vtable.COumaPictureCheckDlg.0
call dword [sym.imp.mfc100u.dll_CWnd::CWnd]
mov dword [ebx + 0xbc], vtable.CStatic.0
mov byte [ebp - 4], 1
call dword [sym.imp.mfc100u.dll_AfxGetModuleState]
push 0x80
push 0xe
push 0x80
call dword [sym.imp.mfc100u.dll_AfxFindResourceHandle]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebx + 0xb8], eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x2cc]
call dword [0x4082e4]
push 0x5c
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
inc eax
push eax
lea edx, [ebp - 0x2d4]
push edx
lea ecx, [ebp - 0x2cc]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Left]
push eax
mov ecx, 0x40c798
mov byte [ebp - 4], 3
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov ecx, dword [0x40c798]
push 3
push ecx
lea edx, [ebp - 0x2b8]
lea eax, [ebp - 0x2b4]
push edx
mov dword [ebp - 0x2b8], eax
call fcn.00404d10
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x2b8]
mov ecx, esi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], 0
lea edi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4018c0
sub ecx, edi
mov eax, esi
mov edi, ecx
lea esi, [ebp - 0x234]
call fcn.00404f80
lea ecx, [ebp - 0x2bc]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea eax, [ebp - 0x2d4]
push eax
mov edi, 0x408898
mov byte [ebp - 4], 6
call fcn.004057f0
add esp, 4
push eax
lea ecx, [ebp - 0x2bc]
mov byte [ebp - 4], 7
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x314]
call dword [0x408300]
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x2bc]
push 0
push ecx
lea ecx, [ebp - 0x314]
call dword [sym.imp.mfc100u.dll_CFileFind::FindFile]
test eax, eax
jne 0x40195b
push eax
push eax
push str.setting.ini
call dword [sym.imp.mfc100u.dll_AfxMessageBox]
push 0
call dword [sym.imp.MSVCR100.dll_exit]
lea ecx, [ebp - 0x2c4]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x2e4]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x2dc]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x2c0]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x2e8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x2d0]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x2f0]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x2c8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x2e0]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x2f4]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x2ec]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x2d8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [ebp - 4], 0x14
mov edx, dword [ebp - 0x2bc]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edx
push 0x64
push str.min_width
push str.zpshcs
call edi
mov dword [0x40c6a8], eax
mov eax, dword [ebp - 0x2bc]
push eax
push 0x64
push str.min_height
push str.zpshcs
call edi
mov ecx, dword [ebp - 0x2bc]
push ecx
push 0
push str.pic_min_size
push str.zpshcs
mov dword [0x40c6a4], eax
call edi
mov edx, dword [ebp - 0x2bc]
push edx
push 0xffffffffffffffff
push str.pic_max_size
push str.zpshcs
mov dword [0x40c6a0], eax
call edi
mov dword [0x40c69c], eax
mov eax, dword [ebp - 0x2bc]
push eax
push 0x127
push str.dst_width
push str.zpshcs
call edi
mov ecx, dword [ebp - 0x2bc]
push ecx
push 0x19d
push str.dst_height
push str.zpshcs
mov dword [0x40c698], eax
call edi
mov edx, dword [ebp - 0x2bc]
mov dword [0x40c694], eax
push edx
push 0x14
push 0x14
lea ecx, [ebp - 0x2c4]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x408974
push str.ratio_y_min
push str.zpshcs
call esi
mov eax, dword [ebp - 0x2c4]
push eax
call dword [sym.imp.MSVCR100.dll__wtof]
fstp dword [0x40c690]
mov ecx, dword [ebp - 0x2bc]
add esp, 4
push ecx
push 0x14
push 0x14
lea ecx, [ebp - 0x2e4]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0x408974
push str.ratio_y_max
push str.zpshcs
call esi
mov edx, dword [ebp - 0x2e4]
push edx
call dword [sym.imp.MSVCR100.dll__wtof]
fstp dword [0x40c68c]
mov eax, dword [ebp - 0x2bc]
add esp, 4
push eax
push 0x14
push 0x14
lea ecx, [ebp - 0x2dc]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0x408974
push str.ratio_x_min
push str.zpshcs
call esi
mov ecx, dword [ebp - 0x2dc]
push ecx
call dword [sym.imp.MSVCR100.dll__wtof]
fstp dword [0x40c688]
mov edx, dword [ebp - 0x2bc]
add esp, 4
push edx
push 0x14
push 0x14
lea ecx, [ebp - 0x2c0]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0x408974
push str.ratio_x_max
push str.zpshcs
call esi
mov eax, dword [ebp - 0x2c0]
push eax
call dword [sym.imp.MSVCR100.dll__wtof]
fstp dword [0x40c684]
mov ecx, dword [ebp - 0x2bc]
add esp, 4
push ecx
push 0x14
push 0x14
lea ecx, [ebp - 0x2e8]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0x408974
push str.s_min
push str.zpshcs
call esi
mov edx, dword [ebp - 0x2e8]
push edx
call dword [sym.imp.MSVCR100.dll__wtof]
fstp dword [0x40c680]
mov eax, dword [ebp - 0x2bc]
add esp, 4
push eax
push 0x14
push 0x14
lea ecx, [ebp - 0x2d0]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0x408974
push str.s_max
push str.zpshcs
call esi
mov ecx, dword [ebp - 0x2d0]
push ecx
call dword [sym.imp.MSVCR100.dll__wtof]
fstp dword [0x40c67c]
mov edx, dword [ebp - 0x2bc]
add esp, 4
push edx
push 0x14
push 0x14
lea ecx, [ebp - 0x2f0]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0x408974
push str.i_min
push str.zpshcs
call esi
mov eax, dword [ebp - 0x2f0]
push eax
call dword [sym.imp.MSVCR100.dll__wtof]
fstp dword [0x40c678]
mov ecx, dword [ebp - 0x2bc]
add esp, 4
push ecx
push 0x14
push 0x14
lea ecx, [ebp - 0x2c8]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0x408974
push str.i_max
push str.zpshcs
call esi
mov edx, dword [ebp - 0x2c8]
push edx
call dword [sym.imp.MSVCR100.dll__wtof]
fstp dword [0x40c674]
mov eax, dword [ebp - 0x2bc]
add esp, 4
push eax
push 0x14
push 0x14
lea ecx, [ebp - 0x2e0]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0x408974
push str.red_h_min
push str.zpshcs
call esi
mov ecx, dword [ebp - 0x2e0]
push ecx
call dword [sym.imp.MSVCR100.dll__wtof]
fstp dword [0x40c670]
mov edx, dword [ebp - 0x2bc]
add esp, 4
push edx
push 0x14
push 0x14
lea ecx, [ebp - 0x2f4]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0x408974
push str.red_h_max
push str.zpshcs
call esi
mov eax, dword [ebp - 0x2f4]
push eax
call dword [sym.imp.MSVCR100.dll__wtof]
fstp dword [0x40c66c]
mov ecx, dword [ebp - 0x2bc]
add esp, 4
push ecx
push 0x14
push 0x14
lea ecx, [ebp - 0x2ec]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0x408974
push str.blue_h_min
push str.zpshcs
call esi
mov edx, dword [ebp - 0x2ec]
push edx
call dword [sym.imp.MSVCR100.dll__wtof]
fstp dword [0x40c668]
mov eax, dword [ebp - 0x2bc]
add esp, 4
push eax
push 0x14
push 0x14
lea ecx, [ebp - 0x2d8]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0x408974
push str.blue_h_max
push str.zpshcs
call esi
mov ecx, dword [ebp - 0x2d8]
push ecx
call dword [sym.imp.MSVCR100.dll__wtof]
fstp dword [0x40c664]
mov edx, dword [ebp - 0x2bc]
add esp, 4
push edx
push 0x8a
push str.jc_a
push str.zpshcs
call edi
mov dword [0x40c660], eax
mov eax, dword [ebp - 0x2bc]
push eax
push 0xf
push str.jc_b
push str.zpshcs
call edi
mov ecx, dword [ebp - 0x2bc]
push ecx
push 5
push str.jc_precision
push str.zpshcs
mov dword [0x40c65c], eax
call edi
mov edx, dword [ebp - 0x2bc]
push edx
push 0
push str.cast
push str.zpshcs
mov dword [0x40c658], eax
call edi
mov dword [0x40c654], eax
mov eax, dword [ebp - 0x2bc]
push eax
push 0
push 0x408aa4
push str.zpshcs
call edi
lea ecx, [ebp - 0x2d8]
mov dword [0x40c650], eax
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x2ec]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x2f4]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x2e0]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x2c8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x2f0]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x2d0]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x2e8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x2c0]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x2dc]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x2e4]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x2c4]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x314]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc100u.dll_CFileFind::CFileFind]
lea ecx, [ebp - 0x2bc]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
cmp dword [ebp - 0x220], 0x10
jb 0x401edb
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov eax, dword [ebp - 0x2b8]
lea edx, [ebp - 0x2b4]
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
cmp eax, edx
je 0x401f10
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
lea ecx, [ebp - 0x2cc]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405f60
mov esp, ebp
pop ebp
ret