Function at 0x40fa90
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x43ebe2
push eax
mov eax, 0x4e60
mov dword fs:[0], esp
call fcn.00427c30
mov eax, dword [esp + 0x4e74]
push ebx
push ebp
push esi
push edi
push eax
mov ebx, ecx
push str.Updating_version_in_config_file_to__s._n
call fcn.00406da0
mov esi, dword [esp + 0x4e88]
push 0
push esi
call fcn.004282ba
mov ebp, eax
add esp, 0x10
cmp ebp, 0xffffffff
je 0x40fd89
mov cl, byte [0x44f120]
xor eax, eax
mov byte [esp + 0x50], cl
mov ecx, 0x1387
lea edi, [esp + 0x51]
lea edx, [esp + 0x50]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4e1f
push edx
push ebp
stosb byte es:[edi], al
call fcn.0042807c
mov esi, eax
add esp, 0xc
cmp esi, 0x4e1f
jne 0x40fb7e
lea eax, [esp + 0x10]
push 0x2341
push eax
mov ecx, 0x44f200
call fcn.00402690
mov eax, dword [eax + 4]
mov dword [esp + 0x4e78], 0
test eax, eax
jne 0x40fb46
mov eax, 0x44167c
mov ecx, dword [esp + 0x4e80]
push 0x4e1f
push ecx
push eax
push ebx
call fcn.0040f790
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x4e78], 0xffffffff
push 1
call fcn.00417e30
push ebp
call fcn.00427f9c
jmp 0x40fdea
test esi, esi
jbe 0x40fd10
push ebp
mov byte [esp + esi + 0x54], 0
call fcn.00427f9c
mov eax, dword [0x44f4cc]
add esp, 4
test eax, eax
jne 0x40fba2
mov eax, 0x44167c
mov ebx, dword [esp + 0x4e84]
lea edx, [esp + 0x50]
push ebx
push eax
push edx
call fcn.00417250
add esp, 0xc
test al, al
jne 0x40fcbb
push 0x44f4c8
lea eax, [esp + 0x24]
push 0x44c668
push eax
call fcn.00409f30
push 0x44c228
lea ecx, [esp + 0x50]
push eax
push ecx
mov dword [esp + 0x4e90], 1
call fcn.00416130
push ebx
lea edx, [esp + 0x2c]
push eax
push edx
mov byte [esp + 0x4e9c], 2
call fcn.00416130
add esp, 0x24
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x4e7c], 5
call fcn.00417e30
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x4e7c], 4
call fcn.00417e30
mov eax, dword [esp + 0x18]
add eax, esi
cmp eax, 0x4e20
jb 0x40fc61
push str.Config_file_too_big__unable_to_append_version._n
call fcn.00406da0
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x4e78], 0xffffffff
push 1
call fcn.00417e30
jmp 0x40fded
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x40fc6e
mov edi, 0x44167c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x50]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
push str.Appended_version__s_to_config_file._n
rep movsb byte es:[edi], byte [esi]
call fcn.00406da0
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x4e78], 0xffffffff
push 1
call fcn.00417e30
mov eax, dword [esp + 0x4e80]
push 0x4001
push eax
call fcn.004282ba
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x40fd01
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x54]
push ecx
push esi
call fcn.004285a0
push esi
call fcn.00427f9c
add esp, 0x10
mov al, 1
jmp 0x40fdef
push str.Unable_to_write_config_file__to_update_version_.__File_may_be_locked._n
call fcn.00406da0
jmp 0x40fdea
push str.Unable_to_read_config_file__to_update_version_._n
call fcn.00406da0
add esp, 4
lea edx, [esp + 0x20]
mov ecx, 0x44f200
push 0x2342
push edx
call fcn.00402690
mov eax, dword [eax + 4]
mov dword [esp + 0x4e78], 6
test eax, eax
jne 0x40fd48
mov eax, 0x44167c
mov ecx, dword [esp + 0x4e80]
push ecx
push eax
push ebx
call fcn.0040f790
mov eax, dword [esp + 0x30]
add esp, 0xc
test eax, eax
je 0x40fd81
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40fd78
dec al
push ebp
mov byte [ecx], al
call fcn.00427f9c
jmp 0x40fdea
push ecx
call fcn.00439dae
add esp, 4
push ebp
call fcn.00427f9c
jmp 0x40fdea
push str.Unable_to_open_config_file__to_update_version_._n
call fcn.00406da0
add esp, 4
lea edx, [esp + 0x30]
mov ecx, 0x44f200
push 0x2343
push edx
call fcn.00402690
mov eax, dword [eax + 4]
mov dword [esp + 0x4e78], 7
test eax, eax
jne 0x40fdc1
mov eax, 0x44167c
push esi
push eax
push ebx
call fcn.0040f790
mov eax, dword [esp + 0x40]
add esp, 0xc
test eax, eax
je 0x40fded
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40fde4
dec al
mov byte [ecx], al
jmp 0x40fded
push ecx
call fcn.00439dae
add esp, 4
xor al, al
mov ecx, dword [esp + 0x4e70]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4e6c
ret 8