Function at 0x60cda0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6915ee
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x746694]
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.005be920
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 0x60cf11
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.005c0b70
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, 0x7460c8
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 0x60ceb5
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x60ceab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x60d2e9
push edx
push ecx
call fcn.0065d157
add esp, 8
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x60cee9
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x60cedf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x60d2e9
push edx
push ecx
call fcn.0065d157
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 0x60d2cc
push eax
jmp 0x60d2c4
mov dword [ebp - 0x110], 0x6949e4
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.0065d127
add esp, 4
mov dword [ebp - 0x68], eax
test eax, eax
je 0x60cfd1
push 1
mov byte [ebp - 4], 4
call fcn.0065f07d
mov ecx, dword [ebp - 0x68]
add esp, 4
mov dword [ecx + 4], eax
jmp 0x60cfd3
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 0x60d09d
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 0x60d12f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005c0b70
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 0x70f068
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 0x60d15e
push 0x70f068
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.0060c880
add esp, 8
cmp dword [ebp - 0x30], 0
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 7
jne 0x60d1ac
push str.Error_while_calculating_sha1__
push eax
call fcn.005a1bb0
cmp dword [0x7460dc], 0x10
mov ecx, eax
push dword [0x7460d8]
mov eax, 0x7460c8
cmovae eax, dword [0x7460c8]
jmp 0x60d1c7
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 0x60d237
mov eax, dword [ebp - 0xec]
mov ecx, dword [eax]
test ecx, ecx
je 0x60d237
mov eax, dword [ebp - 0xfc]
cmp ecx, dword [ebp - 0xd4]
cmovb ecx, dword [ebp - 0xd4]
mov edx, dword [eax]
sub ecx, edx
jmp 0x60d262
test dl, 4
jne 0x60d25c
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax]
test ecx, ecx
je 0x60d25c
mov eax, dword [ebp - 0x100]
mov edx, dword [eax]
sub ecx, edx
mov eax, dword [ebp - 0xe0]
add ecx, dword [eax]
jmp 0x60d262
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x60d26f
push ecx
push edx
mov ecx, esi
call fcn.004484a0
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x60d29f
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x60d295
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x60d2ee
push edx
push ecx
call fcn.0065d157
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 0x60d2cc
push ecx
call fcn.00663ce7
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.0065d16a
mov esp, ebp
pop ebp
ret
call fcn.00663c8b
call fcn.00663c8b
int3