Function at 0x4278c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x6c
push 0xffffffffffffffff
push 0x47e7c7
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
push ebx
push esi
push edi
mov eax, dword [0x4bb27c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp + 0x4c], 0
mov esi, dword [ebp + 0x78]
mov eax, dword [esi]
sub eax, 0x10
mov dword [ebp - 4], 1
push eax
mov byte [ebp - 4], 6
call fcn.00403120
add eax, 0x10
add esp, 4
mov dword [ebp + 0x60], eax
lea eax, [ebp + 0x60]
mov bl, 7
push eax
mov byte [ebp - 4], bl
call fcn.00424910
add esp, 4
test al, al
jne 0x42796d
lea ecx, [ebp + 0x68]
push esi
push ecx
call fcn.00426160
add esp, 8
push eax
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], 8
call fcn.00403000
mov eax, dword [ebp + 0x68]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42796d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x60]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
sub esi, 0xffffffff
neg esi
sbb esi, esi
and esi, eax
mov dword [ebp + 0x58], esi
mov byte [ebp - 4], 9
jne 0x427a25
push str.CNFileUtilities::ReadTextFile
lea ecx, [ebp + 0x68]
call fcn.004031f0
push str..NFileUtilities.cpp
lea ecx, [ebp + 0x64]
mov byte [ebp - 4], 0xa
call fcn.004031f0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 0xb
call edi
test eax, eax
jg 0x4279d5
call edi
mov esi, eax
jmp 0x4279e5
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push 0
call edi
push eax
lea edx, [ebp + 0x5c]
push edx
call fcn.00435510
add esp, 0xc
lea ecx, [ebp + 0x68]
push ecx
push 0x684
lea edx, [ebp + 0x64]
push edx
push esi
push eax
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 0xc
call fcn.0041fce0
push 0x4b1c2c
lea eax, [ebp - 0xf0]
push eax
call fcn.00466ffb
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x427a99
mov edx, dword [0x4be0cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4be0cc
call eax
mov edi, dword [ebp + 0x74]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp + 0x4c], 1
cmp esi, 0xffffffff
je 0x427a5f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x60]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427a82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x6c
mov esp, ebp
pop ebp
ret
push 0
push edi
lea ecx, [ebp + 0x3c]
call fcn.00435bd0
mov edx, dword [ebp + 0x3c]
mov eax, dword [edx + 0x14]
lea ecx, [ebp + 0x3c]
mov byte [ebp - 4], 0xd
mov dword [ebp + 0x50], 0
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp + 0x50]
push ecx
push edi
push eax
push esi
call ebx
test eax, eax
je 0x427ae6
cmp edi, dword [ebp + 0x50]
jbe 0x427ae9
mov edx, dword [ebp + 0x3c]
mov eax, dword [edx + 0x14]
lea ecx, [ebp + 0x3c]
call eax
mov ecx, dword [ebp + 0x50]
add eax, ecx
jmp 0x427ac0
cmp edi, dword [ebp + 0x50]
je 0x427b73
push str.CNFileUtilities::ReadTextFile
lea ecx, [ebp + 0x68]
call fcn.004031f0
push str..NFileUtilities.cpp
lea ecx, [ebp + 0x64]
mov byte [ebp - 4], 0xe
call fcn.004031f0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 0xf
call edi
test eax, eax
jg 0x427b23
call edi
mov esi, eax
jmp 0x427b33
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push 0
call edi
push eax
lea edx, [ebp + 0x5c]
push edx
call fcn.00435510
add esp, 0xc
lea ecx, [ebp + 0x68]
push ecx
push 0x699
lea edx, [ebp + 0x64]
push edx
push esi
push eax
lea ecx, [ebp - 0x400]
mov byte [ebp - 4], 0x10
call fcn.0041fce0
push 0x4b1c2c
lea eax, [ebp - 0x400]
push eax
call fcn.00466ffb
mov ecx, dword [ebp + 0x7c]
mov edi, dword [ebp + 0x74]
push ecx
lea edx, [ebp + 0x3c]
push edx
push edi
call fcn.00425440
or dword [ebp + 0x4c], 1
add esp, 0xc
lea ecx, [ebp + 0x3c]
mov byte [ebp - 4], 9
call fcn.00435f80
test esi, esi
je 0x427a5f
jmp 0x427a53