Function at 0x4709f0
Capabilities:
Get file size

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 0x531439
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x5b8
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5b8], ecx
mov eax, dword [0x5dec30]
lea edi, [ecx + 0x114]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x5bc], eax
lea ecx, [edi + 4]
mov dword [ebp - 4], 0
call fcn.00468200
push 8
mov ecx, edi
call fcn.00468250
mov byte [ebp - 0x5c0], 0
mov dword [ebp - 0x5c4], 0
push ecx
lea ecx, [ebp - 0x3a8]
mov dword [ebp - 4], 1
call fcn.0045c820
mov dword [ebp - method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [ebp - 0x54], vtable.t_fileRead.0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
push 0
push 0
push 0
push 0
push 0
push esi
lea ecx, [ebp - 0x4d0]
mov byte [ebp - 4], 2
call fcn.00451610
push 0
lea eax, [ebp - 0x4d0]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x5c4]
push eax
lea ecx, [ebp - 0x3a8]
call fcn.0045c980
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
jne 0x470af8
mov byte [ebp - 0x5a9], 0
jmp 0x470b30
lea eax, [ebp - 0x5b0]
mov dword [ebp - 0x5b0], 0
push eax
push dword [ebp - 0x3a4]
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x470b20
call edi
test eax, eax
je 0x470b20
xor esi, esi
mov dword [ebp - 0x50], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
mov byte [ebp - 0x5a9], 1
mov byte [ebp - 4], 2
cmp byte [ebp - 0x3b4], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x470b60
mov eax, dword [ebp - 0x4c8]
lea ecx, [ebp - 0x4c4]
cmp eax, ecx
je 0x470b60
push eax
call fcn.004e1b56
add esp, 4
cmp byte [ebp - 0x5a9], 0
je 0x470e1e
lea eax, [ebp - 0x5b0]
mov dword [ebp - 0x5b0], 0
push eax
push dword [ebp - 0x3a4]
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x470b95
call edi
test eax, eax
je 0x470b95
xor esi, esi
lea eax, [esi + 1]
push eax
call fcn.004e1b5b
mov edi, eax
add esp, 4
mov dword [ebp - 0x5b0], edi
test edi, edi
je 0x470e1e
push esi
push edi
lea eax, [ebp - 0x5c4]
push eax
lea ecx, [ebp - 0x54]
call fcn.00469aa0
test al, al
je 0x470dff
lea ecx, [ebp - 0x3a8]
mov byte [esi + edi], 0
call fcn.0045ce70
push 1
lea ecx, [ebp - 0x5a8]
call fcn.00468ce0
push edi
lea ecx, [ebp - 0x5a8]
call fcn.00468f10
mov ecx, eax
mov dword [ebp - 0x5b4], ecx
test ecx, ecx
je 0x470dff
cmp byte [ecx], 0
je 0x470dff
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 4
mov al, byte [ecx]
test al, al
je 0x470dc3
mov edi, ecx
cmp al, 0xd
je 0x470c40
cmp al, 0xa
je 0x470c40
mov al, byte [edi + 1]
inc edi
cmp al, 0xd
jne 0x470c31
nop dword [eax]
mov al, byte [edi]
cmp al, 0xd
je 0x470c4a
cmp al, 0xa
jne 0x470c50
mov byte [edi], 0
inc edi
jmp 0x470c40
push 0x20
push ecx
call fcn.004da140
add esp, 8
test eax, eax
je 0x470db1
lea edx, [eax + 1]
mov byte [eax], 0
mov ecx, edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x470c80
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.00422610
lea ecx, [ebp - 0x2c]
call fcn.00421e60
movups xmm0, xmmword [ebp - 0x44]
mov ecx, dword [ebp - 0x5b8]
lea eax, [ebp - 0x2c]
push eax
movups xmmword [ebp - 0x2c], xmm0
lea eax, [ebp - 0x5c8]
movq xmm0, qword [ebp - 0x34]
lea ecx, [ecx + 0x114]
mov esi, dword [ecx + 4]
push eax
movq qword [ebp - 0x1c], xmm0
call fcn.00467df0
cmp dword [eax], esi
mov esi, dword [ebp - 0x5b4]
jne 0x470d48
push esi
lea ecx, [ebp - 0x44]
call fcn.004208d0
push eax
push ecx
mov ecx, dword [ebp - 0x5b8]
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 5
lea ecx, [ecx + 0x114]
call fcn.00470e80
add esp, 4
mov ecx, eax
call fcn.00470f80
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x470d48
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x1000
jb 0x470d3f
test cl, 0x1f
jne 0x470dbe
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x470dbe
sub ecx, eax
sub ecx, 4
cmp ecx, 0x1f
ja 0x470dbe
mov ecx, eax
push ecx
call fcn.004d6cf8
add esp, 4
cmp dword [ebp - 0x5bc], 0
je 0x470db1
push esi
lea ecx, [ebp - 0x44]
call fcn.004208d0
push eax
push ecx
mov ecx, dword [ebp - 0x5bc]
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 6
call fcn.00470e80
add esp, 4
mov ecx, eax
call fcn.00470f80
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x470db1
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x1000
jb 0x470da8
test cl, 0x1f
jne 0x470dbe
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x470dbe
sub ecx, eax
sub ecx, 4
cmp ecx, 0x1f
ja 0x470dbe
mov ecx, eax
push ecx
call fcn.004d6cf8
add esp, 4
mov ecx, edi
mov dword [ebp - 0x5b4], ecx
jmp 0x470c21
call fcn.004e1d90
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x470df9
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x1000
jb 0x470df0
test cl, 0x1f
jne 0x470dbe
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x470dbe
sub ecx, eax
cmp ecx, 4
jb 0x470dbe
cmp ecx, 0x23
ja 0x470dbe
mov ecx, eax
push ecx
call fcn.004d6cf8
add esp, 4
mov edi, dword [ebp - 0x5b0]
push edi
call fcn.004e1b56
mov eax, dword [ebp - 0x5b8]
add esp, 4
cmp dword [eax + 0x11c], 0
seta byte [ebp - 0x5a9]
jmp 0x470e25
mov byte [ebp - 0x5a9], 0
lea ecx, [ebp - 0x3a8]
mov dword [ebp - method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [ebp - 0x54], vtable.t_byteStreamRead.0
call fcn.0045c8c0
lea ecx, [ebp - 0x5c4]
call fcn.00450c20
mov al, byte [ebp - 0x5a9]
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.004d6cfd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc