Function at 0x40a520
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540a00
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x5868f4]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x428], edx
mov esi, ecx
mov dword [ebp - 0x42c], esi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x43c], edi
call fcn.004032d0
mov dword [ebp - 0x420], eax
mov eax, dword [0x58b9d4]
test eax, eax
je 0x40a5ab
mov esi, dword [0x58b9d8]
mov ecx, esi
push 1
push 1
push eax
push dword [0x58b4cc]
call dword [0x548398]
call esi
mov esi, dword [ebp - 0x42c]
push 0
push 0x80
push 3
push 0
push dword [ebp - 0x428]
push 0x80000000
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x428], eax
cmp eax, 0xffffffff
jne 0x40a636
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ebx, eax
lea ecx, [ebp - 0x41c]
push ebx
call fcn.00407db0
lea eax, [ebp - 0x41c]
mov ecx, esi
push eax
call fcn.004032d0
push eax
push str.Failed_to_open_file___s__for_reading:__s
push 0
push 2
push 0x56621c
push 0
push 0
push str.Utilities::ReadFileContent
push 0x17be
push str.Utilities.cpp
lea ecx, [ebp - 0x454]
call fcn.00424320
push eax
call fcn.00424820
add esp, 0x1c
jmp 0x40a793
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x434], ebx
push ecx
push eax
mov dword [ebp - 0x430], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x40a6b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ebx, eax
lea ecx, [ebp - 0x41c]
push ebx
call fcn.00407db0
lea eax, [ebp - 0x41c]
mov ecx, esi
push eax
call fcn.004032d0
push eax
push str.Failed_to_get_the_size_of_file___s_:__s
push 0
push 2
push 0x566278
push 0
push 0
push str.Utilities::ReadFileContent
push 0x17c7
push str.Utilities.cpp
lea ecx, [ebp - 0x454]
call fcn.00424320
push eax
call fcn.00424820
add esp, 0x1c
jmp 0x40a782
cmp dword [ebp - 0x430], ebx
je 0x40a701
mov ecx, esi
mov ebx, 0xdf
call fcn.004032d0
push eax
push str.File___s__is_too_large_to_be_loaded_into_memory.
push 0
push 2
push 0x5662e4
push 0
push 0
push str.Utilities::ReadFileContent
push 0x17cf
push str.Utilities.cpp
lea ecx, [ebp - 0x454]
call fcn.00424320
push eax
call fcn.00424820
add esp, 0x18
jmp 0x40a782
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x40a782
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0040af30
mov dword [ebp - 4], 0xffffffff
xor edi, edi
mov esi, dword [ebp - 0x434]
mov dword [ebp - 0x420], edi
test esi, esi
je 0x40a77c
mov ecx, esi
cmp esi, 0x4000
jb 0x40a742
mov ecx, 0x4000
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 0x420]
push ecx
push edx
push ecx
mov eax, dword [eax]
mov ecx, dword [ebp - 0x428]
lea edx, [eax + edi]
call fcn.00430d70
add esp, 0xc
test eax, eax
je 0x40a800
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x40a7ba
add edi, eax
sub esi, eax
jne 0x40a733
mov edi, dword [ebp - 0x424]
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x40a793
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x40a79c
mov eax, dword [edi]
mov dword [edi + 4], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x42c]
call fcn.004032d0
push eax
push str.Failed_to_completely_read_the_file___s_
push 0
push 2
push 0x566410
push 0
push 0
push str.Utilities::ReadFileContent
push 0x17f6
push str.Utilities.cpp
lea ecx, [ebp - 0x46c]
call fcn.00424320
push eax
call fcn.00424820
add esp, 0x18
jmp 0x40a77c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ebx, eax
lea ecx, [ebp - 0x41c]
push ebx
call fcn.00407db0
mov ecx, dword [ebp - 0x42c]
lea eax, [ebp - 0x41c]
push eax
call fcn.004032d0
push eax
push str.Failed_to_read_file___s_:__s
push 0
push 2
push 0x5663b8
push 0
push 0
push str.Utilities::ReadFileContent
push 0x17ef
push str.Utilities.cpp
lea ecx, [ebp - 0x454]
call fcn.00424320
push eax
call fcn.00424820
add esp, 0x1c
jmp 0x40a77c