Function at 0x4122d9
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
mov edi, ecx
mov ebx, 0x441880
lea ecx, [ebp - 0x34]
push ebx
call fcn.004146d0
lea eax, [ebp - 0x34]
push eax
push str.SoftwareRealNetworksConfigLOC
push SysReAllocStringLen
call fcn.0041341c
add esp, 0xc
test eax, eax
je 0x41231b
lea eax, [ebp - 0x34]
lea ecx, [edi + 0x58]
push eax
call fcn.00414770
lea ecx, [edi + 0x9c]
push ebx
call fcn.004147e0
cmp byte [edi + 0x5f], 0xff
lea esi, [edi + 0x58]
mov eax, esi
jne 0x412334
mov eax, dword [esi]
push ebx
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x41240d
lea ecx, [ebp - 0x64]
call fcn.00404353
lea ecx, [ebp - 0x1c]
call fcn.00404d6b
cmp byte [esi + 7], 0xff
jne 0x41235d
mov esi, dword [esi]
push 1
xor eax, eax
push dword [edi + 0x10]
lea ecx, [ebp - 0x1c]
push eax
push esi
push ecx
push eax
push eax
lea ecx, [ebp - 0x64]
call fcn.004044bd
lea ecx, [ebp - 0x1c]
call fcn.00404df9
cmp eax, 2
jb 0x4123fd
lea ecx, [ebp - 0x1c]
call fcn.00404dfd
mov esi, eax
push 0x43ee18
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x4123af
lea ecx, [ebp - 0x1c]
call fcn.00404dfd
push eax
mov ecx, edi
call fcn.0040d261
jmp 0x4123fd
mov al, byte [esi]
cmp al, 0x41
jl 0x4123bd
cmp al, 0x5a
jg 0x4123bd
add al, 0x20
mov byte [esi], al
mov al, byte [esi + 1]
cmp al, 0x41
jl 0x4123cd
cmp al, 0x5a
jg 0x4123cd
add al, 0x20
mov byte [esi + 1], al
mov cl, byte [esi]
cmp cl, 0x61
jl 0x4123fd
cmp cl, 0x7a
jg 0x4123fd
mov al, byte [esi + 1]
cmp al, 0x61
jl 0x4123fd
cmp al, 0x7a
jg 0x4123fd
lea ebx, [edi + 0x9c]
push ecx
mov ecx, ebx
call fcn.00414c70
mov al, byte [esi + 1]
mov ecx, ebx
push eax
call fcn.00414c70
lea ecx, [ebp - 0x1c]
call fcn.00404d9b
lea ecx, [ebp - 0x64]
call fcn.00404378
lea eax, [edi + 0x9c]
mov ebx, SysReAllocStringLen
push eax
push str.SoftwareRealNetworksConfigLocalCountry
push ebx
call fcn.00413460
add esp, 0xc
lea ecx, [ebp - 0x84]
call fcn.00404353
lea ecx, [ebp - 0x44]
call fcn.00404d6b
lea eax, [edi + 0x64]
mov ecx, edi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00406c40
cmp byte [ebp - 0x1d], 0xff
lea eax, [ebp - 0x24]
jne 0x412455
mov eax, dword [ebp - 0x24]
xor esi, esi
lea ecx, [ebp - 0x84]
push esi
push dword [edi + 0x10]
push esi
push eax
lea eax, [ebp - 0x44]
push eax
push esi
push edi
call fcn.004044bd
cmp eax, esi
mov dword [edi + 0x118], eax
jge 0x412482
mov esi, 0x80004005
jmp 0x4125cc
add edi, 0x38
lea ecx, [ebp - 0xc]
push edi
call fcn.00414640
mov esi, str.config.xml
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00414850
add esp, 0xc
cmp byte [eax + 7], 0xff
jne 0x4124ac
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x14]
call fcn.004146c0
lea ecx, [ebp - 0xc]
call fcn.004146c0
push edi
lea ecx, [ebp - 0xc]
call fcn.00414640
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00414850
add esp, 0xc
cmp byte [eax + 7], 0xff
jne 0x4124e5
mov eax, dword [eax]
push 0x43ea90
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov esi, eax
pop ecx
lea ecx, [ebp - 0x14]
call fcn.004146c0
lea ecx, [ebp - 0xc]
call fcn.004146c0
test esi, esi
je 0x412478
push esi
push 1
lea ecx, [ebp - 0x44]
call fcn.00404df9
push eax
lea ecx, [ebp - 0x44]
call fcn.00404dfd
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
and byte [ebp - 1], 0
add esp, 0x14
lea eax, [ebp - 1]
lea ecx, [ebp - 0x44]
push 1
push eax
call fcn.00404e01
lea ecx, [ebp - 0x44]
call fcn.00404dfd
push eax
lea ecx, [ebp - 0x2c]
call fcn.004146d0
mov esi, str.checksum_value_
lea ecx, [ebp - 0x2c]
push esi
call fcn.004150a0
mov edi, eax
test edi, edi
jl 0x4125c2
push esi
call sub.MSVCRT.dll_strlen
add edi, eax
mov dword [esp], 0x43f924
lea eax, [ebp - 0x14]
push edi
push eax
lea ecx, [ebp - 0x2c]
call fcn.00414f70
mov ecx, eax
call fcn.004150a0
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004146c0
test esi, esi
jl 0x4125c2
push esi
lea eax, [ebp - 0xc]
push edi
push eax
lea ecx, [ebp - 0x2c]
call fcn.00414fa0
lea eax, [ebp - 0xc]
push eax
push str.SoftwareRealNetworksConfigLocalXMLMD5
push ebx
call fcn.00413460
add esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.004146c0
lea ecx, [ebp - 0x2c]
call fcn.004146c0
xor esi, esi
lea ecx, [ebp - 0x24]
call fcn.004146c0
lea ecx, [ebp - 0x44]
call fcn.00404d9b
lea ecx, [ebp - 0x84]
call fcn.00404378
lea ecx, [ebp - 0x34]
call fcn.004146c0
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret