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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 0x38]
lea ecx, [ebp - 0x10]
push edi
mov dword [ebp - 0x14], 1
call fcn.00414640
mov esi, str.config.xml
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00414850
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.004146c0
cmp byte [ebp - 0x21], 0xff
lea eax, [ebp - 0x28]
jne 0x412641
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41267f
lea eax, [ebx + 0x64]
mov ecx, ebx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00406c40
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041206f
test eax, eax
jne 0x412671
and dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
call fcn.004146c0
cmp dword [ebp - 0x14], 0
je 0x412686
mov ecx, ebx
call fcn.004122d9
push edi
lea ecx, [ebp - 0x10]
call fcn.00414640
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00414850
add esp, 0xc
cmp byte [eax + 7], 0xff
jne 0x4126a8
mov eax, dword [eax]
push 0x43ff18
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov edi, eax
pop ecx
lea ecx, [ebp - 0x48]
call fcn.004146c0
lea ecx, [ebp - 0x10]
call fcn.004146c0
test edi, edi
jne 0x412717
lea ecx, [ebp - 0x1c]
call fcn.00414590
lea eax, [ebp - 0x1c]
push eax
push str.SoftwareRealNetworksConfigLocalInstalled
push SysReAllocStringLen
call fcn.0041341c
add esp, 0xc
test eax, eax
je 0x41270f
push str.actionerrorvaluelocal_xml_missing
lea ecx, [ebp - 0x10]
call fcn.004146d0
lea eax, [ebp - 0x10]
push edi
push eax
mov ecx, ebx
call fcn.00405549
lea ecx, [ebp - 0x10]
call fcn.004146c0
lea ecx, [ebp - 0x1c]
jmp 0x412fda
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push edi
call esi
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push edi
mov dword [ebp - 0x14], eax
call esi
mov eax, dword [ebp - 0x14]
lea esi, [eax + 1]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push esi
push 0
push eax
mov dword [ebx + 0x60], eax
call sub.MSVCRT.dll_memset
push edi
push 1
push dword [ebp - 0x14]
push dword [ebx + 0x60]
call dword [sym.imp.MSVCRT.dll_fread]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x40
mov ecx, ebx
push 1
call fcn.0040da87
test eax, eax
jge 0x41277d
mov esi, 0x80004005
jmp 0x412ff0
mov ecx, ebx
call fcn.0040dc5b
test eax, eax
jl 0x412773
mov edi, dword [ebx + 0x3fb]
cmp edi, dword [ebx + 0x3ff]
mov dword [ebp - 4], edi
je 0x412fee
cmp dword [ebx + 0x14], 0
jne 0x412fdf
and dword [ebp - 0x14], 0
push 0x2c
lea ecx, [edi + 0x38]
lea esi, [edi + 8]
call fcn.004148d0
push 1
mov dword [ebp - 8], eax
pop eax
cmp dword [ebp - 8], eax
mov dword [ebp - 0x30], eax
jl 0x412f00
cmp dword [ebp - 0x14], 0
jne 0x412862
push dword [ebp - 0x30]
lea eax, [ebp - 0x80]
lea ecx, [esi + 0x30]
push 0x2c
push eax
call fcn.00414910
lea ecx, [ebx + 0x7c]
push 0x2c
call fcn.004148d0
push 1
mov dword [ebp - 0x20], eax
pop eax
cmp dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], eax
jl 0x412841
cmp dword [ebp - 0x14], 0
jne 0x412841
push dword [ebp - 0x2c]
lea eax, [ebp - 0x70]
lea ecx, [ebx + 0x7c]
push 0x2c
push eax
call fcn.00414910
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0040b8d5
pop ecx
test eax, eax
pop ecx
je 0x41282e
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x70]
call fcn.004146c0
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x20]
jle 0x4127fd
lea ecx, [ebp - 0x80]
call fcn.004146c0
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 8]
jle 0x4127ca
cmp dword [ebp - 0x14], 0
je 0x412f00
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 1
call fcn.00414590
push edi
lea eax, [ebp - 0x134]
push str.SoftwareRealNetworksConfigLocalPackages_
push eax
call fcn.00414890
add esp, 0xc
cmp byte [eax + 7], 0xff
jne 0x41288e
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push SysReAllocStringLen
call fcn.0041341c
add esp, 0xc
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x20], eax
call fcn.004146c0
cmp dword [ebp - 0x20], 0
je 0x412abc
lea eax, [ebx + 0x38]
lea ecx, [ebp - 0x50]
push eax
call fcn.00414640
lea eax, [ebp - 0x1c]
push eax
push 0x43fe58
lea eax, [ebp - 0x50]
push edi
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.00414810
add esp, 0xc
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.00414850
add esp, 0xc
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00414810
add esp, 0xc
lea ecx, [ebp - 0x1c]
push eax
call fcn.00414770
lea ecx, [ebp - 0x114]
call fcn.004146c0
lea ecx, [ebp - 0x124]
call fcn.004146c0
lea ecx, [ebp - 0xbc]
call fcn.004146c0
lea ecx, [ebp - 0x50]
call fcn.004146c0
cmp byte [ebp - 0x15], 0xff
lea eax, [ebp - 0x1c]
jne 0x41293f
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x412abc
lea eax, [esi + 0x48]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041206f
test eax, eax
jne 0x412abc
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x1d4]
push eax
call fcn.0041e1a0
lea eax, [ebp - 0xcc]
lea ecx, [ebp - 0x1d4]
push eax
call fcn.0041e230
cmp byte [eax + 7], 0xff
jne 0x41298e
mov eax, dword [eax]
push 0x43ee68
push eax
call sub.MSVCRT.dll_strcmp
mov edi, eax
pop ecx
neg edi
pop ecx
sbb edi, edi
lea ecx, [ebp - 0xcc]
inc edi
call fcn.004146c0
test edi, edi
je 0x412a3b
lea eax, [ebx + 0x38]
lea ecx, [ebp - 0x90]
push eax
call fcn.00414640
lea eax, [esi + 0x50]
push eax
push 0x43fe58
push dword [ebp - 4]
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00414810
add esp, 0xc
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.00414850
add esp, 0xc
push eax
lea eax, [ebp - 0x164]
push eax
call fcn.00414810
add esp, 0xc
lea ecx, [ebp - 0x1c]
push eax
call fcn.00414770
lea ecx, [ebp - 0x164]
call fcn.004146c0
lea ecx, [ebp - 0xdc]
call fcn.004146c0
lea ecx, [ebp - 0x12c]
call fcn.004146c0
lea ecx, [ebp - 0x90]
call fcn.004146c0
cmp byte [ebp - 0x15], 0xff
lea eax, [ebp - 0x1c]
jne 0x412a47
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x412aa7
and dword [ebp - 8], 0
lea edi, [esi + 0x58]
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
mov dword [esi + 8], 1
call fcn.00414770
cmp byte [edi + 7], 0xff
mov eax, edi
jne 0x412a75
mov eax, dword [edi]
push 0
push eax
call fcn.00413763
mov dword [esi + 0x1c], eax
cmp byte [esi + 0x47], 0xff
lea eax, [esi + 0x40]
pop ecx
pop ecx
jne 0x412a8d
mov eax, dword [eax]
push 0x43ed10
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x412aa7
push edi
lea ecx, [ebx + 0x40]
call fcn.00414770
lea ecx, [ebp - 0x1d4]
call fcn.0041e2d0
cmp dword [ebp - 8], 0
je 0x412ef5
lea eax, [ebx + 0x38]
lea ecx, [ebp - 0x98]
push eax
call fcn.00414640
mov edi, 0x43fe58
lea eax, [ebp - 0x98]
push edi
push dword [ebp - 4]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.00414810
add esp, 0xc
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.00414850
add esp, 0xc
cmp byte [eax + 7], 0xff
jne 0x412b02
mov eax, dword [eax]
push eax
call fcn.004138b2
pop ecx
lea ecx, [ebp - 0xec]
call fcn.004146c0
lea ecx, [ebp - 0x174]
call fcn.004146c0
lea ecx, [ebp - 0x98]
call fcn.004146c0
lea eax, [ebx + 0x38]
lea ecx, [ebp - 0x68]
push eax
call fcn.00414640
push edi
lea eax, [ebp - 0x68]
push dword [ebp - 4]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.00414810
add esp, 0xc
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.00414850
add esp, 0xc
lea ecx, [ebp - 0x204]
push eax
call fcn.0041e1a0
lea eax, [ebp - 0x204]
push eax
call fcn.0041e3b0
pop ecx
lea ecx, [ebp - 0x204]
call fcn.0041e2d0
lea ecx, [ebp - 0xfc]
call fcn.004146c0
lea ecx, [ebp - 0x13c]
call fcn.004146c0
lea ecx, [ebp - 0x68]
call fcn.004146c0
lea eax, [ebx + 0x38]
lea ecx, [ebp - 0x88]
push eax
call fcn.00414640
push edi
lea eax, [ebp - 0x88]
push dword [ebp - 4]
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.00414810
add esp, 0xc
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00414850
add esp, 0xc
lea ecx, [ebp - 0xb4]
push eax
call fcn.00404ba1
lea ecx, [ebp - 0x10c]
call fcn.004146c0
lea ecx, [ebp - 0x16c]
call fcn.004146c0
lea ecx, [ebp - 0x88]
call fcn.004146c0
push 1
lea ecx, [ebp - 0xb4]
call fcn.00404c3b
lea ecx, [ebp - 0x15c]
call fcn.00404353
lea eax, [ebp - 0x15c]
mov dword [ebx + 0x419], eax
cmp byte [esi + 0x4f], 0xff
lea eax, [esi + 0x48]
jne 0x412c34
mov eax, dword [eax]
xor edi, edi
lea ecx, [ebp - 0x15c]
push edi
push dword [ebx + 0x10]
push esi
push eax
lea eax, [ebp - 0xb4]
push eax
push ebx
push ebx
call fcn.004044bd
cmp eax, edi
mov dword [ebx + 0x419], edi
jl 0x412f0b
cmp dword [ebp - 0x14c], edi
je 0x412edf
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x78]
push eax
call fcn.00414640
lea eax, [ebp - 0x78]
lea ecx, [esi + 0x58]
push eax
call fcn.00414770
lea ecx, [ebp - 0x78]
call fcn.004146c0
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x58]
push eax
call fcn.00414640
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x1a4]
push eax
call fcn.0041e1a0
lea ecx, [ebp - 0x58]
call fcn.004146c0
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x1a4]
push eax
call fcn.0041e230
cmp byte [eax + 7], 0xff
jne 0x412ccd
mov eax, dword [eax]
push 0x43ee68
push eax
call sub.MSVCRT.dll_strcmp
mov edi, eax
pop ecx
neg edi
pop ecx
sbb edi, edi
lea ecx, [ebp - 0x11c]
inc edi
call fcn.004146c0
test edi, edi
je 0x412e36
cmp byte [esi + 0x57], 0xff
lea eax, [esi + 0x50]
jne 0x412cff
mov eax, dword [eax]
push 0x441880
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x412f4c
lea eax, [ebx + 0x38]
lea ecx, [ebp - 0x60]
push eax
call fcn.00414640
mov edi, 0x43fe58
lea eax, [ebp - 0x60]
push edi
push dword [ebp - 4]
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00414810
add esp, 0xc
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.00414850
add esp, 0xc
cmp byte [eax + 7], 0xff
jne 0x412d54
mov eax, dword [eax]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x10]
call fcn.00414640
cmp byte [ebp - 9], 0xff
lea eax, [ebp - 0x10]
jne 0x412d72
mov eax, dword [ebp - 0x10]
push dword [ebp - 8]
lea ecx, [ebx + 4]
push eax
mov eax, ebx
neg eax
sbb eax, eax
and eax, ecx
push eax
call fcn.00404f80
add esp, 0xc
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], eax
call fcn.004146c0
lea ecx, [ebp - 0xc4]
call fcn.004146c0
lea ecx, [ebp - 0xd4]
call fcn.004146c0
lea ecx, [ebp - 0x60]
call fcn.004146c0
cmp dword [ebp - 8], 0
jl 0x412f4c
lea eax, [ebx + 0x38]
lea ecx, [ebp - 0x48]
push eax
call fcn.00414640
lea eax, [esi + 0x50]
push eax
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00414810
add esp, 0xc
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.00414850
add esp, 0xc
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.00414810
add esp, 0xc
lea ecx, [esi + 0x58]
push eax
call fcn.00414770
lea ecx, [ebp - 0xe4]
call fcn.004146c0
lea ecx, [ebp - 0xf4]
call fcn.004146c0
lea ecx, [ebp - 0x104]
call fcn.004146c0
lea ecx, [ebp - 0x48]
call fcn.004146c0
lea edi, [esi + 0x58]
mov dword [esi + 0xc], 1
mov eax, edi
cmp byte [edi + 7], 0xff
jne 0x412e4a
mov eax, dword [edi]
push 0
push eax
call fcn.00413763
mov dword [esi + 0x1c], eax
add esi, 0x40
pop ecx
cmp byte [esi + 7], 0xff
pop ecx
jne 0x412e62
mov esi, dword [esi]
push 0x43ed10
push esi
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x412e88
mov eax, dword [ebp - 0x144]
push edi
lea ecx, [ebx + 0x40]
mov dword [ebx + 0x104], eax
call fcn.00414770
push dword [ebp - 4]
lea eax, [ebp - 0x40]
push str.SoftwareRealNetworksConfigLocalPackages_
push eax
call fcn.00414890
add esp, 0xc
cmp byte [eax + 7], 0xff
mov esi, eax
jne 0x412ea6
mov esi, dword [eax]
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x1a4]
push eax
call fcn.0041e1d0
push eax
push esi
push SysReAllocStringLen
call fcn.00413460
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.004146c0
lea ecx, [ebp - 0x38]
call fcn.004146c0
lea ecx, [ebp - 0x1a4]
call fcn.0041e2d0
lea ecx, [ebp - 0x15c]
call fcn.00404378
lea ecx, [ebp - 0xb4]
call fcn.00404c11
lea ecx, [ebp - 0x1c]
call fcn.004146c0
mov edi, dword [ebp - 4]
add edi, 0x80
jmp 0x41278e
push edi
push str._missing
push dword [ebp - 4]
lea eax, [ebp - 0x40]
push str.actionerrorvalue
push eax
call fcn.00414890
add esp, 0xc
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00414850
add esp, 0xc
mov ecx, ebx
push eax
call fcn.00405549
lea ecx, [ebp - 0x38]
call fcn.004146c0
lea ecx, [ebp - 0x40]
call fcn.004146c0
jmp 0x412fc1
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x10]
push eax
call fcn.00414640
cmp byte [ebp - 9], 0xff
lea eax, [ebp - 0x10]
jne 0x412f67
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x10]
call fcn.004146c0
push 0
push str._rup_invalid
push dword [ebp - 4]
lea eax, [ebp - 0x40]
push str.actionerrorvalue
push eax
call fcn.00414890
add esp, 0xc
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00414850
add esp, 0xc
mov ecx, ebx
push eax
call fcn.00405549
lea ecx, [ebp - 0x38]
call fcn.004146c0
lea ecx, [ebp - 0x40]
call fcn.004146c0
lea ecx, [ebp - 0x1a4]
call fcn.0041e2d0
lea ecx, [ebp - 0x15c]
call fcn.00404378
lea ecx, [ebp - 0xb4]
call fcn.00404c11
lea ecx, [ebp - 0x1c]
call fcn.004146c0
lea ecx, [ebp - 0x28]
call fcn.004146c0
mov eax, 0x80004005
jmp 0x412ffa
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.004146c0
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret