Function at 0x614f10
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x698a0e
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x74e694]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0
push eax
push edi
call fcn.005c34c0
add esp, 8
push 0
push 0x80
push 3
push 0
push 3
push accept
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x5c], eax
cmp eax, 0xffffffff
jne 0x615081
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.005c5710
add esp, 8
push 0x13
push str.CreateFile_error__
push 0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.005a5ba0
mov ecx, 0x74e0c8
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x28]
push eax
movq qword [ebp - 0x18], xmm0
call fcn.005a3660
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x615025
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x61501b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x615459
push edx
push ecx
call fcn.00663ac7
add esp, 8
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x615059
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x61504f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x615459
push edx
push ecx
call fcn.00663ac7
add esp, 8
mov eax, dword [ebp - 0x70]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
test eax, eax
je 0x61543c
push eax
jmp 0x615434
mov dword [ebp - 0x110], 0x69b9f4
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0xc0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov eax, 8
mov byte [ebp - 4], 2
push 0
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.005a2700
mov eax, dword [ebp - 0x110]
push 8
mov dword [ebp - 4], 3
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x114], eax
mov dword [ebp - method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00663a97
add esp, 4
mov dword [ebp - 0x68], eax
test eax, eax
je 0x615141
push 1
mov byte [ebp - 4], 4
call fcn.006659ee
mov ecx, dword [ebp - 0x68]
add esp, 4
mov dword [ecx + 4], eax
jmp 0x615143
xor ecx, ecx
lea eax, [ebp - 0x108]
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0x100], eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0xf4]
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0xe4]
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0x104], 0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xe8], 0
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 4
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 5
push str.File
push eax
call fcn.005a1bb0
add esp, 8
mov ecx, edi
cmp dword [edi + 0x14], 0x10
jb 0x61520d
mov ecx, dword [edi]
push str._information:_n
push dword [edi + 0x10]
push ecx
push eax
call fcn.005a1f90
add esp, 0xc
push eax
call fcn.005a1bb0
add esp, 8
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x61529f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005c5710
mov eax, 0x18
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 6
push str.Error_getting_file_size__
push eax
call fcn.005a1bb0
add esp, 0x10
mov ecx, eax
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0x71657c
push dword [ebp - 0x18]
push eax
push ecx
call fcn.005a1f90
add esp, 0xc
push eax
call fcn.005a1bb0
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00448860
jmp 0x6152ce
push 0x71657c
push dword [ebp - 0x74]
lea eax, [ebp - 0x110]
push dword [ebp - 0x78]
push str.File_size:
push eax
call fcn.005a1bb0
add esp, 8
mov ecx, eax
call fcn.005a3a40
push eax
call fcn.005a1bb0
add esp, 8
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.006149f0
add esp, 8
cmp dword [ebp - 0x30], 0
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 7
jne 0x61531c
push str.Error_while_calculating_sha1__
push eax
call fcn.005a1bb0
cmp dword [0x74e0dc], 0x10
mov ecx, eax
push dword [0x74e0d8]
mov eax, 0x74e0c8
cmovae eax, dword [0x74e0c8]
jmp 0x615337
push str.Files_sha1:
push eax
call fcn.005a1bb0
cmp dword [ebp - 0x2c], 0x10
mov ecx, eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push ecx
call fcn.005a1f90
add esp, 0x14
mov eax, dword [ebp - 0x60]
xorps xmm0, xmm0
mov edx, dword [ebp - 0xd0]
or eax, 0x40
mov dword [ebp - 0x64], eax
mov eax, edx
and al, 0x22
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [ebp - 4], 8
mov byte [esi], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
cmp al, 2
je 0x6153a7
mov eax, dword [ebp - 0xec]
mov ecx, dword [eax]
test ecx, ecx
je 0x6153a7
mov eax, dword [ebp - 0xfc]
cmp ecx, dword [ebp - 0xd4]
cmovb ecx, dword [ebp - 0xd4]
mov edx, dword [eax]
sub ecx, edx
jmp 0x6153d2
test dl, 4
jne 0x6153cc
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax]
test ecx, ecx
je 0x6153cc
mov eax, dword [ebp - 0x100]
mov edx, dword [eax]
sub ecx, edx
mov eax, dword [ebp - 0xe0]
add ecx, dword [eax]
jmp 0x6153d2
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x6153df
push ecx
push edx
mov ecx, esi
call fcn.004484a0
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x61540f
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x615405
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x61545e
push edx
push ecx
call fcn.00663ac7
add esp, 8
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.005a3da0
mov ecx, dword [ebp - 0x70]
test ecx, ecx
je 0x61543c
push ecx
call fcn.0066a657
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00663ada
mov esp, ebp
pop ebp
ret
call fcn.0066a5fb
call fcn.0066a5fb
int3