Function at 0x4124e0
Capabilities:
Read .ini file
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x415bf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x304
push ebx
push esi
push edi
xor edi, edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x318], edi
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x18]
push eax
push 0x41dd5c
push ecx
mov byte [esp + 0x324], 1
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], edi
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x318], 2
call sub.MFC42u.DLL_CString::CString_1
push 0x420788
lea ecx, [esp + 0x20]
mov byte [esp + 0x31c], 3
call fcn.00413dc4
lea ecx, [esp + 0x10]
mov byte [esp + 0x318], 4
call sub.MFC42u.DLL_CString::CString_1
mov edx, dword [ebp + 0x14]
lea eax, [esp + 0x84]
push edx
mov bl, 5
push str..PHYSICALDRIVE_d
push eax
mov byte [esp + 0x324], bl
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea ecx, [esp + 0x84]
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push edi
cmp esi, 0xffffffff
je 0x412a69
lea edx, [esp + 0x84]
lea eax, [esp + 0x6c]
push edx
push 0x18
push eax
push edi
push edi
push 0x70000
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x412a30
mov eax, dword [esp + 0x6c]
push 1
cdq
push edi
push edx
push eax
call fcn.004140f0
mov ecx, dword [esp + 0x68]
push edi
add eax, ecx
mov ecx, dword [esp + 0x78]
adc edx, edi
imul ecx, dword [esp + 0x7c]
imul ecx, dword [esp + 0x80]
push ecx
push edx
push eax
call fcn.004140f0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
fild qword [esp + 0x2c]
push esi
fstp qword [esp + 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push str.Backup
push eax
call sub.MFC42u.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x31c], 8
call fcn.00413dfa
lea ecx, [esp + 0x20]
mov byte [esp + 0x318], bl
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x10]
push ecx
push 0xffffffffffffffff
push str.Partitions
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x41c198
mov esi, eax
call fcn.00413dc4
push ecx
lea ecx, [esp + 0x1c]
mov eax, esp
mov dword [esp + 0x40], esp
push ecx
push str.DoCheckSize_Section
push eax
mov byte [esp + 0x330], 9
call sub.MFC42u.DLL_operator_2
mov byte [esp + 0x324], bl
call fcn.00406ff0
mov eax, esi
add esp, 0xc
shr eax, 2
mov ecx, eax
je 0x4126ce
shr ecx, 1
jne 0x4126ca
lea edx, [ebp + 8]
lea ecx, [esp + 0x14]
push edx
mov dword [esp + 0x24], eax
mov edi, 2
call fcn.00413dfa
push 0x5c
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x31c], 0xa
call fcn.00413dfa
lea ecx, [esp + 0x24]
mov byte [esp + 0x318], bl
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41296b
test al, 1
je 0x41295c
lea ecx, [edi + 0x41]
mov dword [esp + 0x2c], 0
push ecx
push 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0
call sub.MFC42u.DLL_CString::SetAt
lea edx, [esp + 0x14]
push 0x5c
lea eax, [esp + 0x54]
push edx
push eax
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x31c], 0xb
call fcn.00413dfa
lea ecx, [esp + 0x50]
mov byte [esp + 0x318], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x34]
push 1
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::Left
push 0x5c
lea edx, [esp + 0x50]
push eax
push edx
mov byte [esp + 0x324], 0xc
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x31c], 0xd
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x318], 0xc
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x318], bl
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 0x18]
push str._tocfile
lea ecx, [esp + 0x3c]
push eax
push ecx
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x31c], 0xe
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x38]
mov byte [esp + 0x318], bl
call sub.MFC42u.DLL_CString::CString
mov edx, dword [esp + 0xc]
push 0x41e428
push edx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4128a3
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x24]
push eax
push str.DoCheckSize:__tfopen:__s.
push ecx
mov byte [esp + 0x324], 0xf
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x41c198
call fcn.00413dc4
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
mov byte [esp + 0x328], 0x10
call sub.MFC42u.DLL_CString::CString_2
mov byte [esp + 0x324], 0xf
call fcn.00406ff0
add esp, 0xc
lea ecx, [esp + 0x24]
mov byte [esp + 0x318], bl
call sub.MFC42u.DLL_CString::CString
jmp 0x412952
push esi
push 1
lea eax, [esp + 0xb4]
push 0x262
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
je 0x412929
test byte [esp + 0x2e6], 2
jne 0x41290c
test byte [esp + 0x2e2], 1
jne 0x41290c
mov ecx, dword [esp + 0x2de]
mov edx, dword [esp + 0x2da]
xor eax, eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x40], edx
fild qword [esp + 0x54]
mov dword [esp + 0x44], eax
fmul qword [0x416528]
fild qword [esp + 0x40]
faddp st(1)
fadd qword [esp + 0x2c]
fstp qword [esp + 0x2c]
push esi
push 1
lea eax, [esp + 0xb4]
push 0x262
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
jne 0x4128c0
fld qword [esp + 0x2c]
fmul qword [0x416308]
fadd qword [0x416520]
call fcn.00413f50
mov edx, dword [esp + 0x28]
push esi
add edx, eax
mov dword [esp + 0x2c], edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
cmp dword [ebp + 0x18], 2
je 0x41296b
mov eax, dword [esp + 0x20]
shr eax, 1
inc edi
mov dword [esp + 0x20], eax
test eax, eax
jne 0x41272a
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], 0
mov byte [esp + 0x318], 4
mov dword [ecx], eax
lea eax, [eax + eax*4]
lea ecx, [esp + 0x10]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 6
mov dword [esp + 0x40], edx
fild qword [esp + 0x40]
fadd dword [0x416518]
fcomp qword [esp + 0x5c]
fnstsw ax
test ah, 1
je 0x412aae
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x318], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x318], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x318], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x318], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [esp + 0x318], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x310]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x4207b8
call fcn.00413dc4
push ecx
mov byte [esp + 0x320], 6
mov ecx, esp
mov dword [esp + 0x44], esp
push str.DeviceIoControl
call fcn.00413dc4
push edi
mov byte [esp + 0x324], bl
call fcn.00406a10
jmp 0x412a9f
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push 0x41c198
call fcn.00413dc4
push ecx
mov byte [esp + 0x324], 7
mov ecx, esp
mov dword [esp + 0x48], esp
push str.Can_not_open_physical_drive_to_get_hard_disk_drive_size
call fcn.00413dc4
mov byte [esp + 0x324], bl
call fcn.00406ff0
add esp, 0xc
mov byte [esp + 0x318], 4
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x318], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x318], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x318], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x318], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [esp + 0x318], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x310]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret