Function at 0x412fff
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
push edi
mov edi, ecx
mov esi, SysReAllocStringLen
lea eax, [edi + 0x9c]
push eax
push str.SoftwareRealNetworksConfigLocalCountry
push esi
call fcn.0041341c
add esp, 0xc
lea eax, [edi + 0x38]
lea ecx, [ebp - 0xc]
push eax
call fcn.00414640
lea eax, [ebp - 0xc]
push str.config.xml
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00414850
add esp, 0xc
cmp byte [eax + 7], 0xff
jne 0x413050
mov eax, dword [eax]
push 0x43ff18
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov ebx, eax
pop ecx
lea ecx, [ebp - 0x34]
call fcn.004146c0
lea ecx, [ebp - 0xc]
call fcn.004146c0
test ebx, ebx
jne 0x4130bb
lea ecx, [ebp - 0x2c]
call fcn.00414590
lea eax, [ebp - 0x2c]
push eax
push str.SoftwareRealNetworksConfigLocalInstalled
push esi
call fcn.0041341c
add esp, 0xc
test eax, eax
je 0x4130b3
push str.actionerrorvaluelocal_xml_missing
lea ecx, [ebp - 0xc]
call fcn.004146d0
lea eax, [ebp - 0xc]
push ebx
push eax
mov ecx, edi
call fcn.00405549
lea ecx, [ebp - 0xc]
call fcn.004146c0
lea ecx, [ebp - 0x2c]
jmp 0x4133fe
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push ebx
call esi
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push ebx
mov dword [ebp - 4], eax
call esi
mov eax, dword [ebp - 4]
lea esi, [eax + 1]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push esi
push 0
push eax
mov dword [edi + 0x60], eax
call sub.MSVCRT.dll_memset
push ebx
push 1
push dword [ebp - 4]
push dword [edi + 0x60]
call dword [sym.imp.MSVCRT.dll_fread]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x40
mov ecx, edi
push 1
call fcn.0040da87
test eax, eax
jl 0x413403
mov ecx, edi
call fcn.0040dc5b
test eax, eax
jl 0x413403
mov esi, dword [edi + 0x3fb]
cmp esi, dword [edi + 0x3ff]
je 0x41340a
and dword [ebp - 4], 0
push 0x2c
lea ecx, [esi + 0x38]
call fcn.004148d0
push 1
mov dword [ebp - 0x28], eax
pop ecx
cmp eax, ecx
mov dword [ebp - 0x10], ecx
jl 0x413367
cmp dword [ebp - 4], 0
jne 0x4131f6
push dword [ebp - 0x10]
lea eax, [ebp - 0x40]
lea ecx, [esi + 0x38]
push 0x2c
push eax
call fcn.00414910
lea ebx, [edi + 0x84]
push 0x2c
mov ecx, ebx
call fcn.004148d0
push 1
mov dword [ebp - 0x38], eax
pop ecx
cmp eax, ecx
mov dword [ebp - 0x14], ecx
jl 0x4131d5
cmp dword [ebp - 4], 0
jne 0x4131d5
push dword [ebp - 0x14]
lea eax, [ebp - 0x48]
mov ecx, ebx
push 0x2c
push eax
call fcn.00414910
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040b8d5
pop ecx
test eax, eax
pop ecx
je 0x4131c2
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.004146c0
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x38]
jle 0x413192
lea ecx, [ebp - 0x40]
call fcn.004146c0
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x28]
jle 0x41315b
cmp dword [ebp - 4], 0
je 0x413367
push 0x441880
lea ecx, [ebp - 0xc]
call fcn.004146d0
push esi
lea eax, [ebp - 0x58]
push str.SoftwareRealNetworksConfigLocalPackages_
push eax
call fcn.00414890
add esp, 0xc
cmp byte [eax + 7], 0xff
jne 0x41321d
mov eax, dword [eax]
lea ecx, [ebp - 0xc]
push ecx
push eax
push SysReAllocStringLen
call fcn.0041341c
add esp, 0xc
lea ecx, [ebp - 0x58]
mov ebx, eax
call fcn.004146c0
test ebx, ebx
je 0x4133bd
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x90]
push eax
call fcn.0041e1a0
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x90]
push eax
call fcn.0041e230
cmp byte [eax + 7], 0xff
jne 0x413267
mov eax, dword [eax]
push 0x43ee68
push eax
call sub.MSVCRT.dll_strcmp
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb ebx, ebx
lea ecx, [ebp - 0x50]
inc ebx
call fcn.004146c0
test ebx, ebx
je 0x413293
lea eax, [esi + 0x58]
lea ecx, [ebp - 0xc]
push eax
call fcn.00414770
lea eax, [edi + 0x38]
lea ecx, [ebp - 0x34]
push eax
mov dword [esi + 0x10], 1
call fcn.00414640
lea eax, [ebp - 0xc]
lea ebx, [esi + 0x60]
push eax
push 0x43fe58
lea eax, [ebp - 0x34]
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00414810
add esp, 0xc
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00414850
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00414810
add esp, 0xc
mov ecx, ebx
push eax
call fcn.00414770
lea ecx, [ebp - 0x60]
call fcn.004146c0
lea ecx, [ebp - 0x24]
call fcn.004146c0
lea ecx, [ebp - 0x1c]
call fcn.004146c0
lea ecx, [ebp - 0x34]
call fcn.004146c0
cmp byte [ebx + 7], 0xff
mov eax, ebx
jne 0x41330f
mov eax, dword [ebx]
push 0
push eax
call fcn.00413763
mov dword [esi + 0x24], eax
cmp byte [esi + 0x4f], 0xff
lea eax, [esi + 0x48]
pop ecx
pop ecx
jne 0x413327
mov eax, dword [eax]
push 0x43ed10
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x413354
push ebx
lea ecx, [edi + 0x40]
call fcn.00414770
cmp byte [ebx + 7], 0xff
jne 0x413349
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x413372
lea ecx, [ebp - 0x90]
call fcn.0041e2d0
lea ecx, [ebp - 0xc]
call fcn.004146c0
add esi, 0x80
jmp 0x413130
push 0
push str._invalid
push esi
lea eax, [ebp - 0x24]
push str.actionerrorvalue
push eax
call fcn.00414890
add esp, 0xc
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00414850
add esp, 0xc
mov ecx, edi
push eax
call fcn.00405549
lea ecx, [ebp - 0x1c]
call fcn.004146c0
lea ecx, [ebp - 0x24]
call fcn.004146c0
lea ecx, [ebp - 0x90]
call fcn.0041e2d0
jmp 0x4133fb
push 0
push str._invalid
push esi
lea eax, [ebp - 0x24]
push str.actionerrorvalue
push eax
call fcn.00414890
add esp, 0xc
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00414850
add esp, 0xc
mov ecx, edi
push eax
call fcn.00405549
lea ecx, [ebp - 0x1c]
call fcn.004146c0
lea ecx, [ebp - 0x24]
call fcn.004146c0
lea ecx, [ebp - 0xc]
call fcn.004146c0
mov eax, 0x80004005
jmp 0x413417
lea ecx, [edi + 0x11c]
call fcn.00403cd2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret