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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ade6d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x120
mov eax, dword [0x4cfa1c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x48]
mov dword [ebp - 0x130], edi
push eax
mov ecx, esi
mov dword [ebp - 0x12c], 0
call fcn.004366b0
add esp, 4
mov dword [ebp - 0x18], 0x4cfae0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x54], xmm0
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x1c], eax
test ecx, ecx
je 0x46a76d
cmp ecx, 1
setne al
test al, al
je 0x46a771
push 0xb8
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00499a10
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x46a195
mov eax, dword [esi]
sub esp, 0xc
lea ecx, [ebp - 0x128]
push eax
call fcn.00479580
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x12c], eax
mov dword [ebp - 4], 8
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 9
cmp dword [ebp - 0xcc], 0
jne 0x46a4f5
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x46a21b
mov ecx, dword [esi]
call fcn.00475e00
mov edx, eax
mov dword [ebp - 0x40], 0
mov ecx, esi
call fcn.00475fe0
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 0xa
test eax, eax
jne 0x46a305
mov byte [edi + 0x18], al
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x12c], 1
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x34]
call fcn.00446fc0
mov byte [ebp - 4], 0
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x12c], eax
mov dword [ebp - 4], 0x11
lea ecx, [ebp - 0x118]
call fcn.004653f0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x12c], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xb8], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 0xb8], vtable.std::ios_base.0
call fcn.0049df52
add esp, 4
jmp 0x46a786
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp - 0x34]
push 0
push esi
call fcn.004459d0
push 0
push 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x4c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x4c]
push 0
push ecx
push esi
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46a443
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
movups xmm0, xmmword [ebp - 0x34]
mov dword [edi + 0x14], 0
mov byte [ebp - 0x34], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 4], 0x14
mov byte [edi + 0x18], 1
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x12c], 1
mov byte [ebp - 4], 9
push esi
call dword [0x4bd7a0]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x34]
call fcn.00446fc0
mov byte [ebp - 4], 0
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x12c], eax
mov dword [ebp - 4], 0x1b
lea ecx, [ebp - 0x118]
call fcn.004653f0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x12c], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0xb8], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
jmp 0x46a2e0
mov byte [edi + 0x18], 0
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x12c], 1
mov byte [ebp - 4], 9
push esi
call dword [0x4bd7a0]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x34]
call fcn.00446fc0
mov byte [ebp - 4], 0
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x12c], eax
mov dword [ebp - 4], 0x24
lea ecx, [ebp - 0x118]
call fcn.004653f0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x12c], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0xb8], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
jmp 0x46a2e0
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x128]
push 2
sub esp, 8
mov eax, dword [eax + 4]
and dword [ebp + eax - 0x114], 0xfffffffe
call fcn.00477040
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x128]
call fcn.00476f20
mov ecx, dword [eax + 8]
add ecx, dword [eax]
cmp dword [ebp - 0x20], ecx
jae 0x46a543
mov esi, dword [ebp - 0x24]
sub ecx, esi
push dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0044a090
mov dword [ebp - 0x24], esi
push 0
sub esp, 8
lea ecx, [ebp - 0x128]
call fcn.00477040
mov eax, dword [ebp - 0x128]
xorps xmm0, xmm0
mov byte [ebp - 0x17], 0
mov word [ebp - 0x40], 1
movups xmmword [ebp - 0x70], xmm0
mov eax, dword [eax + 4]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp + eax - 0xf0]
test ecx, ecx
mov dword [ebp - 0x50], ecx
sete byte [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0047cda0
add esp, 8
test al, al
je 0x46a5c6
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
jmp 0x46a5db
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x70]
push dword [ebp - 0x1c]
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call fcn.0047ce40
mov byte [ebp - 4], 0x27
mov ecx, dword [ebp - 0x5c]
cmp dword [ebp - 0x20], ecx
jae 0x46a60d
movups xmm0, xmmword [ebp - 0x70]
movups xmm1, xmmword [ebp - 0x34]
movq xmm2, qword [ebp - 0x24]
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [ebp - 0x60]
movq qword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x70], xmm1
movq qword [ebp - 0x60], xmm2
jmp 0x46a623
push dword [ebp - 0x60]
cmp ecx, 0x10
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x34]
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.004472d0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x70]
call fcn.00446fc0
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x128]
xor edx, edx
push 0
add ecx, dword [eax + 4]
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
push eax
call fcn.00434a00
lea ecx, [ebp - 0x118]
call fcn.00465a10
test eax, eax
jne 0x46a68b
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x128]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00434a00
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
movups xmm0, xmmword [ebp - 0x34]
mov dword [edi + 0x14], 0
mov byte [ebp - 0x34], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 4], 0x28
mov byte [edi + 0x18], 1
mov byte [ebp - 4], 9
mov dword [ebp - 0x12c], 1
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x34]
call fcn.00446fc0
mov byte [ebp - 4], 0
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x12c], eax
mov dword [ebp - 4], 0x2f
lea ecx, [ebp - 0x118]
call fcn.004653f0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x12c], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0xb8], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
jmp 0x46a2e0
test eax, eax
jne 0x46a7a6
mov byte [edi + 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x12c], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00497d9d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push esi
lea edx, [ebp - 0x1c]
mov ecx, str.exists
call fcn.00435e40
int3