Function at 0x430e97
Capabilities:
Get file size
Read file via mapping
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea eax, [esi + 4]
mov byte [ebp - 1], bl
push eax
lea eax, [ebp - 0x114]
push str._sTranLogInfo.dat
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x114]
push ebx
push bind
push 4
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, ebx
mov dword [esi + 0x12c], eax
jne 0x430f09
lea eax, [ebp - 0x114]
push eax
push str.CTranLog::CreateInfo_CreateFile__s_return_NULL
push 0x7d1
push ebx
call fcn.00426a9a
add esp, 0x10
jmp 0x431186
mov ecx, dword [esi + 0x10c]
push ebx
inc ecx
push eax
lea edi, [ecx + ecx*2]
shl edi, 2
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x430f49
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x114]
push eax
push str.CTranLog::CreateInfo_GetFileSize__s_fail_errno_d
push 0x7d1
push ebx
call fcn.00426a9a
add esp, 0x14
jmp 0x431186
mov ecx, dword [esi + 0x114]
cmp ecx, ebx
jne 0x430f68
cmp eax, edi
jbe 0x430f64
push dword [esi + 0x10c]
push str.CTranLog::CreateInfo_detect_a_error__please_restore_parameters_maxas_to__d__or_do_a_cold_start
jmp 0x430ef6
cmp ecx, ebx
je 0x430fc3
cmp eax, ebx
je 0x430fc3
push ebx
push ebx
push ebx
mov dword [ebp - 0xc], ebx
push dword [esi + 0x12c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x430f98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x114]
push eax
push str.CTranLog::CreateInfo_SetFilePointer__s_fail__errno_d
jmp 0x430f36
push dword [esi + 0x12c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x430fc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x114]
push eax
push str.CTranLog::CreateInfo_SetEndOfFile__s_fail__errno_d
jmp 0x430f36
mov eax, dword [ebp - 0xc]
cmp eax, edi
jae 0x43105f
mov ecx, edi
sub ecx, eax
push ecx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
cmp eax, ebx
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
jne 0x430fee
push str.CTranLog::CreateInfo_malloc__d__return_NULL
jmp 0x430ef6
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10]
push ebx
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [esi + 0x12c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x431036
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_free]
mov dword [esp], str.CTranLog::CreateInfo_WriteFile_fail
push 0x7d1
push ebx
call fcn.00426a9a
add esp, 0xc
jmp 0x431186
mov eax, dword [ebp - 0xc]
push dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
je 0x431058
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push str.CTranLog::CreateInfo_WriteFile_fail___d_bytes__success__d
jmp 0x430f36
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push dword [esi + 0x108]
lea eax, [ebp - 0x114]
push str.TranLogInfoFileMapping_010d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push edi
push ebx
push 4
push ebx
push dword [esi + 0x12c]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [esi + 0x128], eax
jne 0x4310ad
lea eax, [ebp - 0x114]
push eax
push str.CTranLog::CreateInfo_CreateFileMapping__s_return_NULL
jmp 0x430ef6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push ebx
push ebx
push 6
push dword [esi + 0x128]
cmp eax, 0xb7
setne byte [ebp - 2]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esi + 0x130], eax
jne 0x4310e8
lea eax, [ebp - 0x114]
push eax
push str.CTranLog::CreateInfo_MapViewOfFile__s__return_NULL
jmp 0x430ef6
xor ecx, ecx
cmp dword [esi + 0x10c], ebx
jle 0x431149
mov dword [ebp - 8], 0xc
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x11c]
add eax, dword [esi + 0x130]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x11c]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 4], ebx
jg 0x431120
mov dword [eax + 4], 1
cmp dword [esi + 0x114], ebx
je 0x43113c
cmp byte [ebp - 2], bl
je 0x43113c
mov eax, dword [esi + 0x11c]
mov eax, dword [eax + ecx*4]
mov dword [eax], 1
add dword [ebp - 8], 0xc
inc ecx
cmp ecx, dword [esi + 0x10c]
jl 0x4310f9
mov eax, dword [esi + 0x130]
mov ecx, dword [eax + 8]
cmp ecx, dword [esi + 0x110]
jle 0x431165
push ecx
push str.CTranLog::CreateInfo_detect_a_error__please_restore_parameters_luwsize_to__d__or_do_a_cold_start
jmp 0x430ef6
cmp byte [ebp - 2], bl
je 0x431182
mov ecx, dword [esi + 0x10c]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x130]
mov ecx, dword [esi + 0x110]
mov dword [eax + 8], ecx
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret