Function at 0x10021c80
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x10043b4a
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1006c318]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
xor esi, esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
push 0x400
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
push 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x10021d0d
push 0x1005d1d0
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], 0xffffffff
call sub.MSVCR80.dll__CxxThrowException
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
push 0x5c
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_5524]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_3990]
push 0x5c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call dword [sym.imp.MFC80U.DLL_Ordinal_5524]
cmp eax, 0xffffffff
jne 0x10021d56
push 0x1005d1d0
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], eax
call sub.MSVCR80.dll__CxxThrowException
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_3990]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], esi
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.10028de0
push str.CommonModuleRawPlugIn2Ext.cfg
push eax
lea edx, [ebp - 0x24]
push edx
mov byte [ebp - 4], 6
call fcn.10004c10
add esp, 0x14
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10028de0
push str.ImgPlugInColor
push eax
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 4], 9
call fcn.10004c10
push 0x1005361c
push eax
lea edx, [ebp - 0x1c]
push edx
mov byte [ebp - 4], 0xa
call fcn.10004c10
push str.EwsRGB.icm
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 0xb
call fcn.10004c10
add esp, 0x2c
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xf
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push esi
lea ecx, [ebp - 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call dword [sym.imp.MSVCR80.dll__waccess_s]
add esp, 8
test eax, eax
jne 0x10021ead
lea ecx, [ebp - 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
push 0x400
lea ecx, [ebp]
push ecx
push 0x1005312c
push str.DscExtension
push str.Extension
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x10021e80
sub eax, edx
sar eax, 1
je 0x10021ecf
lea esi, [edi + 0x24]
push 0x10053ee0
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
lea edx, [ebp]
push edx
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
lea ecx, [ebp - 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, 1
jmp 0x10021f00
lea ecx, [ebp - 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
xor eax, eax
jmp 0x10021f00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.1003e9c6
add ebp, 0x804
mov esp, ebp
pop ebp
ret