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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558670
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x5ec3c8]
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 ebx, ecx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 0x4c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
cmp ecx, 0xffffffff
jne 0x4707ee
call fcn.00425d70
test eax, eax
jns 0x4707eb
or ecx, 0xffffffff
jmp 0x4707f4
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov edi, ecx
mov dword [ebx + 0x54], ecx
push edi
mov dword [ebp - 4], 0
call fcn.0050aaf5
add esp, 4
mov esi, eax
push edi
push 0
push esi
call fcn.0050cdd0
lea edi, [ebx + 0x5c]
add esp, 0xc
lea eax, [ebp - 0x34]
mov dword [ebp - 0x18], edi
cmp edi, eax
je 0x47082f
mov eax, dword [edi]
mov dword [edi], esi
test eax, eax
je 0x47083c
push eax
jmp 0x470834
test esi, esi
je 0x47083c
push esi
call fcn.0050aa90
add esp, 4
push 0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 0x54]
mov dword [ebp - 0x20], 0
push dword [edi]
push dword [ebx + 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47086f
call fcn.00425d70
test eax, eax
js 0x4709a2
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x20], eax
jne 0x4709a2
mov ecx, dword [ebx + 0x48]
add ebx, 0x34
mov eax, ebx
mov edx, dword [ebx + 0x10]
cmp ecx, 8
jb 0x470890
mov eax, dword [ebx]
cmp edx, 2
jne 0x4708bd
mov esi, 0x5d114c
mov edi, edx
sub eax, esi
mov dword [ebp - 0x2c], eax
movzx ecx, word [eax + esi]
movzx eax, word [esi]
cmp cx, ax
jne 0x4708ba
mov eax, dword [ebp - 0x2c]
add esi, 2
sub edi, 1
jne 0x4708a1
jmp 0x4708ec
mov ecx, dword [ebx + 0x14]
cmp ecx, 8
jb 0x4708c4
mov ebx, dword [ebx]
cmp edx, 4
jne 0x47099e
mov esi, str.html
sub ebx, esi
movzx ecx, word [ebx + esi]
movzx eax, word [esi]
cmp cx, ax
jne 0x47099e
add esi, 2
sub edx, 1
jne 0x4708d4
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
push eax
mov dword [ebp - 0x2c], edx
mov ecx, dword [ecx]
call fcn.00458060
add esp, 4
test al, al
jne 0x470995
call fcn.0044f060
push 1
lea ecx, [ebp - 0x17c]
push ecx
mov ecx, eax
call fcn.0044f5c0
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], str.ProtocolFileHandler.cpp
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0x24], 0xa6
call fcn.0041a580
mov edx, str.Invalid_file_signature
lea ecx, [ebp - 0x17c]
call fcn.0041a5e0
lea ecx, [ebp - 0x124]
call fcn.0044dd10
mov dword [ebp - 4], 4
lea eax, [ebp - 0x124]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.004f317c
add esp, 4
xor al, al
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.0050a47b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
mov dword [ecx + 0x54], eax
mov al, 1
jmp 0x470979
call fcn.0044f060
push 1
lea ecx, [ebp - 0xdc]
push ecx
mov ecx, eax
call fcn.0044f5c0
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], str.ProtocolFileHandler.cpp
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0x24], 0x9d
call fcn.0041a580
mov edx, str.Failed_to_read_the_file
lea ecx, [ebp - 0xdc]
call fcn.0041a5e0
lea ecx, [ebp - 0x84]
call fcn.0044dd10
mov dword [ebp - 4], 3
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], vtable.std::ios_base.0
jmp 0x47096e