Function at 0x61024830
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov dword [ebp - 0x64], eax
mov eax, dword [0x611630ec]
mov dword [ebp - 0x68], edx
test byte [eax + 0x10], 1
je 0x610249c0
mov edx, dword [ebp - 0x64]
sub esp, 0x230
mov edi, 0x220
lea esi, [esp + 0x4b]
sub esp, 0x280
and esi, 0xfffffff0
mov eax, dword [edx]
mov dword [esp], edx
lea ebx, [esp + 0x4b]
and ebx, 0xfffffff0
call dword [eax + 0xe4]
mov dword [esp + 0xc], edi
mov edx, 1
lea edi, [ebp - 0x60]
mov dword [esp + 0x10], edx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov eax, dword [eax]
mov dword [esp], eax
call fcn.610fdf98
sub esp, 0x14
test eax, eax
js 0x61024b46
mov ecx, dword [ebp - 0x64]
mov eax, dword [ecx]
mov dword [esp], ecx
call dword [eax + 0xe4]
mov dword [esp + 8], ebx
mov ecx, 0x12
mov edx, 0x270
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 4], edi
mov eax, dword [eax]
mov dword [esp], eax
call fcn.610fde80
sub esp, 0x14
test eax, eax
js 0x61024981
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 0x64]
mov dword [edx + 0x40], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x40]
mov edx, dword [ebx + 0x44]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov eax, dword [esi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
mov ecx, edx
or ecx, eax
je 0x61024a97
lea eax, [ebx + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 4], edx
mov dword [esp], eax
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
call sym.__ZN13fhandler_base12fstat_helperEP8__stat649_FILETIMES2_S2_myxymm_68
sub esp, 0x3c
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x6110a820], 1
je 0x610249c0
mov dword [esp], eax
mov esi, str._u__NtQueryInformationFile_
mov ebx, str.int_fhandler_base::fstat_by_handle___stat64_
call fcn.610fe0d8
sub esp, 4
mov ecx, 0x40
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
mov edx, dword [ebp - 0x64]
lea esi, [ebp - 0x58]
mov eax, dword [edx]
mov dword [esp], edx
call dword [eax + 0xe4]
mov dword [esp + 4], esi
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_GetFileInformationByHandle
sub esp, 8
test byte [0x6110a820], 1
mov ebx, eax
jne 0x61024aa0
test ebx, ebx
je 0x61024b00
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x64]
mov dword [ecx + 0x40], eax
mov dword [esp + 0x38], eax
xor edi, edi
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x34], eax
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
mov ebx, ecx
xor ecx, ecx
mov edx, ebx
mov eax, ecx
or edx, edi
or eax, esi
mov dword [esp + 0x2c], eax
mov eax, 0xffffffff
xor edi, edi
mov dword [esp + 0x24], eax
mov eax, 0xffffffff
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], eax
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
mov ebx, ecx
xor ecx, ecx
mov edx, ebx
mov eax, ecx
or edx, edi
or eax, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x18], eax
mov ebx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ecx
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 0xc], edx
mov dword [esp], ecx
mov edx, dword [ebp - 0x68]
call sym.__ZN13fhandler_base12fstat_helperEP8__stat649_FILETIMES2_S2_myxymm_68
sub esp, 0x3c
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 0x10]
jmp 0x6102495f
mov edx, dword [ebp - 0x64]
mov eax, dword [edx]
mov dword [esp], edx
call dword [eax + 0xe4]
mov edx, dword [ebp - 0x64]
mov eax, dword [eax]
add edx, 0x90
mov dword [esp + 0x14], edx
mov edx, str._d__GetFileInformationByHandle___s___d_
mov dword [esp + 0x18], eax
mov eax, str.int_fhandler_base::fstat_by_handle___stat64_
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
test ebx, ebx
jne 0x610249f9
lea esi, [esi]
lea edi, [edi]
cld
mov edx, dword [ebp - 0x64]
mov eax, ebx
mov ecx, 0xd
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [edx]
mov dword [esp], edx
call dword [eax + 0xe4]
lea edx, [ebp - 0x38]
mov dword [esp + 4], edx
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_GetFileSize
mov dword [ebp - 0x34], eax
sub esp, 8
inc eax
je 0x61024bdc
mov ecx, dword [ebp - 0x64]
mov eax, dword [ecx + 0x40]
mov dword [ebp - 0x58], eax
jmp 0x61024a02
test byte [0x6110a820], 1
jne 0x61024ba1
mov dword [esi + 8], 0
mov edx, dword [ebp - 0x64]
mov eax, dword [edx]
mov dword [esp], edx
call dword [eax + 0xe4]
mov dword [esp + 8], ebx
mov ecx, 0x12
mov edx, 0x270
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 4], edi
mov eax, dword [eax]
mov dword [esp], eax
call fcn.610fde80
sub esp, 0x14
test eax, eax
js 0x61024981
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebp - 0x64]
mov dword [ecx + 0x40], eax
jmp 0x610248f1
mov dword [esp], eax
call fcn.610fe0d8
sub esp, 4
mov dword [esp + 0x10], eax
mov eax, str._u__NtQueryVolumeInformationFile_
mov dword [esp + 0xc], eax
mov eax, str.int_fhandler_base::fstat_by_handle___stat64_
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x61024b4f
call sub.KERNEL32.dll_GetLastError
test eax, eax
je 0x61024b38
mov dword [ebp - 0x34], 0
jmp 0x61024b38