Function at 0x427d80
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0xb24
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00421d70
lea ecx, [esp + 0x1c]
push 0x4698e4
push ecx
call fcn.00459902
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x427de6
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x128]
push str.ERROR:_Could_not_open__s_in_replaceValueInConfig__n
push eax
call fcn.00458ee7
lea ecx, [esp + 0x12c]
push ecx
mov dword [esp + 0x130], 1
call fcn.0043e010
add esp, 0x10
or eax, 0xffffffff
pop ebx
add esp, 0xb24
ret
push ebp
push esi
push 2
push 0
push ebx
call fcn.0045985d
push ebx
call fcn.0045978d
push 0
mov esi, eax
push 0
push ebx
mov dword [esp + 0x38], esi
call fcn.0045985d
mov ebp, 1
add esp, 0x1c
cmp esi, ebp
jge 0x427e58
push ebx
call fcn.00459521
push esi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x138]
push str.ERROR:_File__s_has_length_of__d_bytes_in_replaceValueInConfig__n
push eax
call fcn.00458ee7
lea ecx, [esp + 0x13c]
push ecx
mov dword [esp + 0x140], ebp
call fcn.0043e010
add esp, 0x18
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0xb24
ret
lea edx, [esi + 0x800]
push edi
push edx
call fcn.00459619
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x18], edi
jne 0x427eb8
push ebx
call fcn.00459521
add esi, 0x104
push esi
lea eax, [esp + 0x138]
push str.ERROR:_Failed_to_malloc__d_bytes_in_replaceValueInConfig__n
push eax
call fcn.00458ee7
lea ecx, [esp + 0x13c]
push ecx
mov dword [esp + 0x140], ebp
call fcn.0043e010
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0xb24
ret
mov esi, dword [esp + 0xb38]
push esi
push ebx
call fcn.00423520
add esp, 8
test eax, eax
push ebx
je 0x427f18
call fcn.00459521
push edi
call fcn.0045932f
lea edx, [esp + 0x2c]
push edx
push esi
lea eax, [esp + 0x140]
push str.ERROR:_Could_not_find__s_header_in__s_in_replaceValueInConfig__n
push eax
call fcn.00458ee7
lea ecx, [esp + 0x144]
push ecx
mov dword [esp + 0x148], ebp
call fcn.0043e010
add esp, 0x1c
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0xb24
ret
call fcn.0045978d
push 0
push 0
push ebx
mov esi, eax
call fcn.0045985d
push ebx
push esi
push ebp
push edi
call fcn.00459489
add esp, 0x20
cmp eax, esi
mov dword [esp + 0x14], eax
je 0x427f5c
push ebx
call fcn.00459521
push edi
call fcn.0045932f
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0xb24
ret
xor ebp, ebp
jmp 0x427f70
mov edi, dword [esp + 0x18]
jmp 0x427f70
push ebx
lea edx, [esp + 0x334]
push 0x801
push edx
call fcn.0045b1a6
mov esi, dword [esp + 0xb48]
mov dword [esp + 0x28], eax
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x427f96
sub eax, edx
push eax
lea eax, [esp + 0x334]
push esi
push eax
call fcn.0045b6d0
add esp, 0xc
test eax, eax
jne 0x4280b6
lea eax, [esp + 0x330]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x427fc3
xor ecx, ecx
mov word [esp + 0x10], cx
sub eax, edx
mov byte [esp + 0x12], cl
mov cl, byte [esp + eax + 0x32e]
cmp cl, 0xd
je 0x427fe8
cmp cl, 0xa
jne 0x427ff9
mov dl, byte [esp + eax + 0x32f]
cmp dl, 0xd
je 0x42801a
cmp dl, 0xa
je 0x42801a
mov al, byte [esp + eax + 0x32f]
cmp al, 0xd
je 0x428014
cmp al, 0xa
je 0x428014
mov byte [esp + 0x10], 0xd
mov byte [esp + 0x11], 0xa
jmp 0x428022
mov byte [esp + 0x10], al
jmp 0x428022
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], dl
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428027
sub eax, edx
mov cl, byte [esp + eax + 0x330]
cmp cl, 0x20
je 0x428041
cmp cl, 9
jne 0x428044
inc eax
jmp 0x428030
mov byte [esp + eax + 0x330], 0
mov eax, dword [esp + 0xb40]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428055
lea edi, [esp + 0x330]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x428066
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x428084
lea edi, [esp + 0x330]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x428097
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
mov ebp, 1
lea eax, [esp + 0x330]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4280c0
sub eax, edx
mov edx, dword [esp + 0x14]
mov ecx, eax
add edi, edx
shr ecx, 2
lea esi, [esp + 0x330]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x330]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4280f0
mov ecx, dword [esp + 0x14]
sub eax, edx
add ecx, eax
test ebp, ebp
mov dword [esp + 0x14], ecx
jne 0x428113
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x427f60
push ebx
call fcn.0045978d
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov esi, eax
push ebx
mov ecx, edi
sub ecx, esi
push ecx
lea eax, [edx + ebp]
push 1
push eax
call fcn.00459489
sub edi, esi
push ebx
add ebp, edi
call fcn.00459521
lea ecx, [esp + 0x3c]
push 0x469850
push ecx
call fcn.00459902
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x4281dc
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42819a
test al, 1
je 0x42819a
push 0x80
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x24]
push 0x469850
push ecx
call fcn.00459902
mov esi, eax
add esp, 8
test esi, esi
jne 0x4281dc
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x134]
push str.ERROR:_Could_not_open__s_for_writing_in_replaceValueInConfig_n
push eax
call fcn.00458ee7
lea ecx, [esp + 0x138]
push ecx
mov dword [esp + 0x13c], 1
call fcn.0043e010
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 0xfffffffa
pop ebx
add esp, 0xb24
ret
mov edi, dword [esp + 0x18]
push esi
push ebp
push 1
push edi
call fcn.004592e3
push esi
call fcn.00459521
push edi
call fcn.0045932f
add esp, 0x18
call fcn.004159e0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xb24
ret