Function at 0x402410
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b9d6
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x427038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x427acc]
test al, 1
jne 0x402523
or eax, 1
mov dword [0x427acc], eax
mov dword [ebp - 4], 0
xor eax, eax
push 0x1f
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 0
push str.RC2345PicEdit_Update_Config_Ini
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
call fcn.00402bd0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x234]
push eax
call fcn.00409f00
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x4024f2
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4024e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4024e8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00419f23
add esp, 8
xor eax, eax
mov dword [ebp - 0x224], 0
push 0x41d770
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
call fcn.0041a3e4
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [0x427ad0], 0
je 0x402539
cmp byte [0x427ad5], 0
jne 0x4029e8
lea eax, [ebp - 0x294]
push eax
call fcn.00419630
mov dword [ebp - 4], 2
push str.temp.ini
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00402da0
add esp, 0x10
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x280]
cmp edx, 8
jb 0x4025a7
mov ecx, dword [ebp - 0x294]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40259d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40259d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00419f23
add esp, 8
xor eax, eax
mov dword [ebp - 0x284], 0
mov word [ebp - 0x294], ax
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x280], 7
call fcn.00406410
add esp, 4
test al, al
je 0x402942
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x234]
cmp dword [ebp - 0x220], 8
cmovae eax, dword [ebp - 0x234]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x41e7bc
push str.Version
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x234]
call fcn.00410850
mov dword [ebp - 0x23c], 0
mov edi, 7
mov dword [ebp - 0x23c], 0
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x238], edi
mov word [ebp - 0x24c], ax
mov byte [ebp - 4], 5
cmp word [ebp - 0x21c], ax
je 0x402987
lea eax, [ebp - 0x264]
push eax
call fcn.00419800
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x21c]
push ecx
push eax
lea eax, [ebp - 0x2ac]
push eax
call fcn.00402da0
add esp, 0x10
mov esi, eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x24c]
cmp eax, esi
je 0x4026df
mov ecx, eax
call fcn.004021b0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x24c], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x14], edi
movq qword [ebp - 0x23c], xmm0
mov edi, dword [ebp - 0x238]
mov dword [esi + 0x10], 0
mov word [esi], ax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x298]
cmp edx, 8
jb 0x402725
mov ecx, dword [ebp - 0x2ac]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40271b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40271b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00419f23
add esp, 8
xor eax, eax
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 7
mov word [ebp - 0x2ac], ax
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x250]
cmp edx, 8
jb 0x402788
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40277e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40277e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00419f23
add esp, 8
xor eax, eax
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
cmp dword [ebp - 0x23c], eax
je 0x402987
lea eax, [ebp - 0x24c]
push eax
call fcn.00406540
add esp, 4
test al, al
je 0x402981
lea eax, [ebp - 0x264]
push eax
call fcn.00419630
mov byte [ebp - 4], 8
push str.config.ini
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.00402da0
add esp, 0x10
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x250]
cmp edx, 8
jb 0x402833
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402829
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402829
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00419f23
add esp, 8
xor eax, eax
mov dword [ebp - 0x254], 0
cmp dword [ebp - 0x268], 8
mov word [ebp - 0x264], ax
lea eax, [ebp - 0x27c]
cmovae eax, dword [ebp - 0x27c]
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x250], 7
push eax
push str.Version
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x268]
cmp edx, 8
jb 0x4028c2
mov ecx, dword [ebp - 0x27c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4028b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4028b8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00419f23
add esp, 8
xor eax, eax
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 7
mov word [ebp - 0x27c], ax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x402925
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40291b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40291b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00419f23
add esp, 8
xor eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x4029cf
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4029c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4029c5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edi, dword [ebp - 0x238]
mov byte [ebp - 4], 4
cmp edi, 8
jb 0x402925
mov ecx, dword [ebp - 0x24c]
lea edx, [edi*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40291b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40291b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00419f23
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov dword [ebp - 0x224], eax
mov al, 1
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.00419ee2
mov esp, ebp
pop ebp
ret