Function at 0x47e910
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0xa34
mov eax, dword [0x4c75d0]
xor eax, esp
mov dword [esp + 0xa2c], eax
mov eax, dword [esp + 0xa3c]
push ebx
push ebp
mov ebp, dword [esp + 0xa40]
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
lea ecx, [esp + 0xcc]
push ecx
lea edx, [esp + 0x1d8]
mov dword [esp + 0x30], eax
mov eax, 1
push edx
push 0x4de594
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], eax
call fcn.00475880
add esp, 0x10
lea edi, [esp + 0x10]
mov ecx, 0x104
lea edx, [esp + 0xc8]
call fcn.0049ee50
test eax, eax
js 0x47e9a6
mov ecx, dword [esp + 0x10]
mov eax, 0x104
sub eax, ecx
lea ecx, [esp + ecx + 0xc8]
mov edx, 0x4de698
call fcn.0049ec80
lea eax, [esp + 0xc8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47e9b0
mov ecx, dword [str..log]
push ebx
push 0x80
sub eax, edx
push 4
lea eax, [esp + eax + 0xd0]
mov dword [eax], ecx
mov dl, byte [0x4be41c]
push ebx
push ebx
mov byte [eax + 4], dl
push 0x40000000
lea eax, [esp + 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
jne 0x47ea1b
mov ecx, dword [0x4ee004]
push 0x30
push str.Error
push str.Could_not_write_to_change_log_file
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor esi, esi
jmp 0x47ed34
test eax, eax
je 0x47ea30
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x47eab1
lea edx, [esp + 0x1d0]
push edx
push str.Edit_Log_for__s_created_by_TunerPro._r_n
lea eax, [esp + 0x640]
push 0x400
push eax
call fcn.004010b0
add esp, 0x10
lea edi, [esp + 0x10]
mov ecx, 0x400
lea edx, [esp + 0x638]
call fcn.0049ee50
test eax, eax
js 0x47ea87
mov ecx, dword [esp + 0x10]
mov eax, 0x400
sub eax, ecx
lea ecx, [esp + ecx + 0x638]
mov edx, str._r_n
call fcn.0049ec80
lea eax, [esp + 0x638]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47ea91
push 0
lea ecx, [esp + 0x24]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x644]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x38]
movzx edx, word [esp + 0x36]
movzx eax, word [esp + 0x34]
push ecx
movzx ecx, word [esp + 0x30]
push edx
movzx edx, word [esp + 0x3a]
push eax
movzx eax, word [esp + 0x3a]
push ecx
push edx
push eax
push str._.2i__.2i__.4i__.2i:_.2i:_.2i
lea ecx, [esp + 0xb0]
push 0x32
push ecx
call fcn.004010b0
mov eax, dword [esi + 0x1c]
add eax, 0xfffffffb
add esp, 0x24
cmp eax, 5
ja case.0x47eb06.9
jmp dword [eax*4 + 0x47ed58]
mov eax, dword [0x4ee0bc]
lea edx, [esp + 0x14]
push edx
push 5
push 3
push 0
push ebp
push eax
push 0xa
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call fcn.00416820
fstp st(0)
mov eax, dword [esp + 0x28]
mov ecx, dword [0x4ee0bc]
lea edx, [esp + 0x14]
push edx
push 5
push 3
push 0
push eax
push ecx
push 0xa
lea edx, [esp + 0x64]
push edx
mov ecx, esi
call fcn.00416820
fstp st(0)
mov ecx, dword [0x4ee0bc]
lea eax, [esp + 0x14]
push eax
push 3
push 3
push 0
push ebp
push ecx
push 0x1e
lea edx, [esp + 0x90]
push edx
mov ecx, esi
call fcn.00416820
fstp st(0)
mov ecx, dword [0x4ee0bc]
lea eax, [esp + 0x14]
push eax
push 3
push 0
push 0xffffffffffffffff
push 0
push ecx
push 0x1e
lea edx, [esp + 0x70]
push edx
mov ecx, esi
call fcn.00416820
fstp st(0)
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x80]
push eax
add esi, 0x20
push esi
push str.Scalar:
lea ecx, [esp + 0xac]
push ecx
push str.__20s___10s__s_changed_from__s___s__to__s___s_._r_n
lea edx, [esp + 0x258]
push 0x400
push edx
call fcn.004010b0
add esp, 0x28
jmp case.0x47eb06.9
mov eax, dword [0x4ee0bc]
push 3
push 0
push 1
push ebp
push eax
mov ecx, esi
call fcn.004128c0
test eax, eax
lea ecx, [esp + 0x74]
mov eax, 0x1e
mov edx, 0x4bca24
jne 0x47ec12
mov edx, str.Not_Set
call fcn.004a0810
mov ecx, dword [0x4ee0bc]
push 0
push 0
push 0
push 0
push ecx
mov ecx, esi
call fcn.004128c0
test eax, eax
lea ecx, [esp + 0x54]
mov eax, 0x1e
mov edx, str.Set.
jne 0x47ec44
mov edx, str.Not_Set.
call fcn.004a0810
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x78]
push eax
add esi, 0x20
push esi
push str.Flag:
lea ecx, [esp + 0xa4]
push ecx
push str.__20s___10s__s_changed_from__s_to__s._r_n
lea edx, [esp + 0x250]
push 0x400
push edx
call fcn.004010b0
add esp, 0x20
jmp case.0x47eb06.9
add esi, 0x20
push esi
push str.Table:
lea eax, [esp + 0x9c]
push eax
push str.__20s___10s__s_changed._r_n
push 0x400
lea ecx, [esp + 0x24c]
push ecx
jmp 0x47eced
add esi, 0x20
push esi
push str.Function:
lea edx, [esp + 0x9c]
push edx
push str.__20s___10s__s_changed._r_n
push 0x400
lea eax, [esp + 0x24c]
push eax
jmp 0x47eced
add esi, 0x20
push esi
push str.Patch:
lea ecx, [esp + 0x9c]
push ecx
push str.__20s___10s__s_changed._r_n
push 0x400
lea edx, [esp + 0x24c]
push edx
call fcn.004010b0
add esp, 0x18
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x238]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47ed10
push 0
lea ecx, [esp + 0x24]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x244]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [esp + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xa3c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042dbe7
add esp, 0xa34
ret