Function at 0x40a900
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43314d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
mov ecx, 0x442af0
push eax
call fcn.004022f0
push str.ancamcorder.ini
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x140], 0
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push str.LEFT
push str.AUTOPOS_HISTORY
call esi
lea ecx, [esp + 0x10]
mov edi, eax
call sub.MFC42.DLL_CString::CString
or ebx, 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], ebx
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x10]
mov ecx, 0x442af0
push edx
call fcn.004022f0
push str.ancamcorder.ini
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x13c], 1
push eax
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push eax
push 0
push 0x4410b8
push str.AUTOPOS_HISTORY
call esi
lea ecx, [esp + 0x14]
mov ebp, eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x134], ebx
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x442af0
call fcn.004022f0
push str.ancamcorder.ini
lea edx, [esp + 0x18]
push eax
push edx
mov dword [esp + 0x140], 2
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push eax
push 0x3b4
push str.WIDTH
push str.AUTOPOS_HISTORY
call esi
lea ecx, [esp + 0x14]
mov ebx, eax
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x134], 0xffffffff
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x10]
mov ecx, 0x442af0
push eax
call fcn.004022f0
push str.ancamcorder.ini
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x140], 3
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push eax
push 0x2ac
push str.HEIGHT
push str.AUTOPOS_HISTORY
call esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CString::CString
cmp dword [esp + 0x140], 1
jne 0x40ab21
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov ebp, eax
call esi
push 0x4e
mov dword [esp + 0x14], eax
call esi
push 0x4f
mov dword [esp + 0x18], eax
call esi
push 0x50
call esi
test eax, eax
jne 0x40aaf7
mov esi, dword [esp + 0x13c]
mov edx, dword [esp + 0x10]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], ebp
mov dword [esi + 0xc], edx
jmp 0x40ab45
mov eax, ebx
mov esi, dword [esp + 0x13c]
cdq
sub eax, edx
sar eax, 1
add eax, edi
cmp eax, ebp
jbe 0x40aade
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esi], ebp
mov dword [esi + 4], 0
mov dword [esi + 8], eax
jmp 0x40ab42
mov esi, dword [esp + 0x13c]
lea eax, [edi + 4]
lea ecx, [ebp + 0x79]
lea edx, [ebx + edi - 4]
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
lea ecx, [eax + ebp - 0x17]
mov dword [esi + 0xc], ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x20]
mov ecx, 0x442af0
push edx
mov dword [esp + 0x138], 4
call fcn.004022f0
push str.ancamcorder.ini
push eax
lea eax, [esp + 0x2c]
mov bl, 5
push eax
mov byte [esp + 0x140], bl
call sub.MFC42.DLL_operator_2
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push ecx
push 0x441c04
push edx
mov byte [esp + 0x140], 6
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x24]
mov byte [esp + 0x134], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x134], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
push 0x104
push ecx
push str.MEDIUM
push str.RECORD_SELECT
push str.OPTION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0xffffffff
je 0x40ac6d
lea edx, [esp + 0x28]
push 0x441e94
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x40ac6d
mov eax, dword [esi]
mov ecx, eax
and ecx, 0x80000001
jns 0x40ac14
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x40ac1c
dec eax
mov dword [esi], eax
mov eax, dword [esi + 4]
mov edx, eax
and edx, 0x80000001
jns 0x40ac2e
dec edx
or edx, 0xfffffffe
inc edx
cmp edx, 1
jne 0x40ac37
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
mov ecx, eax
and ecx, 0x80000001
jns 0x40ac49
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x40ac52
dec eax
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
mov edx, eax
and edx, 0x80000001
jns 0x40ac64
dec edx
or edx, 0xfffffffe
inc edx
cmp edx, 1
jne 0x40ac6d
dec eax
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret 8