Function at 0x4ca9b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b1c3
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x57b728]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
cmp byte [esi], 0
mov edi, dword [ebp + 8]
jne 0x4ca9fa
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x4ca9fa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x74]
mov dword [esi + 8], 0xffffffff
call fcn.00417cd0
mov eax, dword [ebp - 0x68]
mov dword [ebp - 4], 0
lea ecx, [eax - 1]
cmp ecx, eax
jae 0x4caa24
mov eax, dword [ebp - 0x70]
mov byte [eax + ecx], 0x68
mov eax, dword [ebp - 0x6c]
mov edx, 0x68
mov word [eax + ecx*2], dx
mov eax, dword [esi + 0x3c]
push dword [ebp - 0x70]
mov eax, dword [eax + 4]
lea edi, [esi + 0x3c]
lea ecx, [esi + 0x3c]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, eax
test ebx, ebx
je 0x4caab1
cmp dword [0x57604c], str.The_indexes__data.sah_file__cannot_be_read._nReceived_error_was:
lea ecx, [esi + 0x78]
jne 0x4caa62
call fcn.00419670
jmp 0x4caa70
push 0
push 0xffffffffffffffff
push str.The_indexes__data.sah_file__cannot_be_read._nReceived_error_was:
call fcn.00418a80
mov esi, dword [0x57604c]
push ebx
push eax
call fcn.00418470
add esp, 8
mov ecx, eax
cmp esi, dword [0x57604c]
jne 0x4caa91
call fcn.00419670
jmp 0x4caa9b
push 0
push 0xffffffffffffffff
push esi
call fcn.00418a80
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call fcn.00417dd0
mov eax, ebx
jmp 0x4cacd1
mov ax, word [0x546ad0]
mov word [ebp - 0x48], ax
mov al, byte [0x546ad2]
xorps xmm0, xmm0
mov byte [ebp - 0x46], al
push 0x33
lea eax, [ebp - 0x48]
push eax
mov ecx, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x41], 0
mov dword [ebp - 0x45], 0
movq qword [ebp - 0x3d], xmm0
movq qword [ebp - 0x35], xmm0
movq qword [ebp - 0x2d], xmm0
movq qword [ebp - 0x25], xmm0
movq qword [ebp - 0x1d], xmm0
call fcn.00417490
lea ecx, [ebp - 0x48]
cmp word [ecx], 0x4153
jne 0x4cab12
cmp byte [ecx + 2], 0x48
je 0x4cab93
mov eax, dword [edi]
lea ecx, [esi + 0x3c]
mov eax, dword [eax + 4]
push 0
add ecx, eax
call fcn.00417a70
push 1
push 0
lea ecx, [ebp - 0xa0]
call fcn.00413c20
lea eax, [ebp - 0xa0]
push eax
push edi
mov byte [ebp - 4], 2
call fcn.004ca700
add esp, 8
lea eax, [ebp - 0xa0]
push eax
mov ecx, edi
call fcn.00413d20
push 0x33
lea eax, [ebp - 0x48]
push eax
mov ecx, edi
call fcn.00417490
lea ecx, [ebp - 0x48]
cmp word [ecx], 0x4153
jne 0x4cac7f
cmp byte [ecx + 2], 0x48
jne 0x4cac7f
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.00413cc0
lea ecx, [ebp - 0x8c]
call fcn.00416dc0
mov eax, dword [ebp - 0x68]
mov dword [ebp - 4], 0
lea ecx, [eax - 1]
cmp ecx, eax
jae 0x4cabab
mov eax, dword [ebp - 0x70]
mov byte [eax + ecx], 0x66
mov eax, dword [ebp - 0x6c]
push 0
push 0x80
push 3
push 0
push 0
mov edx, 0x66
push 1
mov word [eax + ecx*2], dx
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x4cac44
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x57604c], 0x546b70
mov edi, eax
lea ecx, [esi + 0x78]
jne 0x4cabf5
call fcn.00419670
jmp 0x4cac03
push 0
push 0xffffffffffffffff
push str.The_data.saf_file_cannot_be_opened_for_reading._nReceived_error_was:
call fcn.00418a80
mov esi, dword [0x57604c]
push edi
push eax
call fcn.00418470
add esp, 8
mov ecx, eax
cmp esi, dword [0x57604c]
jne 0x4cac24
call fcn.00419670
jmp 0x4cac2e
push 0
push 0xffffffffffffffff
push esi
call fcn.00418a80
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call fcn.00417dd0
mov eax, edi
jmp 0x4cacd1
lea ecx, [ebp - 0x50]
push ecx
push eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0x50]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x74]
mov dword [esi + 0x14], eax
mov byte [esi], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00417dd0
xor eax, eax
jmp 0x4cacd1
cmp dword [0x57604c], str.The_indexes__data.sah_file__are_invalid._nThe_file_doesnt_start_with_SAH._n
lea ecx, [esi + 0x78]
jne 0x4cac95
call fcn.00419670
jmp 0x4caca3
push 0
push 0xffffffffffffffff
push str.The_indexes__data.sah_file__are_invalid._nThe_file_doesnt_start_with_SAH._n
call fcn.00418a80
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.00413cc0
lea ecx, [ebp - 0x8c]
call fcn.00416dc0
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call fcn.00417dd0
mov eax, 0xd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004eff68
mov esp, ebp
pop ebp
ret 4