Function at 0x46e060
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x59d6b1
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x6204e0]
xor eax, esp
mov dword [esp + 0xec], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6204e0]
xor eax, esp
push eax
lea eax, [esp + 0x104]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x114]
mov esi, dword [esp + 0x118]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x14]
push eax
push esi
mov dword [esp + 0x114], 1
call fcn.0043d560
mov ecx, dword [esp + 0x1c]
add esp, 8
push ebx
push 0x80
push 3
push ebx
push 3
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46e17e
lea edx, [esp + 0x48]
push edx
call fcn.0042a4c0
push eax
lea eax, [esp + 0x34]
push str.CreateFile_error__
push eax
mov byte [esp + 0x11c], 2
call fcn.0040c620
add esp, 0x10
push edi
push ebx
push eax
mov ecx, 0x6187d0
mov byte [esp + 0x118], 3
call fcn.0040b880
mov esi, 0x10
cmp dword [esp + 0x44], esi
jb 0x46e14c
mov ecx, dword [esp + 0x30]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, 0xf
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
cmp dword [esp + 0x60], esi
jb 0x46e170
mov edx, dword [esp + 0x4c]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
jmp 0x46e32c
push 1
push 2
lea ecx, [esp + 0x6c]
call fcn.0040e790
push str._information:_n
push esi
lea eax, [esp + 0x6c]
push str.File
push eax
mov byte [esp + 0x11c], 4
call fcn.004199b0
add esp, 8
push eax
call fcn.00419e00
add esp, 8
push eax
call fcn.004199b0
add esp, 8
lea ecx, [esp + 0x20]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x46e22a
lea edx, [esp + 0x48]
push edx
call fcn.0042a4c0
add esp, 4
push 0x59fd2c
push eax
lea eax, [esp + 0x6c]
push str.Error_getting_file_size__
push eax
mov byte [esp + 0x11c], 5
call fcn.004199b0
add esp, 8
push eax
call fcn.00419e00
add esp, 8
push eax
call fcn.004199b0
add esp, 8
cmp dword [esp + 0x60], 0x10
mov byte [esp + 0x10c], 4
jb 0x46e25b
mov ecx, dword [esp + 0x4c]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x46e25b
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push 0x59fd2c
push edx
push eax
lea ecx, [esp + 0x70]
push str.File_size:
push ecx
call fcn.004199b0
add esp, 8
mov ecx, eax
call fcn.004290d0
push eax
call fcn.004199b0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0xe4]
push esi
push edx
call fcn.0046dc00
add esp, 8
mov byte [esp + 0x10c], 6
cmp dword [esp + 0xf8], ebx
jne 0x46e295
push 0x6187d0
push str.Error_while_calculating_sha1__
lea eax, [esp + 0x6c]
push eax
jmp 0x46e2a7
lea ecx, [esp + 0xe4]
push ecx
push str.Files_sha1:
lea edx, [esp + 0x6c]
push edx
call fcn.004199b0
add esp, 8
push eax
call fcn.00419e00
add esp, 8
push ebp
lea ecx, [esp + 0x68]
call fcn.0040cd40
cmp dword [esp + 0xfc], 0x10
mov dword [esp + 0x1c], 1
jb 0x46e2e4
mov eax, dword [esp + 0xe8]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0xb0]
mov dword [esp + 0xfc], 0xf
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
mov byte [esp + 0x10c], 1
call fcn.0040ab40
lea ecx, [esp + 0xb0]
push ecx
mov dword [esp + 0xb4], vtable.std::ios_base.0
call fcn.0058e777
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x46e33d
push eax
call sub.MSVCR90.dll_free
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xec]
xor ecx, esp
call fcn.0058ecc6
add esp, 0xfc
ret